:root {
  --bg: #080b0a;
  --surface: #0d1210;
  --line: #26302a;
  --line-bright: #38463e;
  --text: #f0f3ed;
  --muted: #8e9991;
  --green: #a8ff78;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.site-header { width: min(1280px, calc(100% - 48px)); height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: flex-end; gap: 3px; padding: 4px; border: 1px solid #4a594f; border-radius: 7px; transform: rotate(-8deg); }
.brand-mark span { width: 3px; border-radius: 3px; background: var(--green); }
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; }
nav { display: flex; gap: 36px; color: var(--muted); font-size: 13px; }
nav a, .header-cta { transition: color .2s ease; }
nav a:hover, .header-cta:hover { color: var(--green); }
.header-cta { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--green); padding-bottom: 5px; }

.hero { min-height: 920px; padding: 118px 0 0; text-align: center; overflow: hidden; }
.eyebrow, .section-kicker { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
h1 { max-width: 950px; margin: 30px auto 26px; font-size: clamp(55px, 7.2vw, 102px); line-height: .98; letter-spacing: -.065em; font-weight: 500; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 665px; margin: 0 auto; color: #a7b0aa; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 4px; font: 500 12px var(--mono); letter-spacing: .025em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #0b1209; background: var(--green); box-shadow: 0 0 28px rgba(168,255,120,.12); }
.button-primary:hover { background: #bcff98; }
.button-secondary { border: 1px solid var(--line-bright); color: #c7cec9; }
.button-secondary:hover { border-color: #66756c; }
.button-secondary span { margin-left: 20px; color: var(--green); }

.terminal-wrap { width: min(930px, 92%); margin: 82px auto 0; position: relative; text-align: left; }
.terminal-glow { position: absolute; inset: -100px 10% auto; height: 280px; background: radial-gradient(ellipse, rgba(114,255,84,.15), transparent 68%); filter: blur(20px); }
.terminal { position: relative; background: rgba(10,14,12,.92); border: 1px solid #364139; border-radius: 9px 9px 0 0; box-shadow: 0 34px 100px rgba(0,0,0,.48); overflow: hidden; }
.terminal-bar { height: 49px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 0 17px; border-bottom: 1px solid #27312b; color: #68736c; font: 10px var(--mono); }
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span { width: 8px; height: 8px; border: 1px solid #536058; border-radius: 50%; }
.terminal-title { text-align: center; }
.terminal-status { text-align: right; }
.terminal-status i { display: inline-block; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-right: 6px; }
.terminal-body { min-height: 355px; padding: 32px 38px; font: 13px/1.75 var(--mono); color: #d5dad6; }
.prompt { color: var(--green); margin-right: 8px; }
.command { color: #f5f7f4; }
.output { margin: 7px 0 0 24px; }
.muted { color: #6f7a72; }
.success { color: #aee69b; }
.memory-card { max-width: 630px; margin: 12px 0 10px 24px; padding: 14px 17px; border: 1px solid #344138; border-left: 2px solid var(--green); background: rgba(168,255,120,.025); }
.memory-card div { display: flex; justify-content: space-between; color: #627067; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.memory-card div span:first-child { color: var(--green); }
.memory-card p { margin: 7px 0 0; color: #aeb7b0; font-size: 11px; }
.agent { color: #e7ece7; }
.agent span { color: var(--green); margin-right: 8px; }
.cursor-line { margin-top: 15px; }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--green); vertical-align: -2px; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section { padding: 145px 0; border-top: 1px solid rgba(255,255,255,.08); }
.section-kicker { margin-bottom: 48px; }
h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.06; letter-spacing: -.055em; font-weight: 500; }
.problem-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: start; }
.problem-copy { padding-top: 7px; color: #9ca69f; font-size: 16px; line-height: 1.8; }
.problem-copy p { margin: 0 0 20px; }
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cost-grid article { min-height: 260px; padding: 31px; border-right: 1px solid var(--line); }
.cost-grid article:last-child { border: 0; }
.cost-number { color: #657068; font: 10px var(--mono); }
.cost-grid h3 { margin: 62px 0 12px; font-size: 17px; font-weight: 500; }
.cost-grid p { margin: 0; color: #7f8a82; font-size: 13px; line-height: 1.7; }

.workflow { background: #0b0f0d; }
.section-heading { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: end; }
.section-heading p { margin: 0; color: #8d9890; line-height: 1.8; font-size: 14px; }
.loop { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; margin-top: 86px; }
.loop-step { min-height: 390px; padding: 26px; border: 1px solid var(--line); background: #0a0e0c; }
.loop-step.active { border-color: #48643f; background: linear-gradient(155deg, rgba(168,255,120,.07), transparent 45%), #0a0e0c; }
.step-top { display: flex; justify-content: space-between; color: #69746d; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.step-top span:first-child { color: #9ba59e; }
.step-icon { position: relative; width: 96px; height: 96px; margin: 65px auto 48px; border: 1px solid #334038; border-radius: 50%; }
.recall-icon i { position: absolute; border: 1px solid #65805c; border-radius: 50%; inset: 15px; }
.recall-icon i:nth-child(2) { inset: 29px; }
.recall-icon i:nth-child(3) { inset: 42px; background: var(--green); border: 0; box-shadow: 0 0 16px var(--green); }
.converse-icon i { position: absolute; width: 42px; height: 28px; border: 1px solid var(--green); border-radius: 50%; top: 27px; left: 18px; transform: rotate(12deg); }
.converse-icon i:nth-child(2) { left: 36px; top: 41px; border-color: #738078; transform: rotate(-15deg); }
.preserve-icon i { position: absolute; left: 27px; right: 27px; height: 10px; border: 1px solid #64805b; }
.preserve-icon i:nth-child(1) { top: 27px; }
.preserve-icon i:nth-child(2) { top: 42px; }
.preserve-icon i:nth-child(3) { top: 57px; border-color: var(--green); box-shadow: 0 0 10px rgba(168,255,120,.2); }
.loop-step h3 { margin: 0 0 11px; font-size: 18px; font-weight: 500; }
.loop-step p { margin: 0; color: #7e8981; font-size: 12px; line-height: 1.7; }
.loop-arrow { color: #5d6961; font: 16px var(--mono); text-align: center; }
.loop-caption { margin: 30px 0 0; color: var(--green); text-align: center; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.principles-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 130px; }
.principles-intro p { max-width: 350px; margin: 28px 0 0; color: #8e9991; line-height: 1.8; }
.principle-list { border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 55px 1fr; padding: 30px 0; border-bottom: 1px solid var(--line); }
.principle-list article > span { color: var(--green); font: 10px var(--mono); padding-top: 5px; }
.principle-list h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.principle-list p { margin: 0; color: #7f8982; font-size: 13px; line-height: 1.7; }

.cta-section { padding: 50px 0 120px; }
.cta-panel { position: relative; overflow: hidden; min-height: 535px; padding: 105px 80px; border: 1px solid #3d4b42; background: radial-gradient(circle at 85% 55%, rgba(124,255,91,.1), transparent 26%), linear-gradient(140deg, #101712, #0a0e0c 60%); }
.cta-panel h2 { margin-bottom: 24px; }
.cta-panel p { max-width: 520px; margin: 0 0 34px; color: #929d95; line-height: 1.75; font-size: 14px; }
.cta-orbit { position: absolute; width: 420px; height: 420px; right: -30px; top: 55px; border: 1px solid rgba(168,255,120,.14); border-radius: 50%; }
.cta-orbit span { position: absolute; inset: 55px; border: 1px solid rgba(168,255,120,.2); border-radius: 50%; }
.cta-orbit i { position: absolute; inset: 135px; border: 1px solid rgba(168,255,120,.3); border-radius: 50%; }
.cta-orbit b { position: absolute; width: 12px; height: 12px; border-radius: 50%; left: 42px; top: 110px; background: var(--green); box-shadow: 0 0 25px var(--green); }
.site-footer { min-height: 130px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: #707b73; font-size: 11px; }
.site-footer p { text-align: center; }
.site-footer > div { display: flex; justify-content: flex-end; gap: 24px; }
.site-footer .brand { color: #bdc5bf; }

.js .problem-grid, .js .cost-grid article, .js .section-heading, .js .loop-step, .js .principles-grid, .js .cta-panel { opacity: 0; transform: translateY(18px); transition: opacity .65s ease var(--reveal-delay), transform .65s ease var(--reveal-delay); }
.js .revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .shell, .site-header { width: min(100% - 32px, 1180px); }
  nav { display: none; }
  .hero { min-height: auto; padding-top: 86px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .terminal-wrap { width: 100%; margin-top: 64px; }
  .terminal-body { min-height: 330px; padding: 24px 18px; font-size: 10px; overflow: hidden; }
  .terminal-status { display: none; }
  .terminal-bar { grid-template-columns: 1fr 1fr; }
  .terminal-title { text-align: right; }
  .memory-card, .output { margin-left: 17px; }
  .section { padding: 100px 0; }
  .problem-grid, .section-heading, .principles-grid { grid-template-columns: 1fr; gap: 40px; }
  .cost-grid { grid-template-columns: 1fr; margin-top: 60px; }
  .cost-grid article { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-grid article:last-child { border-bottom: 0; }
  .cost-grid h3 { margin-top: 36px; }
  .loop { grid-template-columns: 1fr; gap: 14px; margin-top: 55px; }
  .loop-arrow { transform: rotate(90deg); }
  .loop-step { min-height: 340px; }
  .step-icon { margin: 45px auto 36px; }
  .cta-panel { min-height: 560px; padding: 70px 28px; }
  .cta-orbit { width: 300px; height: 300px; right: -130px; top: 280px; opacity: .6; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding: 35px 0; text-align: center; }
  .site-footer p { margin: 0; }
  .site-footer > div { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .js .problem-grid, .js .cost-grid article, .js .section-heading, .js .loop-step, .js .principles-grid, .js .cta-panel { transition: none; }
}
