:root {
  --bg: #07090d;
  --surface: #0d1117;
  --surface-2: #121820;
  --surface-3: #161d27;
  --border: #232b36;
  --border-soft: rgba(255,255,255,.08);
  --text: #f5f7fa;
  --muted: #98a2b3;
  --muted-2: #697586;
  --accent: #75b8ff;
  --accent-2: #a7d2ff;
  --accent-soft: rgba(117,184,255,.11);
  --success: #6bd59d;
  --danger: #f28484;
  --max: 1220px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 6%, rgba(81,134,195,.12), transparent 27rem),
    radial-gradient(circle at 18% 22%, rgba(57,90,130,.08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  z-index: 1000;
}
.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 112px 0; position: relative; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: .17em;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 {
  font-size: clamp(3.35rem, 7vw, 6.75rem);
  line-height: .94;
  margin-bottom: 28px;
  max-width: 1050px;
}
h1 span { color: #b9c7d9; }
h2 {
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 1;
  margin-bottom: 26px;
  max-width: 900px;
}
h3 { font-size: 1.3rem; line-height: 1.12; margin-bottom: 12px; }
.section-lede, .section-intro > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(7,9,13,.78);
  border-color: var(--border-soft);
  backdrop-filter: blur(18px);
}
.nav-shell { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 8px; align-items: center; }
.brand-word { font-weight: 900; letter-spacing: .12em; font-size: 16px; }
.brand-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 22px rgba(117,184,255,.7); }
.nav-links { display: flex; align-items: center; gap: 28px; color: #c6cfda; font-size: 14px; }
.nav-links > a:not(.button) { transition: color .2s ease; }
.nav-links > a:not(.button):hover { color: white; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; }
.nav-toggle span { display: block; height: 1px; background: white; margin: 7px 0; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
  letter-spacing: -.01em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: #eaf4ff;
  color: #08111d;
  box-shadow: 0 10px 32px rgba(92,161,235,.14);
}
.button-primary:hover { background: white; box-shadow: 0 14px 36px rgba(92,161,235,.2); }
.button-secondary { border-color: var(--border); background: rgba(255,255,255,.02); color: white; }
.button-secondary:hover { border-color: #536274; background: rgba(255,255,255,.04); }
.button-small { min-height: 40px; padding: 0 16px; }

.hero { padding-top: 160px; min-height: 100vh; display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-lede { color: #aab4c2; max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.27rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span { border: 1px solid var(--border-soft); color: #7f8b99; border-radius: 999px; padding: 7px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

.hero-visual { min-width: 0; }
.system-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18,24,32,.86), rgba(8,11,16,.93));
  padding: 28px;
  min-height: 690px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.03);
}
.system-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 38%, rgba(117,184,255,.08), transparent 34%);
}
.system-label { color: #667384; font-size: 10px; letter-spacing: .16em; font-weight: 800; margin-bottom: 22px; }
.node-card {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(11,15,21,.86);
  border-radius: 14px;
}
.node-card strong { display: block; font-size: 16px; }
.node-card small { color: #748091; }
.node-kicker { display: block; color: #6f7d8e; font-size: 9px; letter-spacing: .14em; font-weight: 800; margin-bottom: 6px; }
.node-highlight { border-color: rgba(117,184,255,.42); background: linear-gradient(180deg, rgba(47,82,121,.28), rgba(11,15,21,.88)); box-shadow: 0 0 50px rgba(80,143,210,.09); }
.flow-line { position: relative; width: 1px; height: 36px; background: linear-gradient(var(--border), rgba(117,184,255,.45), var(--border)); margin: 0 auto; z-index: 1; }
.flow-line .pulse { position: absolute; left: -2px; width: 5px; height: 10px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 15px rgba(117,184,255,.7); animation: flow 2.3s linear infinite; }
.flow-line-2 .pulse { animation-delay: .75s; }
.flow-line-3 .pulse { animation-delay: 1.4s; }
@keyframes flow { from { top: -7px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 3px); opacity: 0; } }
.governance-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.check-item { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 9px; color: #8e9aaa; font-size: 11px; background: rgba(255,255,255,.015); }
.check-item b { color: var(--success); }
.evidence-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.evidence-list { display: grid; gap: 5px; }
.evidence-list span { display: flex; justify-content: space-between; color: #8390a0; font-size: 10px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.045); }
.evidence-list b { color: #bcd9f7; font-weight: 650; }

.problem-section { border-top: 1px solid var(--border-soft); }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.question-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.question-card { min-height: 150px; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.012); }
.question-card span { color: #5f6d7d; font-size: 11px; letter-spacing: .14em; }
.question-card p { margin: 44px 0 0; font-size: 1.03rem; color: #cad2dc; }
.pull-quote { margin-top: 70px; }
.pull-quote p { font-size: clamp(1.8rem, 4vw, 3.8rem); line-height: 1.08; max-width: 1050px; letter-spacing: -.035em; color: #c9d7e6; }

.section-intro { margin-bottom: 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.feature-card { border: 1px solid var(--border); background: rgba(13,17,23,.62); padding: 28px; border-radius: var(--radius); min-height: 270px; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.feature-card:hover { border-color: #415064; transform: translateY(-2px); background: rgba(18,24,32,.74); }
.feature-card p, .compact-grid p { color: var(--muted); font-size: .94rem; }
.feature-number { display: block; margin-bottom: 70px; color: #657386; font-size: 11px; letter-spacing: .15em; }

.process-section { background: linear-gradient(180deg, rgba(12,16,22,.45), rgba(7,9,13,0)); }
.stage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stage-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; min-height: 460px; background: rgba(9,12,17,.72); }
.stage-card-emphasis { border-color: rgba(117,184,255,.32); background: linear-gradient(180deg, rgba(33,53,76,.30), rgba(9,12,17,.72)); }
.stage-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--border-soft); padding-bottom: 18px; }
.stage-top span { color: #637184; font-size: 10px; letter-spacing: .15em; }
.stage-top strong { font-size: 1.4rem; }
.stage-card ul { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 12px; color: #bbc4d0; }
.stage-card li::before { content: "✓"; color: var(--success); margin-right: 10px; }
.stage-card p { margin-top: auto; color: #738093; font-size: .92rem; }

.difference-section { border-top: 1px solid var(--border-soft); }
.compact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 50px; }
.compact-grid article { background: var(--bg); padding: 28px; min-height: 200px; }

.architecture-section { padding-top: 72px; }
.architecture-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; border: 1px solid var(--border); border-radius: 26px; padding: 50px; background: radial-gradient(circle at 75% 48%, rgba(89,148,210,.08), transparent 38%), rgba(11,15,21,.55); }
.architecture-copy p:last-child { color: var(--muted); max-width: 430px; }
.architecture-map { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: #aab6c5; }
.arch-row { width: 100%; display: flex; justify-content: center; align-items: center; }
.arch-two { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.arch-box { min-width: 180px; text-align: center; padding: 13px 18px; border: 1px solid var(--border); border-radius: 10px; background: #0d1219; }
.arch-primary { border-color: rgba(117,184,255,.35); background: rgba(32,51,72,.45); color: #dcecff; }
.arch-arrow { color: #526173; font-size: 11px; }
.arch-link { color: #526173; }

.outcomes-section { background: rgba(10,13,18,.42); }
.outcome-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.outcome-card { border: 1px solid var(--border); padding: 26px; border-radius: var(--radius); background: rgba(12,16,22,.72); }
.outcome-card p { color: var(--muted); }
.status { display: inline-flex; padding: 6px 8px; border-radius: 6px; font-size: 9px; letter-spacing: .14em; font-weight: 800; margin-bottom: 32px; }
.status-ok { color: #9fe8bd; background: rgba(75,160,111,.12); border: 1px solid rgba(107,213,157,.18); }
.status-denied { color: #ffb1b1; background: rgba(194,79,79,.1); border: 1px solid rgba(242,132,132,.2); }
.status-neutral { color: #b8dafe; background: rgba(76,131,190,.1); border: 1px solid rgba(117,184,255,.2); }
.denial-demo { margin-top: 36px; border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; grid-template-columns: auto auto 1fr auto auto auto auto; align-items: center; gap: 14px; font-size: 11px; background: #090d12; overflow-x: auto; }
.demo-request, .demo-denied, .demo-evidence { white-space: nowrap; border: 1px solid var(--border); padding: 12px 14px; border-radius: 8px; }
.demo-checks { display: flex; gap: 8px; min-width: 430px; }
.demo-checks span { padding: 8px 9px; border-radius: 7px; border: 1px solid var(--border-soft); color: #8794a4; }
.demo-checks b { color: var(--success); }
.demo-checks .demo-fail { border-color: rgba(242,132,132,.2); }
.demo-checks .demo-fail b { color: var(--danger); }
.demo-denied { border-color: rgba(242,132,132,.3); color: #ffb1b1; }
.demo-evidence { border-color: rgba(117,184,255,.25); color: #b9d8fa; }
.demo-arrow { color: #536172; }
.demo-denied small, .demo-evidence small { color: #788596; }

.research-section { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: radial-gradient(circle at 20% 50%, rgba(85,137,192,.08), transparent 25rem); }
.research-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.research-note { color: #647184; font-size: .9rem; margin-top: 30px; }
.research-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.research-tags span { min-height: 90px; display: flex; align-items: flex-end; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: rgba(11,15,21,.7); color: #afbbc9; font-size: 13px; }

.security-section .compact-grid { margin-top: 44px; }
.status-section { background: linear-gradient(180deg, rgba(14,19,26,.55), rgba(7,9,13,0)); }
.status-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.status-panel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #090c11; }
.status-panel div { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.status-panel div:last-child { border-bottom: 0; }
.status-panel span { color: #687688; font-size: 10px; letter-spacing: .12em; }
.status-panel strong { color: #bac5d2; font-size: 11px; font-weight: 700; text-align: right; }

.cta-section { padding-bottom: 130px; }
.cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; border: 1px solid rgba(117,184,255,.22); border-radius: 26px; padding: 52px; background: radial-gradient(circle at 10% 0%, rgba(117,184,255,.10), transparent 23rem), #0a0e14; }
.early-form { display: grid; gap: 16px; }
.early-form label { display: grid; gap: 7px; color: #708093; font-size: 9px; letter-spacing: .13em; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea { width: 100%; color: var(--text); background: #070a0f; border: 1px solid var(--border); border-radius: 9px; padding: 13px 14px; outline: none; resize: vertical; }
input:focus, textarea:focus { border-color: rgba(117,184,255,.55); box-shadow: 0 0 0 3px rgba(117,184,255,.08); }
textarea::placeholder { color: #45505e; }
.form-submit { width: 100%; margin-top: 4px; border: 0; cursor: pointer; }
.form-note { color: #596678; font-size: 11px; margin: 0; }
.hidden-field { display: none; }

.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; color: #718094; font-size: 13px; }
.footer-grid strong { color: #d2dae4; font-size: 12px; margin-bottom: 8px; }
.footer-grid a:hover { color: white; }
.footer-grid p { max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border-soft); margin-top: 46px; padding-top: 20px; display: flex; justify-content: space-between; color: #4f5b69; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .08s; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 138px; }
  .hero-copy { max-width: 900px; }
  .hero-visual { width: min(100%, 720px); margin: 10px auto 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split-heading, .research-grid, .status-layout, .cta-grid, .architecture-wrap { grid-template-columns: 1fr; gap: 40px; }
  .architecture-copy p:last-child { max-width: 680px; }
  .question-grid { grid-template-columns: repeat(2,1fr); }
  .compact-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .site-header { background: rgba(7,9,13,.72); backdrop-filter: blur(15px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0b0f15;
    box-shadow: 0 22px 70px rgba(0,0,0,.45);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-links .button { margin-top: 8px; }
  .stage-grid, .outcome-grid { grid-template-columns: 1fr; }
  .stage-card { min-height: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-number { margin-bottom: 44px; }
  .denial-demo { grid-template-columns: auto auto minmax(430px,1fr) auto auto auto auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { height: 68px; }
  .hero { padding-top: 118px; }
  h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .system-frame { padding: 18px; min-height: 640px; }
  .governance-grid { grid-template-columns: 1fr 1fr; }
  .evidence-card { grid-template-columns: 1fr; }
  .question-grid, .compact-grid { grid-template-columns: 1fr; }
  .research-tags { grid-template-columns: 1fr; }
  .research-tags span { min-height: 74px; }
  .architecture-wrap, .cta-grid { padding: 28px 20px; }
  .arch-two { grid-template-columns: 1fr; }
  .arch-link { transform: rotate(90deg); }
  .arch-box { min-width: 0; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@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; }
}
