:root {
  --night: #071b18;
  --night-soft: #0d2924;
  --ink: #10231f;
  --muted: #65746f;
  --cream: #f5f4ed;
  --paper: #fbfbf7;
  --white: #fff;
  --mint: #bafcdd;
  --green: #1ad08c;
  --green-dark: #087b57;
  --line: #dce2dc;
  --amber: #ffc96b;
  --display: 'Avenir Next', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  --body: Inter, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--white); background: var(--night); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: var(--white); }
.nav-shell { width: min(1220px, calc(100% - 48px)); height: 88px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.045em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; color: var(--night); background: var(--mint); font-size: 14px; box-shadow: 0 0 26px rgba(186,252,221,.22); }
.site-nav { display: flex; align-items: center; gap: 31px; }
.site-nav a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.site-nav a:hover { color: var(--white); }
.nav-cta { justify-self: end; }
.menu-button { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 0 22px; border: 1px solid var(--mint); border-radius: 8px; color: var(--night); background: var(--mint); box-shadow: 0 9px 28px rgba(26,208,140,.12); text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .18s, background .18s; }
.button:hover { background: #d5ffec; transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 16px; gap: 10px; font-size: 13px; }
.button-light { color: var(--night); background: var(--white); border-color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; }
.text-link span { color: var(--mint); }
.text-link.dark { color: var(--ink); }
.text-link.dark span { color: var(--green-dark); }

.hero-section { position: relative; overflow: hidden; min-height: 810px; padding: 172px 0 104px; color: var(--white); background: var(--night); }
.hero-section::before { content: ''; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.hero-glow { position: absolute; top: -220px; left: -100px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(25,195,132,.15), transparent 67%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: 68px; align-items: center; }
.signal { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 7px 11px; border: 1px solid rgba(186,252,221,.2); border-radius: 99px; color: #c8d8d2; background: rgba(255,255,255,.03); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.signal span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero-copy h1 { max-width: 690px; margin: 0; font: 700 clamp(48px, 5.3vw, 76px)/.99 var(--display); letter-spacing: -.07em; }
.hero-copy h1 em, .section-intro h2 em { color: var(--mint); font-style: normal; }
.hero-lede { max-width: 580px; margin: 27px 0 0; color: #aebdb7; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.hero-note { margin: 25px 0 0; color: #70847d; font-size: 12px; }

.incident-window { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: #f9faf6; box-shadow: 0 34px 100px rgba(0,0,0,.38); transform: rotate(.7deg); }
.window-bar { height: 46px; display: flex; align-items: center; gap: 6px; padding: 0 16px; color: #7d8a85; background: #e9eee8; border-bottom: 1px solid #d7ddd7; }
.window-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #c2cbc4; }
.window-bar p { margin: 0 0 0 7px; font: 500 10px/1 ui-monospace, monospace; }
.window-body { padding: 26px; color: var(--ink); }
.incident-topline { display: flex; justify-content: space-between; gap: 20px; color: #6e7e78; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { color: var(--green-dark); }
.status-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.window-body h2 { max-width: 570px; margin: 17px 0 24px; font: 700 clamp(19px, 2vw, 27px)/1.25 var(--display); letter-spacing: -.04em; }
.causal-chain article { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 15px; border: 1px solid #dfe5df; border-radius: 9px; background: #fff; }
.causal-chain article.culprit { border-color: #8bdfbd; background: #f1fff8; box-shadow: inset 3px 0 0 var(--green); }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: #688078; background: #eef2ed; font: 700 9px var(--display); }
.causal-chain small { display: block; margin: 1px 0 4px; color: #798780; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.causal-chain strong { display: block; font: 700 13px var(--display); }
.causal-chain p { margin: 4px 0 0; color: #6b7974; font-size: 11px; }
.causal-chain code { color: #9d391e; background: #fff0eb; }
.event-tag { padding: 4px 7px; border-radius: 4px; color: #0e6e50; background: #d9f7e9; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.event-tag.fail { color: #a0402b; background: #ffede8; }
.chain-line { width: 1px; height: 10px; margin-left: 29px; background: #bfc9c1; }
.citation-row { display: flex; gap: 8px; margin-top: 20px; }
.citation-row span { flex: 1; padding: 9px 5px; border-radius: 6px; color: #61716b; background: #edf1ec; text-align: center; font-size: 9px; font-weight: 700; }

.proof-strip { border-bottom: 1px solid var(--line); background: #eceee8; }
.proof-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.proof-inner p { margin: 0; color: #7b8782; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.proof-inner div { display: flex; align-items: center; gap: 38px; color: #50605a; font: 700 13px var(--display); }

.section { padding: 118px 0; }
.section-light { background: var(--paper); }
.kicker { margin: 0 0 17px; color: var(--green-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.section-intro { max-width: 780px; }
.section-intro.compact { margin-bottom: 62px; }
.section-intro h2, .security-copy h2, .preview-card h2 { margin: 0; font: 700 clamp(39px, 4.8vw, 61px)/1.06 var(--display); letter-spacing: -.06em; }
.section-intro h2 em { color: var(--green-dark); }
.section-intro > p:last-child { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 65px; }
.capability-card { position: relative; min-height: 342px; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: transform .22s, box-shadow .22s, border-color .22s; }
.capability-card:hover { border-color: #afd8c5; transform: translateY(-5px); box-shadow: 0 22px 55px rgba(18,43,36,.08); }
.card-index { position: absolute; top: 24px; right: 25px; color: #a0aaa5; font: 600 11px var(--display); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 52px; border-radius: 11px; color: var(--green-dark); background: #e7f8f0; font: 700 24px var(--display); }
.capability-card h3 { margin: 0 0 13px; font: 700 21px var(--display); letter-spacing: -.035em; }
.capability-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.capability-card a, .coming-tag { display: inline-flex; margin-top: 25px; color: var(--green-dark); text-decoration: none; font-size: 12px; font-weight: 800; }
.coming-tag { padding: 6px 8px; border-radius: 5px; background: #edf7f2; text-transform: uppercase; letter-spacing: .06em; }

.workflow-section { color: var(--white); background: var(--night); }
.workflow-section .kicker { color: var(--mint); }
.workflow-section .section-intro > p:last-child { color: #95a9a2; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.13); }
.workflow-step { min-height: 465px; padding: 36px 32px 0; border-left: 1px solid rgba(255,255,255,.13); }
.workflow-step:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.workflow-number { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 42px; border: 1px solid rgba(186,252,221,.35); border-radius: 50%; color: var(--mint); font: 700 12px var(--display); }
.step-label { margin: 0 0 11px; color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.workflow-step h3 { margin: 0 0 15px; font: 700 21px var(--display); letter-spacing: -.035em; }
.workflow-step > div > p:nth-of-type(2) { min-height: 91px; margin: 0; color: #95a9a2; font-size: 13px; line-height: 1.65; }
.mini-code, .mini-finding, .mini-check { min-height: 82px; margin-top: 30px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.035); }
.mini-code { display: flex; flex-direction: column; justify-content: center; gap: 8px; font: 10px ui-monospace, monospace; }
.mini-code span { color: #a2b3ad; }
.mini-code strong { color: var(--mint); }
.mini-finding span { color: var(--mint); font: 9px ui-monospace, monospace; }
.mini-finding p { margin: 8px 0 0; color: #b4c2bd; font-size: 10px; line-height: 1.45; }
.mini-check { display: flex; align-items: center; gap: 12px; }
.mini-check > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--night); background: var(--mint); font-weight: 800; }
.mini-check p { margin: 0; }
.mini-check strong, .mini-check small { display: block; }
.mini-check strong { font-size: 11px; }
.mini-check small { margin-top: 4px; color: #8fa19b; font-size: 9px; }

.security-section { background: var(--cream); }
.security-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 110px; align-items: start; }
.security-copy { position: sticky; top: 50px; }
.security-copy h2 { font-size: clamp(38px, 4vw, 54px); }
.security-copy > p:nth-of-type(2) { margin: 25px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.security-list article { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 27px 0; border-top: 1px solid #cfd6cf; }
.security-list article:last-child { border-bottom: 1px solid #cfd6cf; }
.security-list article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--green-dark); background: #dff2e9; font: 700 10px var(--display); }
.security-list h3 { margin: 2px 0 7px; font: 700 17px var(--display); letter-spacing: -.025em; }
.security-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.preview-section { padding: 90px 0; background: var(--paper); }
.preview-card { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 60px; border-radius: 16px; color: var(--white); background: var(--green-dark); box-shadow: 0 32px 80px rgba(8,74,53,.18); }
.preview-card .kicker { color: var(--mint); }
.preview-card h2 { max-width: 750px; font-size: clamp(36px, 4vw, 52px); }
.preview-card p:last-child { max-width: 670px; margin: 20px 0 0; color: #b9d9cd; line-height: 1.6; }
.preview-action { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.preview-action small { color: #b9d9cd; font-size: 10px; }

.site-footer { padding: 57px 0 25px; color: #9bada7; background: var(--night); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; padding-bottom: 45px; }
.footer-brand { color: var(--white); }
.footer-top p { margin: 0; font-size: 13px; }
.footer-top nav { display: flex; gap: 25px; }
.footer-top nav a { text-decoration: none; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }

.reveal { opacity: 1; }
.enhanced .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.capability-card:nth-child(2), .workflow-step:nth-child(2) { transition-delay: .09s; }
.capability-card:nth-child(3), .workflow-step:nth-child(3) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enhanced .reveal { opacity: 1; transform: none; transition: none; }
  .button, .capability-card { transition: none; }
}

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .site-nav { display: none; position: absolute; top: 72px; left: 24px; right: 24px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: #0d2924; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px; }
  .menu-button { display: block; justify-self: end; padding: 8px 0; border: 0; color: var(--white); background: transparent; font: 700 13px var(--body); }
  .nav-cta { display: none; }
  .hero-section { min-height: 0; padding-top: 142px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 710px; }
  .incident-window { max-width: 730px; transform: none; }
  .proof-inner { padding: 23px 0; flex-direction: column; align-items: flex-start; }
  .proof-inner div { flex-wrap: wrap; gap: 20px 30px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 280px; }
  .card-icon { margin-bottom: 35px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; padding: 32px; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); }
  .workflow-number { margin-bottom: 27px; }
  .workflow-step > div > p:nth-of-type(2) { min-height: 0; }
  .mini-code, .mini-finding, .mini-check { max-width: 420px; }
  .security-grid { grid-template-columns: 1fr; gap: 60px; }
  .security-copy { position: static; max-width: 720px; }
  .preview-card { align-items: flex-start; flex-direction: column; padding: 48px; }
  .preview-action { align-items: flex-start; }
}

@media (max-width: 640px) {
  .shell, .nav-shell { width: min(100% - 32px, 1180px); }
  .nav-shell { height: 72px; }
  .hero-section { padding: 120px 0 74px; }
  .hero-grid { gap: 50px; }
  .hero-copy h1 { font-size: clamp(43px, 13vw, 60px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 21px; }
  .hero-actions .button { width: 100%; }
  .window-body { padding: 18px; }
  .incident-topline { flex-direction: column; gap: 7px; }
  .causal-chain article { grid-template-columns: 27px 1fr; }
  .event-tag { display: none; }
  .citation-row { flex-direction: column; }
  .section { padding: 82px 0; }
  .section-intro h2, .security-copy h2 { font-size: 39px; }
  .capability-grid { margin-top: 44px; }
  .workflow-step { padding: 28px 22px; }
  .preview-section { padding: 60px 0; }
  .preview-card { width: calc(100% - 32px); padding: 34px 24px; }
  .preview-card h2 { font-size: 36px; }
  .preview-action, .preview-action .button { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top nav { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
