:root {
  --bg: #07110f;
  --bg-deep: #040a09;
  --panel: #0b1815;
  --panel-2: #10211d;
  --line: rgba(158, 207, 191, .18);
  --line-strong: rgba(77, 226, 182, .38);
  --text: #edf7f3;
  --muted: #98aaa4;
  --green: #4de2b6;
  --green-soft: #a5f3d8;
  --amber: #f2b84b;
  --container: 1180px;
  --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); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--green); color: #04100d; padding: 10px 16px; border-radius: 4px; font-weight: 800; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(4, 10, 9, .88); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .93rem; letter-spacing: -.02em; }
.brand b { color: var(--muted); font-weight: 500; }
.brand-mark { display: grid; width: 25px; gap: 4px; }
.brand-mark i { display: block; height: 2px; border-radius: 2px; background: var(--green); }
.brand-mark i:nth-child(2) { width: 65%; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .79rem; font-weight: 700; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav .nav-cta { color: var(--text); border: 1px solid var(--line-strong); padding: 9px 14px; border-radius: 3px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 5px auto; background: var(--text); transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 780px; padding: 170px 0 100px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 79% 45%, rgba(22, 102, 78, .18), transparent 30%), linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.hero-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(99,171,149,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(99,171,149,.13) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000 20%, transparent 95%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 76px; align-items: center; }
.eyebrow, .section-index { font-family: var(--mono); font-size: .72rem; letter-spacing: .13em; color: var(--green); text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.eyebrow span { width: 25px; height: 1px; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1, h2 { margin: 0; letter-spacing: -.055em; line-height: 1.04; }
h1 { font-size: clamp(3.5rem, 6.1vw, 6.35rem); font-weight: 600; }
h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 680px; margin: 30px 0 36px; color: #b5c5c0; font-size: 1.1rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: .83rem; font-weight: 800; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green); color: #04100d; }
.button.primary:hover { background: #6ce9c4; }
.button.secondary { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.015); }
.button.secondary:hover { border-color: var(--line-strong); }
.status-line { margin: 31px 0 0; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; }
.status-line b { margin: 0 8px; color: #50645e; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--amber); box-shadow: 0 0 10px rgba(242,184,75,.75); }

.engine-panel { border: 1px solid var(--line); background: rgba(8, 24, 20, .65); box-shadow: 0 30px 80px rgba(0,0,0,.3); backdrop-filter: blur(8px); }
.panel-top { height: 49px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-family: var(--mono); color: var(--muted); font-size: .59rem; letter-spacing: .1em; }
.panel-top .live { color: var(--green); }
.live i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.engine-core { position: relative; aspect-ratio: 1 / .9; display: grid; place-items: center; overflow: hidden; }
.engine-core::before, .engine-core::after { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(77,226,182,.08); transform: rotate(45deg); }
.engine-core::after { inset: 22%; }
.orbit { position: absolute; border: 1px dashed rgba(77,226,182,.22); border-radius: 50%; animation: spin 30s linear infinite; }
.orbit-a { width: 68%; aspect-ratio: 1; }
.orbit-b { width: 44%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 20s; }
.core-node { z-index: 2; width: 112px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; background: #0a1d18; border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: 0 0 50px rgba(77,226,182,.12), inset 0 0 25px rgba(77,226,182,.05); }
.core-node span { color: var(--green); font-family: var(--mono); font-size: 1.1rem; font-weight: 500; }
.core-node small { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: .48rem; line-height: 1.4; letter-spacing: .12em; }
.node { position: absolute; padding: 5px 8px; border: 1px solid var(--line); background: var(--bg); color: #8bb3a6; font-family: var(--mono); font-size: .52rem; letter-spacing: .07em; }
.n1 { top: 16%; left: 12%; }.n2 { top: 21%; right: 14%; }.n3 { bottom: 20%; left: 8%; }.n4 { bottom: 15%; right: 17%; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.panel-stats div { padding: 14px 12px; border-right: 1px solid var(--line); }
.panel-stats div:last-child { border-right: 0; }
.panel-stats strong { display: block; color: var(--green); font-family: var(--mono); font-size: 1rem; font-weight: 500; }
.panel-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: .55rem; line-height: 1.4; }

.split-heading, .framework-grid, .demo-grid, .founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
h2 { margin-top: 18px; font-size: clamp(2.6rem, 5vw, 4.7rem); font-weight: 600; }
h2 span { color: var(--muted); }
.problem-copy { padding-top: 43px; }
.problem-copy > p { margin: 0 0 38px; color: #b7c6c1; font-size: 1.06rem; }
.fragment-list { border-top: 1px solid var(--line); }
.fragment-list span { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #c9d6d2; }
.fragment-list i { color: var(--green); font-family: var(--mono); font-size: .7rem; font-style: normal; }

.engine { background: var(--bg-deep); }
.section-intro { display: grid; grid-template-columns: 1.5fr .6fr; gap: 50px; align-items: end; margin-bottom: 70px; }
.section-intro .section-index { grid-column: 1 / -1; }
.section-intro h2 { margin: 0; }
.section-intro p { margin: 0; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); }
.stage { position: relative; min-height: 270px; padding: 20px 16px; border-right: 1px solid var(--line); overflow: hidden; }
.stage:last-child { border-right: 0; }
.stage::after { content: "→"; position: absolute; top: 50%; right: -9px; z-index: 2; width: 18px; height: 18px; display: grid; place-items: center; background: var(--bg-deep); color: var(--green); font-family: var(--mono); font-size: .7rem; }
.stage:last-child::after { display: none; }
.stage > b { display: block; color: #587067; font-family: var(--mono); font-size: .63rem; font-weight: 400; }
.stage-icon { width: 39px; height: 39px; display: grid; place-items: center; margin: 45px 0 25px; border: 1px solid var(--line-strong); color: var(--green); font-family: var(--mono); font-size: .8rem; }
.stage h3 { min-height: 48px; margin: 0 0 12px; font-size: .95rem; line-height: 1.35; }
.stage p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.pipeline-note { display: flex; align-items: center; gap: 14px; margin-top: 20px; color: #6e8780; font-family: var(--mono); font-size: .63rem; letter-spacing: .05em; text-transform: uppercase; }
.pipeline-note span { flex: 0 0 50px; height: 1px; background: var(--line-strong); }

.framework { background: linear-gradient(120deg, #07110f 45%, #091713); }
.framework-copy > p { color: #adbfba; max-width: 560px; }
.framework-copy > p:first-of-type { margin-top: 34px; }
.framework-copy strong { color: var(--text); }
.dogfood { display: flex; align-items: center; gap: 15px; margin-top: 34px; padding: 16px; border-left: 2px solid var(--amber); background: rgba(242,184,75,.045); }
.dogfood > i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px rgba(242,184,75,.7); }
.dogfood b, .dogfood span { display: block; }
.dogfood b { font-size: .82rem; }.dogfood span { color: var(--muted); font-size: .72rem; }
.stack { padding-top: 50px; }
.stack-layer { padding: 27px 30px; border: 1px solid var(--line); background: var(--panel); }
.stack-layer small { display: block; margin-bottom: 13px; color: var(--green); font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; }
.stack-layer strong, .stack-layer span { display: block; }
.stack-layer strong { font-size: 1.45rem; }.stack-layer span { margin-top: 7px; color: var(--muted); font-size: .75rem; }
.stack-layer.product { margin-left: 55px; border-color: var(--line-strong); box-shadow: 0 15px 50px rgba(0,0,0,.25); }
.stack-layer.core { margin-right: 55px; background: #0d211c; }
.stack-link { height: 52px; margin-left: 110px; border-left: 1px dashed var(--line-strong); display: flex; align-items: center; }
.stack-link span { margin-left: 14px; color: #617a72; font-family: var(--mono); font-size: .59rem; text-transform: uppercase; }
.stack-loop { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px 55px 0 0; color: #789089; font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; }
.stack-loop i { color: var(--green); font-style: normal; font-size: 1rem; }

.validation { background: var(--bg-deep); }
.section-intro.wide { grid-template-columns: 1fr 1fr; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { min-height: 210px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric span { color: #718a82; font-family: var(--mono); font-size: .57rem; letter-spacing: .1em; }
.metric strong { display: block; margin: 26px 0 2px; color: var(--text); font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 400; letter-spacing: -.07em; }
.metric p { margin: 0; color: var(--muted); font-size: .75rem; }
.metric.featured { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, rgba(77,226,182,.1), transparent); }
.metric.featured strong { color: var(--green); font-size: clamp(4rem, 8vw, 7rem); }
.truth-box { margin-top: 25px; display: grid; grid-template-columns: 160px 1fr 1.1fr; gap: 30px; align-items: center; padding: 24px 28px; border: 1px solid rgba(242,184,75,.25); background: rgba(242,184,75,.035); }
.truth-label { color: var(--amber); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; }
.truth-box > div:nth-child(2) { display: flex; gap: 24px; }
.truth-box span { color: var(--text); font-family: var(--mono); font-size: .64rem; white-space: nowrap; }
.truth-box span b { display: block; margin-bottom: 5px; color: var(--muted); font-size: .5rem; }
.truth-box p { margin: 0; color: #8fa39d; font-size: .7rem; line-height: 1.6; }

.demo-grid { align-items: center; }
.demo p { color: var(--muted); max-width: 510px; }
.demo-meta { display: flex; gap: 24px; margin-top: 30px; color: var(--green); font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; }
.video-placeholder { padding: 10px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 60px rgba(0,0,0,.22); }
.video-frame { aspect-ratio: 16/9; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle, rgba(77,226,182,.08), transparent 45%), repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 4px), var(--bg-deep); }
.play-button { width: 64px; height: 64px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(77,226,182,.08); color: var(--green); font-size: 1rem; opacity: 1; }
.video-frame p { margin: 16px 0 2px; color: var(--text); font-size: .85rem; font-weight: 700; }
.video-frame span { color: #5e766f; font-family: var(--mono); font-size: .52rem; letter-spacing: .1em; }

.founder { background: var(--bg-deep); }
.founder-grid { grid-template-columns: .75fr 1.25fr; align-items: center; }
.portrait-placeholder { aspect-ratio: 4/5; max-height: 480px; display: grid; place-items: center; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(77,226,182,.08), transparent), repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(77,226,182,.025) 14px, rgba(77,226,182,.025) 15px); }
.portrait-placeholder span { color: #587069; font-family: var(--mono); font-size: .63rem; line-height: 1.6; letter-spacing: .12em; text-align: center; }
.founder-name { margin: 34px 0 0 !important; color: var(--text) !important; font-size: 1.2rem !important; font-weight: 700; }
.founder-copy p { max-width: 560px; color: var(--muted); }
.text-link { display: inline-flex; gap: 12px; margin-top: 12px; color: var(--green); font-size: .82rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 5px; }

.contact { background: linear-gradient(135deg, #0a211b, #07110f); }
.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; padding: 58px; border: 1px solid var(--line-strong); background: rgba(7,17,15,.5); box-shadow: 0 35px 80px rgba(0,0,0,.23); }
.contact-card h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.contact-action { align-self: end; }
.contact-action p { margin: 0 0 24px; color: var(--muted); }
footer { padding: 38px 0; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; }
.footer-grid p { margin: 0; color: #627871; font-family: var(--mono); font-size: .58rem; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 60px; }
  .engine-panel { width: min(100%, 560px); }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .stage:nth-child(4) { border-right: 0; }
  .stage:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric.featured { grid-row: span 1; }
  .truth-box { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 40px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 82px 0; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); background: rgba(4,10,9,.98); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; }
  .site-nav .nav-cta { margin-top: 8px; text-align: center; }
  .menu-toggle.active > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.active > span:nth-child(2) { opacity: 0; }
  .menu-toggle.active > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding: 135px 0 78px; }
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-lead { font-size: 1rem; }
  .engine-core { min-height: 330px; }
  .split-heading, .framework-grid, .demo-grid, .founder-grid, .contact-card, .section-intro, .section-intro.wide { grid-template-columns: 1fr; gap: 44px; }
  .problem-copy { padding-top: 0; }
  .section-intro .section-index { grid-column: 1; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .stage, .stage:nth-child(4) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stage:nth-child(even) { border-right: 0; }
  .stage:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 185px; }
  .metric.featured { grid-column: span 2; }
  .truth-box > div:nth-child(2) { flex-wrap: wrap; }
  .stack { padding-top: 0; }
  .stack-layer.product { margin-left: 24px; }
  .stack-layer.core { margin-right: 24px; }
  .stack-link { margin-left: 70px; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { max-width: 360px; }
  .contact-card { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-actions .button { width: 100%; }
  .panel-stats { grid-template-columns: 1fr; }
  .panel-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-stats div:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metric.featured { grid-column: span 1; }
  .stage { min-height: 240px; padding: 16px 12px; }
  .stage-icon { margin-top: 35px; }
  .demo-meta { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
