:root {
  --paper: #f2f1ed;
  --paper-2: #e9e8e2;
  --ink: #141512;
  --ink-soft: #5d5f58;
  --line: rgba(20, 21, 18, 0.17);
  --acid: #d7ff3f;
  --orange: #ff6534;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", Arial, sans-serif;
  --page: min(1440px, 100%);
}

* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { max-width: 100%; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--ink); background: var(--acid); }

.grain {
  position: fixed;
  inset: 0;
  opacity: .022;
  pointer-events: none;
  z-index: 99;
  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='.5'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  width: var(--page);
  height: 78px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 46px;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, height .3s ease;
}
.site-header.scrolled { height: 66px; background: rgba(242, 241, 237, .92); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 14px; font-weight: 700; letter-spacing: .19em; }
.brand-mark { width: 25px; height: 25px; fill: currentColor; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 600; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.header-cta { justify-self: end; font-size: 12px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.header-cta span { transition: transform .2s ease; }
.header-cta:hover span { transform: translate(3px, -3px); }
.menu-button { display: none; border: 0; background: none; width: 36px; height: 36px; padding: 9px; }
.menu-button span { display: block; width: 100%; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .25s ease; }

.hero {
  min-height: 920px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 170px 46px 92px;
  display: grid;
  grid-template-columns: minmax(400px, .85fr) minmax(540px, 1.15fr);
  gap: 70px;
  align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,101,52,.12); }
.hero h1, .section h2 { margin: 0; font-size: clamp(60px, 6vw, 94px); line-height: .95; letter-spacing: -.065em; font-weight: 500; }
.hero h1 em, .section h2 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; }
.hero h1 em { color: var(--ink-soft); }
.hero-lede { max-width: 560px; margin: 34px 0 0; color: #44463f; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 39px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 230px; padding: 16px 18px; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; transition: color .25s ease, background .25s ease, transform .25s ease; }
.button span { font-size: 15px; transition: transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translate(3px, -3px); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { color: var(--ink); background: var(--acid); }
.text-link { display: inline-flex; gap: 15px; align-items: center; font-size: 12px; font-weight: 600; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateY(4px); }

.hero-visual { position: relative; height: 610px; display: flex; align-items: center; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; width: 510px; height: 510px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,63,.46) 0%, rgba(215,255,63,.08) 43%, transparent 70%); filter: blur(12px); }
.orbit { position: absolute; border: 1px solid rgba(20,21,18,.13); border-radius: 50%; }
.orbit-one { width: 540px; height: 540px; animation: spin 28s linear infinite; }
.orbit-one::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); top: 72px; left: 65px; box-shadow: 0 0 0 5px rgba(255,101,52,.11); }
.orbit-two { width: 670px; height: 380px; transform: rotate(-17deg); border-color: rgba(20,21,18,.08); }
@keyframes spin { to { transform: rotate(360deg); } }

.terminal { position: relative; width: min(620px, 100%); background: #121410; color: #eceee5; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 35px 80px rgba(27,28,23,.22); z-index: 2; transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.terminal-bar { height: 45px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.1); color: #9da095; font: 400 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #4a4d43; }
.terminal-live { justify-self: end; display: flex; align-items: center; gap: 7px; }
.terminal-live b { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
.terminal-body { min-height: 390px; padding: 25px 27px; font: 400 12px/1.6 var(--mono); }
.terminal-body p { margin: 0 0 12px; }
.prompt { color: var(--acid); }
.cursor { color: var(--acid); animation: blink .9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-output { margin-top: 26px; }
.terminal-output .muted { color: #777b70; margin-bottom: 19px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 18px; margin-right: 8px; border: 1px solid #51554a; color: #888c80; font-size: 8px; }
.step.done { border-color: #667c26; color: var(--acid); }
.step.active { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.diff { margin: 18px 0; padding: 13px 14px; background: #1a1d17; border-left: 1px solid #4c4f47; color: #a7aa9f; }
.diff div:first-child { color: #ab7870; }
.diff div:last-child { color: #b7d879; }
.diff span { display: inline-block; width: 17px; }
.approval { margin-top: 23px !important; padding-top: 17px; border-top: 1px dashed #44483e; }
.approval > span { padding: 4px 6px; margin-right: 8px; color: var(--ink); background: var(--orange); font-size: 9px; font-weight: 500; }
.approval b { color: var(--acid); font-weight: 400; }
.terminal-footer { display: flex; justify-content: space-between; gap: 10px; padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.1); color: #6f7369; font: 400 8px/1 var(--mono); text-transform: uppercase; }
.visual-label { position: absolute; z-index: 3; padding: 9px 12px; background: var(--paper); border: 1px solid var(--ink); font: 500 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--ink); }
.visual-label span { color: #8b8d85; margin-right: 7px; }
.label-a { top: 36px; right: 45px; }
.label-b { bottom: 42px; left: 4px; }
.label-c { bottom: 95px; right: -2px; }

.signal-strip { max-width: var(--page); margin: 0 auto; overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.signal-strip > div { min-width: max-content; display: flex; justify-content: space-around; align-items: center; gap: 75px; height: 46px; padding: 0 38px; animation: ticker 28s linear infinite; font: 500 9px/1 var(--mono); letter-spacing: .15em; }
.signal-strip span { display: flex; align-items: center; gap: 75px; }
.signal-strip span::after { content: "✳"; font-size: 12px; color: var(--orange); }
@keyframes ticker { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(-8%); } }

.section { max-width: var(--page); margin: 0 auto; padding: 126px 46px; }
.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 74px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.section-label::after { content: ""; width: 74px; height: 1px; background: var(--ink); opacity: .45; }
.section-label span { color: #969890; }
.intro-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 100px; align-items: end; }
.intro h2 { font-size: clamp(52px, 5.4vw, 82px); }
.intro-copy { padding-bottom: 6px; }
.intro-copy p { margin: 0; font-size: 18px; line-height: 1.65; }
.intro-copy .muted-copy { margin-top: 23px; color: #787a73; font-size: 14px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 104px; border-top: 1px solid var(--ink); }
.principle { min-height: 360px; padding: 22px 28px 30px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle-top { display: flex; justify-content: space-between; align-items: flex-start; color: #898b84; font: 400 9px/1 var(--mono); }
.principle-top svg { width: 43px; height: 43px; stroke: var(--ink); stroke-width: 1; fill: none; }
.principle h3 { margin: 125px 0 15px; font-size: 18px; font-weight: 600; }
.principle p { max-width: 330px; margin: 0; color: #686a63; font-size: 13px; line-height: 1.7; }

.system { background: var(--paper-2); border-top: 1px solid var(--line); }
.system-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 100px; align-items: end; }
.system-heading h2 { font-size: clamp(54px, 5vw, 78px); }
.system-heading > p { max-width: 450px; margin: 0 0 7px; color: #60625a; font-size: 15px; line-height: 1.7; }
.capability-list { margin-top: 90px; border-top: 1px solid var(--ink); }
.capability { display: grid; grid-template-columns: 50px 70px 1fr auto; gap: 30px; align-items: center; min-height: 170px; border-bottom: 1px solid var(--line); transition: background .25s ease, padding .25s ease; }
.capability:hover { background: rgba(242,241,237,.8); padding: 0 18px; }
.cap-number, .cap-meta { color: #85877f; font: 400 9px/1 var(--mono); letter-spacing: .08em; }
.cap-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); }
.cap-icon svg { width: 31px; height: 31px; fill: none; stroke: var(--ink); stroke-width: 1.1; }
.capability h3 { margin: 0 0 9px; font-size: 20px; font-weight: 600; }
.capability p { max-width: 730px; margin: 0; color: #62645d; font-size: 13px; line-height: 1.65; }

.workflow { max-width: var(--page); min-height: 790px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; color: #eceee5; background: #151713; overflow: hidden; }
.section-label-light { color: #d5d6cf; }
.section-label-light::after { background: #eceee5; }
.workflow h2 { font-size: clamp(55px, 5.1vw, 80px); }
.workflow h2 em { color: #8e9187; }
.workflow-copy > p { max-width: 520px; margin: 33px 0 0; color: #95988e; font-size: 14px; line-height: 1.75; }
.command-stack { margin-top: 45px; border-top: 1px solid #464940; font: 300 11px/1 var(--mono); }
.command-stack div { padding: 15px 0; border-bottom: 1px solid #30332d; color: #bbbdb4; }
.command-stack span { margin-right: 12px; color: var(--acid); }
.command-stack i { color: #73776d; font-style: normal; }
.session-map { position: relative; height: 540px; }
.session-map::before { content: ""; position: absolute; inset: 5%; border: 1px solid #2c3028; border-radius: 50%; }
.session-map::after { content: ""; position: absolute; inset: 20%; border: 1px dashed #373b32; border-radius: 50%; }
.map-node { position: absolute; width: 165px; min-height: 72px; padding: 16px; background: #1d201a; border: 1px solid #4a4e43; z-index: 3; font-family: var(--mono); }
.map-node b { display: block; color: #d6d8cf; font-size: 9px; letter-spacing: .1em; font-weight: 400; }
.map-node span { display: block; margin-top: 11px; color: #6e7267; font-size: 8px; }
.map-node.root { width: 190px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-color: var(--acid); box-shadow: 0 0 40px rgba(215,255,63,.09); }
.map-node.root::before { content: ""; position: absolute; width: 7px; height: 7px; top: 18px; right: 16px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
.node-one { top: 4%; left: 7%; }
.node-two { right: 0; top: 22%; }
.node-three { bottom: 6%; left: 9%; }
.map-line { position: absolute; height: 1px; background: #555a4d; transform-origin: left; z-index: 1; }
.line-one { width: 245px; left: 24%; top: 20%; transform: rotate(35deg); }
.line-two { width: 220px; left: 58%; top: 49%; transform: rotate(-27deg); }
.line-three { width: 230px; left: 25%; top: 78%; transform: rotate(-35deg); }
.map-pulse { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); z-index: 2; animation: pulse 2.8s ease-in-out infinite; }
.pulse-one { left: 39%; top: 34%; }
.pulse-two { right: 22%; top: 39%; animation-delay: .9s; }
.pulse-three { left: 36%; bottom: 29%; animation-delay: 1.7s; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.4); } }

.security { background: var(--paper); }
.security-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 130px; }
.security-heading { position: sticky; top: 130px; align-self: start; }
.security-heading h2 { font-size: clamp(58px, 5.4vw, 82px); }
.security-heading p { margin-top: 28px; color: #777971; font-size: 14px; }
.security-points { border-top: 1px solid var(--ink); }
.security-points article { min-height: 152px; display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.security-points article > span { color: #8e9089; font: 400 9px/1 var(--mono); align-self: start; padding-top: 46px; }
.security-points h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.security-points p { max-width: 510px; margin: 0; color: #686a63; font-size: 13px; line-height: 1.65; }

.closing { position: relative; max-width: var(--page); min-height: 710px; display: flex; align-items: center; justify-content: center; color: var(--paper); background: var(--orange); overflow: hidden; text-align: center; }
.closing-mark { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); color: rgba(20,21,18,.12); font: 500 700px/.7 var(--sans); letter-spacing: -.15em; }
.closing-content { position: relative; z-index: 2; max-width: 940px; display: flex; flex-direction: column; align-items: center; }
.eyebrow-dark { color: var(--ink); }
.eyebrow-dark .status-dot { background: var(--ink); box-shadow: 0 0 0 4px rgba(20,21,18,.12); }
.closing h2 { color: var(--ink); font-size: clamp(58px, 6vw, 92px); }
.closing h2 em { color: rgba(20,21,18,.56); }
.closing p { max-width: 620px; margin: 31px auto 34px; color: rgba(20,21,18,.7); font-size: 14px; line-height: 1.7; }
.button-light { min-width: 245px; color: var(--paper); background: var(--ink); }
.button-light:hover { color: var(--ink); background: var(--acid); }

footer { max-width: var(--page); min-height: 170px; margin: 0 auto; padding: 35px 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--ink); color: #dddcd5; border-top: 1px solid #353830; }
.footer-brand { align-self: end; }
.footer-meta { align-self: end; display: flex; gap: 36px; color: #666960; font: 400 8px/1 var(--mono); letter-spacing: .08em; }
.footer-links { align-self: end; justify-self: end; display: flex; gap: 25px; font-size: 10px; }
.footer-links a:hover { color: var(--acid); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms), transform .75s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .site-header { padding: 0 28px; }
  .hero { padding-left: 28px; padding-right: 28px; grid-template-columns: .82fr 1.18fr; gap: 30px; }
  .hero h1 { font-size: 66px; }
  .hero-visual { height: 560px; }
  .section { padding-left: 28px; padding-right: 28px; }
  .workflow { padding-left: 28px; padding-right: 28px; }
  .security-grid { gap: 70px; }
  footer { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 820px) {
  .site-header { height: 66px; grid-template-columns: 1fr auto; padding: 0 20px; }
  .header-cta { display: none; }
  .menu-button { display: block; justify-self: end; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: absolute; top: 65px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: rgba(242,241,237,.98); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 0; padding: 130px 20px 78px; grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: clamp(53px, 15vw, 78px); }
  .hero-lede { font-size: 15px; }
  .hero-visual { height: 520px; }
  .terminal { transform: none; }
  .orbit-one { width: 480px; height: 480px; }
  .orbit-two { width: 590px; }
  .section { padding: 90px 20px; }
  .section-label { margin-bottom: 52px; }
  .intro-grid, .system-heading, .security-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-copy { max-width: 600px; }
  .principles-grid { grid-template-columns: 1fr; margin-top: 70px; }
  .principle, .principle + .principle { min-height: 250px; padding: 20px 0 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle h3 { margin-top: 70px; }
  .capability { grid-template-columns: 40px 55px 1fr; gap: 18px; padding: 25px 0; }
  .capability:hover { padding: 25px 12px; }
  .cap-meta { display: none; }
  .workflow { padding: 90px 20px; grid-template-columns: 1fr; }
  .session-map { height: 500px; }
  .security-heading { position: static; }
  footer { min-height: 210px; padding: 35px 20px; grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; width: 100%; }
}

@media (max-width: 520px) {
  .hero { padding-top: 110px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 23px; }
  .button { min-width: 0; width: 100%; }
  .text-link { justify-content: center; }
  .hero-visual { height: 450px; margin: 0 -6px; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .terminal-bar > span:nth-child(2) { display: none; }
  .terminal-body { min-height: 360px; padding: 20px 17px; font-size: 10px; }
  .terminal-footer { font-size: 7px; }
  .visual-label { display: none; }
  .orbit-one { width: 400px; height: 400px; }
  .section h2 { font-size: 48px; }
  .intro-copy p { font-size: 16px; }
  .capability { grid-template-columns: 33px 1fr; gap: 15px; }
  .cap-icon { display: none; }
  .capability p { font-size: 12px; }
  .session-map { height: 420px; margin: 0 -30px; transform: scale(.88); }
  .map-node { width: 142px; }
  .map-node.root { width: 165px; }
  .node-two { right: -4%; }
  .security-points article { grid-template-columns: 38px 1fr; }
  .closing { min-height: 650px; }
  .closing h2 { font-size: 49px; }
  .closing-mark { font-size: 570px; }
  footer { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand, .footer-links, .footer-meta { align-self: auto; justify-self: start; }
  .footer-links { grid-row: 2; }
  .footer-meta { grid-row: 3; flex-direction: column; gap: 10px; }
}

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