/* Triage Beacon — shared site styles (all pages) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f0f4ff;
  --bg-card:     rgba(255,255,255,0.88);
  --bg-elevated: rgba(255,255,255,0.96);
  --border:      rgba(0,0,0,0.08);
  --border-hi:   rgba(37,99,235,0.22);
  --text:        #0f172a;
  --text-dim:    #334155;
  --text-muted:  #64748b;
  --accent:      #2563eb;
  --accent-glow: rgba(37,99,235,0.08);
  --accent2:     #0891b2;
  --accent3:     #7c3aed;
  --green:       #059669;
  --red:         #dc2626;
  --amber:       #d97706;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; }

/* ── PAGE TRANSITIONS (cross-document View Transitions) ── */
@view-transition { navigation: auto; }

nav    { view-transition-name: site-nav; }
footer { view-transition-name: site-footer; }

@keyframes vt-out  { to   { opacity: 0; transform: translateY(-14px) scale(.995); filter: blur(2px); } }
@keyframes vt-in   { from { opacity: 0; transform: translateY(18px)  scale(.995); filter: blur(2px); } }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in  .34s cubic-bezier(.22,.9,.3,1) both; }
::view-transition-old(site-nav), ::view-transition-new(site-nav),
::view-transition-old(site-footer), ::view-transition-new(site-footer) { animation: none; }

/* Fallback entrance for browsers without cross-document view transitions */
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
main { animation: page-in .4s cubic-bezier(.22,.9,.3,1) both; }
@supports (view-transition-name: root) { main { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  main { animation: none; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@keyframes tb-drift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(20px,-15px) scale(1.04); }
  66%  { transform: translate(-12px,18px) scale(0.98); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes tb-twinkle { 0%,100% { opacity:.6; } 50% { opacity:.12; } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes shimmer { 0% { left:-100%; } 100% { left:200%; } }
@keyframes badge-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(37,99,235,.35); } 50% { box-shadow:0 0 0 5px rgba(37,99,235,0); } }

.fade-up { opacity:0; transform:translateY(20px); transition:opacity .5s ease, transform .5s ease; }
.fade-up.in { opacity:1; transform:translateY(0); }
.stagger > .fade-up:nth-child(2) { transition-delay:.07s; }
.stagger > .fade-up:nth-child(3) { transition-delay:.14s; }
.stagger > .fade-up:nth-child(4) { transition-delay:.21s; }
.stagger > .fade-up:nth-child(5) { transition-delay:.28s; }
.stagger > .fade-up:nth-child(6) { transition-delay:.35s; }
.stagger > .fade-up:nth-child(7) { transition-delay:.42s; }
.stagger > .fade-up:nth-child(8) { transition-delay:.49s; }

/* ── BACKGROUND ── */
.bg-scene { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden;
  background: radial-gradient(circle at 15% 20%, rgba(56,189,248,0.12) 0, transparent 40%),
              radial-gradient(circle at 85% 75%, rgba(99,102,241,0.10) 0, transparent 45%),
              radial-gradient(circle at 50% 5%,  rgba(37,99,235,0.06) 0, transparent 50%);
}
.bg-scene::after { content:''; position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='none'/%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%2394a3b8' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
}
.glow-orb { position:absolute; border-radius:50%; filter:blur(40px); }
#particle-field { position:absolute; inset:0; width:100%; height:100%; }

section, main { position:relative; z-index:1; }
.container { max-width:1140px; margin:0 auto; padding:0 clamp(1rem,3vw,2.5rem); }

/* ── NAV ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(1rem,3vw,2.5rem); height:60px;
  background:rgba(255,255,255,0.92); backdrop-filter:blur(18px) saturate(1.6);
  border-bottom:1px solid var(--border);
}
.nav-logo { display:flex; align-items:center; gap:.55rem; font-weight:700; font-size:.98rem; color:var(--text); text-decoration:none; }
.nav-links { display:flex; align-items:center; gap:1.4rem; list-style:none; }
.nav-links a { color:var(--text-dim); text-decoration:none; font-size:.87rem; font-weight:500; transition:color .15s; padding:.3rem 0; border-bottom:2px solid transparent; }
.nav-links a:hover { color:var(--accent); }
.nav-links a.active { color:var(--accent); border-bottom-color:var(--accent); font-weight:600; }
.nav-actions { display:flex; align-items:center; gap:.65rem; }
.nav-signin { font-size:.87rem; font-weight:500; color:var(--text-dim); text-decoration:none; padding:.36rem .85rem; border-radius:6px; border:1px solid var(--border); transition:border-color .15s, color .15s; }
.nav-signin:hover { border-color:var(--border-hi); color:var(--accent); }
.nav-cta { font-size:.87rem; font-weight:600; color:#fff; text-decoration:none; background:var(--accent); padding:.38rem 1rem; border-radius:6px; transition:background .15s; cursor:pointer; border:none; font-family:'DM Sans',sans-serif; }
.nav-cta:hover { background:#1d4ed8; }

/* Mobile nav */
.nav-burger { display:none; background:none; border:none; cursor:pointer; padding:.4rem; color:var(--text); }
.mobile-menu { display:none; position:fixed; top:60px; left:0; right:0; z-index:99; background:rgba(255,255,255,0.97); backdrop-filter:blur(18px); border-bottom:1px solid var(--border); padding:.75rem clamp(1rem,3vw,2.5rem) 1rem; }
.mobile-menu.open { display:block; }
.mobile-menu a { display:block; padding:.6rem 0; color:var(--text-dim); text-decoration:none; font-size:.95rem; font-weight:500; border-bottom:1px solid var(--border); }
.mobile-menu a.active { color:var(--accent); font-weight:700; }
.mobile-menu a:last-child { border-bottom:none; }

/* ── HEADINGS ── */
.section-label { font-size:.7rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent2); margin-bottom:.6rem; display:block; }
h1 { font-family:'Bricolage Grotesque',sans-serif; font-size:clamp(2.4rem,4.5vw,3.6rem); font-weight:800; line-height:1.07; letter-spacing:-.03em; color:var(--text); margin-bottom:1.2rem; }
h1 span { background:linear-gradient(130deg,#2563eb 0%,#7c3aed 55%,#0891b2 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
h2 { font-family:'Bricolage Grotesque',sans-serif; font-size:clamp(1.6rem,3vw,2.3rem); font-weight:700; letter-spacing:-.03em; color:var(--text); line-height:1.12; margin-bottom:.75rem; }
h3.block-title { font-family:'Bricolage Grotesque',sans-serif; font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.75rem; }
.section-sub { font-size:.95rem; color:var(--text-dim); line-height:1.65; margin-bottom:2rem; max-width:720px; }

/* ── PAGE HERO (subpages) ── */
.page-hero { padding:8.5rem 0 2.5rem; }
.page-hero h1 { font-size:clamp(2rem,3.8vw,2.9rem); }
.page-hero .section-sub { margin-bottom:0; }
.page-section { padding:3rem 0; }

/* ── CARD ── */
.card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; backdrop-filter:blur(20px); position:relative; overflow:hidden; transition:border-color .25s, box-shadow .25s, transform .2s; }
.card:hover { border-color:var(--border-hi); transform:translateY(-2px); box-shadow:0 6px 24px rgba(37,99,235,.07); }

/* ── BUTTONS ── */
.btn-primary { display:inline-flex; align-items:center; gap:.45rem; background:var(--accent); color:#fff; font-weight:600; font-size:.92rem; padding:.7rem 1.6rem; border-radius:8px; text-decoration:none; cursor:pointer; border:none; font-family:'DM Sans',sans-serif; position:relative; overflow:hidden; transition:background .15s, box-shadow .2s, transform .15s; }
.btn-primary::after { content:''; position:absolute; top:-50%; left:-100%; width:50%; height:200%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent); transform:skewX(-20deg); animation:shimmer 3.5s ease-in-out infinite; }
.btn-primary:hover { background:#1d4ed8; box-shadow:0 0 28px rgba(37,99,235,.4); transform:translateY(-2px); }
.btn-outline { display:inline-flex; align-items:center; gap:.45rem; color:var(--accent); font-weight:600; font-size:.92rem; padding:.68rem 1.5rem; border-radius:8px; text-decoration:none; border:1px solid var(--border-hi); background:rgba(37,99,235,.04); transition:background .15s, box-shadow .15s; }
.btn-outline:hover { background:rgba(37,99,235,.08); box-shadow:0 0 16px rgba(37,99,235,.12); }

/* ── HOME HERO ── */
#hero { min-height:92vh; display:flex; align-items:center; padding-top:60px; }
.hero-inner { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; padding:5rem 0 4rem; }
.badge { display:inline-flex; align-items:center; gap:.45rem; background:rgba(37,99,235,.07); border:1px solid rgba(37,99,235,.18); border-radius:100px; padding:.28rem .85rem; font-size:.7rem; font-weight:600; color:var(--accent); letter-spacing:.05em; text-transform:uppercase; margin-bottom:1rem; }
.badge-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0; animation:badge-pulse 2.2s ease-in-out infinite; }
.hero-sub { font-size:1.05rem; color:var(--text-dim); margin-bottom:1.75rem; line-height:1.65; }
.cta-group { display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; }
.hero-meta { display:flex; align-items:center; gap:1.25rem; margin-top:1.5rem; flex-wrap:wrap; }
.hero-meta-item { display:flex; align-items:center; gap:.38rem; font-size:.8rem; color:var(--text-muted); }
.hero-meta-item svg { color:var(--green); flex-shrink:0; }

/* Terminal */
.hero-visual { animation:float 7s ease-in-out infinite; }
.terminal { background:#0d1526; border:1px solid rgba(255,255,255,0.07); border-radius:14px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.18); }
.terminal-bar { display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem; background:rgba(255,255,255,0.03); border-bottom:1px solid rgba(255,255,255,0.06); }
.dot { width:10px; height:10px; border-radius:50%; }
.dot-r { background:#ff5f57; } .dot-y { background:#febc2e; } .dot-g { background:#28c840; }
.terminal-title { flex:1; text-align:center; font-family:'JetBrains Mono',monospace; font-size:.72rem; color:#4e6278; }
.terminal-body { padding:1.1rem; font-family:'JetBrains Mono',monospace; font-size:.76rem; line-height:1.9; }
.t-label { color:#4e6278; } .t-key { color:#7dd3fc; } .t-val { color:#86efac; }
.t-str { color:#fcd34d; } .t-num { color:#fb923c; } .t-sep { color:rgba(255,255,255,.18); }
.t-verdict-fp { color:#10b981; font-weight:700; } .t-verdict-tp { color:#f43f5e; font-weight:700; }
.t-badge-hi { background:rgba(244,63,94,.15); color:#fca5a5; border:1px solid rgba(244,63,94,.3); padding:.03rem .36rem; border-radius:4px; font-size:.66rem; }
.t-badge-med { background:rgba(245,158,11,.15); color:#fcd34d; border:1px solid rgba(245,158,11,.3); padding:.03rem .36rem; border-radius:4px; font-size:.66rem; }
.confidence-bar { display:inline-flex; align-items:center; gap:.5rem; }
.confidence-track { width:64px; height:4px; background:rgba(255,255,255,.1); border-radius:2px; overflow:hidden; }
.confidence-fill { height:100%; background:linear-gradient(90deg,#2563eb,#0891b2); border-radius:2px; }
.terminal-body > div { opacity:0; animation:line-in .2s ease forwards; }
@keyframes line-in { from { opacity:0; transform:translateX(-5px); } to { opacity:1; transform:none; } }
.terminal-body > div:nth-child(1)  { animation-delay:.4s; }
.terminal-body > div:nth-child(2)  { animation-delay:.6s; }
.terminal-body > div:nth-child(3)  { animation-delay:.8s; }
.terminal-body > div:nth-child(4)  { animation-delay:1.0s; }
.terminal-body > div:nth-child(5)  { animation-delay:1.2s; }
.terminal-body > div:nth-child(6)  { animation-delay:1.4s; }
.terminal-body > div:nth-child(7)  { animation-delay:1.6s; }
.terminal-body > div:nth-child(8)  { animation-delay:1.8s; }
.terminal-body > div:nth-child(9)  { animation-delay:2.0s; }
.terminal-body > div:nth-child(10) { animation-delay:2.2s; }
.terminal-body > div:nth-child(11) { animation-delay:2.4s; }
.terminal-body > div:nth-child(12) { animation-delay:2.6s; }
.terminal-body > div:nth-child(13) { animation-delay:2.8s; }
.terminal-body > div:nth-child(14) { animation-delay:3.0s; }
.terminal-body > div:nth-child(15) { animation-delay:3.2s; }

/* ── STATS ── */
#stats { border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--bg-card); backdrop-filter:blur(16px); position:relative; z-index:1; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.stat-item { padding:1.5rem; border-right:1px solid var(--border); text-align:center; }
.stat-item:last-child { border-right:none; }
.stat-num { font-family:'Bricolage Grotesque',sans-serif; font-size:2rem; font-weight:800; letter-spacing:-.04em; color:var(--accent); display:block; }
.stat-label { font-size:.8rem; color:var(--text-muted); margin-top:.2rem; line-height:1.45; }

/* ── EXPLORE CARDS (home) ── */
.explore-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.9rem; margin-top:2rem; }
.explore-card { display:block; text-decoration:none; padding:1.4rem; }
.explore-card .feature-icon { margin-bottom:.8rem; }
.explore-card h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.35rem; }
.explore-card p { font-size:.84rem; color:var(--text-muted); line-height:1.6; margin-bottom:.8rem; }
.explore-link { font-size:.82rem; font-weight:600; color:var(--accent); display:inline-flex; align-items:center; gap:.3rem; }

/* ── ARCHITECTURE ── */
.arch-pipeline { display:flex; align-items:stretch; gap:0; margin:2.5rem 0; overflow-x:auto; padding-bottom:.5rem; }
.arch-node { display:flex; flex-direction:column; align-items:center; text-align:center; min-width:110px; flex:1; padding:.9rem .5rem; background:var(--bg-elevated); border:1px solid var(--border); position:relative; transition:border-color .2s; }
.arch-node:first-child { border-radius:10px 0 0 10px; }
.arch-node:last-child  { border-radius:0 10px 10px 0; }
.arch-node:not(:last-child)::after { content:'→'; position:absolute; right:-13px; top:50%; transform:translateY(-50%); color:var(--accent2); font-size:.85rem; font-weight:700; z-index:2; background:var(--bg); padding:0 2px; }
.arch-node:not(:first-child):not(:last-child) { border-left:none; }
.arch-node:last-child { border-left:none; }
.arch-node:hover { border-color:var(--border-hi); background:var(--bg-card); }
.arch-icon { font-size:1.3rem; margin-bottom:.4rem; line-height:1; }
.arch-label { font-family:'Bricolage Grotesque',sans-serif; font-size:.8rem; font-weight:700; color:var(--text); line-height:1.25; }
.arch-sub { font-size:.68rem; color:var(--text-muted); margin-top:.22rem; font-family:'JetBrains Mono',monospace; line-height:1.4; }
.arch-components { display:grid; grid-template-columns:repeat(3,1fr); gap:.9rem; margin-top:2rem; }
.arch-component { padding:1.2rem 1.3rem; }
.arch-component h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:.93rem; font-weight:700; color:var(--text); margin-bottom:.4rem; display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.arch-component p { font-size:.83rem; color:var(--text-muted); line-height:1.6; }
.arch-tag { display:inline-block; font-family:'JetBrains Mono',monospace; font-size:.6rem; color:var(--accent); background:rgba(37,99,235,.08); border:1px solid rgba(37,99,235,.18); border-radius:4px; padding:.08rem .35rem; margin-left:.3rem; vertical-align:middle; }

/* Code block */
.code-block { background:#0d1526; border:1px solid rgba(255,255,255,0.07); border-radius:12px; padding:1.1rem 1.25rem; font-family:'JetBrains Mono',monospace; font-size:.76rem; line-height:1.85; color:#cbd5e1; overflow-x:auto; }
.code-block .c-key { color:#7dd3fc; } .code-block .c-str { color:#fcd34d; } .code-block .c-num { color:#fb923c; } .code-block .c-comment { color:#4e6278; }

/* ── STEPS ── */
.steps { display:grid; grid-template-columns:repeat(5,1fr); gap:.9rem; margin-top:2rem; position:relative; }
.steps::before { content:''; position:absolute; top:27px; left:10%; right:10%; height:1px; background:linear-gradient(90deg,transparent,var(--border-hi),transparent); }
.step { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.65rem; }
.step-num { width:54px; height:54px; border-radius:50%; background:var(--bg-elevated); border:1px solid var(--border-hi); display:flex; align-items:center; justify-content:center; font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.9rem; color:var(--accent); flex-shrink:0; position:relative; z-index:1; box-shadow:0 2px 12px rgba(37,99,235,.1); }
.step h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:.9rem; font-weight:700; color:var(--text); }
.step p { font-size:.81rem; color:var(--text-muted); line-height:1.6; }

/* ── FEATURES ── */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.9rem; margin-top:2rem; }
.feature-card { padding:1.3rem; }
.feature-icon { width:40px; height:40px; border-radius:10px; background:var(--accent-glow); border:1px solid rgba(37,99,235,.15); display:flex; align-items:center; justify-content:center; margin-bottom:.85rem; font-size:1.1rem; }
.feature-card h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:.93rem; font-weight:700; color:var(--text); margin-bottom:.35rem; }
.feature-card p { font-size:.83rem; color:var(--text-muted); line-height:1.6; }
code.inline { font-family:'JetBrains Mono',monospace; font-size:.8em; color:var(--accent); background:rgba(37,99,235,.08); border-radius:3px; padding:.04rem .28rem; }

/* ── TABLES ── */
.policy-table, .data-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.policy-table th, .data-table th { text-align:left; padding:.6rem .75rem; font-size:.7rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); border-bottom:1px solid var(--border); }
.policy-table td, .data-table td { padding:.62rem .75rem; border-bottom:1px solid var(--border); color:var(--text-dim); line-height:1.5; vertical-align:top; }
.policy-table tr:last-child td, .data-table tr:last-child td { border-bottom:none; }
.policy-table code, .data-table code { font-family:'JetBrains Mono',monospace; font-size:.78em; color:var(--accent2); background:rgba(8,145,178,.07); border-radius:3px; padding:.02rem .24rem; }
.pol-id { font-family:'JetBrains Mono',monospace; font-size:.74rem; color:var(--accent); font-weight:600; white-space:nowrap; }
.table-card { padding:1.1rem 1.2rem; overflow-x:auto; }

/* ── AI ENGINE ── */
.ai-grid { display:grid; grid-template-columns:1fr 1.1fr; gap:3.5rem; align-items:start; }
.confidence-bands { display:flex; flex-direction:column; gap:.55rem; margin-top:1.25rem; }
.band { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.75rem; padding:.7rem .9rem; border-radius:8px; border:1px solid; }
.band-high  { background:rgba(5,150,105,.05);  border-color:rgba(5,150,105,.2);  }
.band-mid   { background:rgba(217,119,6,.05);  border-color:rgba(217,119,6,.2);  }
.band-low   { background:rgba(124,58,237,.05); border-color:rgba(124,58,237,.2); }
.band-range { font-family:'JetBrains Mono',monospace; font-size:.78rem; font-weight:700; white-space:nowrap; }
.band-high .band-range  { color:#059669; }
.band-mid  .band-range  { color:#d97706; }
.band-low  .band-range  { color:#7c3aed; }
.band-label { font-size:.83rem; color:var(--text-dim); }
.band-action { font-size:.74rem; font-weight:600; white-space:nowrap; }
.band-high .band-action  { color:#059669; }
.band-mid  .band-action  { color:#d97706; }
.band-low  .band-action  { color:#7c3aed; }
.verdict-grid { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; }
.verdict-tile { padding:.7rem .85rem; border-radius:8px; border:1px solid; }
.verdict-tile .v-title { font-size:.78rem; font-weight:700; margin-bottom:.2rem; }
.verdict-tile .v-desc { font-size:.74rem; color:var(--text-muted); line-height:1.5; }
.v-fp { border-color:rgba(5,150,105,.22);  background:rgba(5,150,105,.06);  } .v-fp .v-title { color:#047857; }
.v-tp { border-color:rgba(220,38,38,.22);  background:rgba(220,38,38,.06);  } .v-tp .v-title { color:#dc2626; }
.v-in { border-color:rgba(217,119,6,.22);  background:rgba(217,119,6,.06);  } .v-in .v-title { color:#b45309; }
.v-es { border-color:rgba(124,58,237,.22); background:rgba(124,58,237,.06); } .v-es .v-title { color:#7c3aed; }

/* ── INTEGRATIONS ── */
.integration-section { margin-bottom:2rem; }
.integration-section-label { font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); margin-bottom:.85rem; display:block; }
.chip-row { display:flex; flex-wrap:wrap; gap:.6rem; }
.chip { display:inline-flex; align-items:center; gap:.45rem; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:.42rem .82rem; font-size:.82rem; font-weight:500; color:var(--text-dim); backdrop-filter:blur(14px); transition:border-color .15s; }
.chip:hover { border-color:var(--border-hi); }
.chip-coming { background:rgba(217,119,6,.04); border-style:dashed; color:var(--text-muted); }
.chip-dot { width:6px; height:6px; border-radius:50%; background:var(--amber); flex-shrink:0; }
.families-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; margin-top:1.5rem; }
.family-card { padding:.9rem 1rem; }
.family-name { font-size:.84rem; font-weight:700; color:var(--text); margin-bottom:.2rem; }
.family-source { font-family:'JetBrains Mono',monospace; font-size:.62rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }
.family-mitre { font-family:'JetBrains Mono',monospace; font-size:.65rem; color:var(--accent2); margin-top:.3rem; }

/* ── SECURITY ── */
.security-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.9rem; margin-top:2rem; }
.security-card { padding:1.25rem; }
.security-card h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:.93rem; font-weight:700; color:var(--text); margin-bottom:.5rem; display:flex; align-items:center; gap:.5rem; }
.security-card p { font-size:.83rem; color:var(--text-muted); line-height:1.6; }
.security-card ul { font-size:.82rem; color:var(--text-muted); line-height:1.6; padding-left:1.1rem; margin-top:.45rem; }
.security-card li { margin-bottom:.2rem; }
.compliance-badges { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:2rem; }
.compliance-badge { display:inline-flex; align-items:center; gap:.42rem; background:var(--bg-elevated); border:1px solid var(--border-hi); border-radius:8px; padding:.45rem .9rem; font-size:.78rem; font-weight:600; color:var(--text-dim); }
.compliance-badge .badge-icon { font-size:.9rem; }

/* ── PRICING ── */
.pricing-wrap { display:flex; justify-content:center; margin-top:2rem; }
.pricing-card { max-width:540px; width:100%; background:var(--bg-elevated); border:1px solid var(--border-hi); border-radius:16px; padding:2rem; box-shadow:0 4px 24px rgba(37,99,235,.1); }
.pricing-tag { display:inline-block; background:rgba(37,99,235,.1); border:1px solid rgba(37,99,235,.22); color:var(--accent); font-size:.67rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:.17rem .58rem; border-radius:4px; margin-bottom:1rem; }
.pricing-card h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:1.15rem; font-weight:700; color:var(--text); margin-bottom:.4rem; }
.price { font-family:'Bricolage Grotesque',sans-serif; font-size:2rem; font-weight:800; color:var(--text); letter-spacing:-.03em; margin:.65rem 0 .2rem; }
.price-note { font-size:.78rem; color:var(--text-muted); }
.pricing-divider { border:none; border-top:1px solid var(--border); margin:1.35rem 0; }
.feature-list { list-style:none; display:flex; flex-direction:column; gap:.55rem; margin-bottom:1.6rem; }
.feature-list li { display:flex; align-items:flex-start; gap:.5rem; font-size:.88rem; color:var(--text-dim); }
.feature-list li .check { color:var(--green); flex-shrink:0; margin-top:1px; }
.btn-primary-full { display:block; text-align:center; background:var(--accent); border-radius:8px; padding:.78rem; font-weight:700; font-size:.9rem; color:#fff; text-decoration:none; cursor:pointer; border:none; font-family:'DM Sans',sans-serif; width:100%; position:relative; overflow:hidden; transition:background .15s, box-shadow .2s; }
.btn-primary-full::after { content:''; position:absolute; top:-50%; left:-100%; width:50%; height:200%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent); transform:skewX(-20deg); animation:shimmer 3.5s ease-in-out infinite; }
.btn-primary-full:hover { background:#1d4ed8; box-shadow:0 0 24px rgba(37,99,235,.4); }

/* ── FAQ ── */
.faq-list { display:flex; flex-direction:column; gap:.55rem; margin-top:2rem; }
.faq-item { border:1px solid var(--border); border-radius:10px; background:var(--bg-card); backdrop-filter:blur(16px); overflow:hidden; transition:border-color .15s; }
.faq-item.open { border-color:var(--border-hi); }
.faq-q { display:flex; align-items:center; justify-content:space-between; padding:.9rem 1.15rem; cursor:pointer; user-select:none; background:none; border:none; width:100%; text-align:left; font-family:'DM Sans',sans-serif; gap:.8rem; }
.faq-q-text { font-size:.9rem; font-weight:600; color:var(--text); line-height:1.4; }
.faq-chevron { flex-shrink:0; width:18px; height:18px; display:flex; align-items:center; justify-content:center; color:var(--text-muted); transition:transform .22s; }
.faq-item.open .faq-chevron { transform:rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a-inner { padding:0 1.15rem 1rem; font-size:.87rem; color:var(--text-dim); line-height:1.7; border-top:1px solid var(--border); padding-top:.75rem; }
.faq-a-inner code { font-family:'JetBrains Mono',monospace; font-size:.82em; color:var(--accent); background:rgba(37,99,235,.08); border-radius:3px; padding:.03rem .26rem; }
.faq-a-inner a { color:var(--accent); text-decoration:none; }
.faq-a-inner a:hover { text-decoration:underline; }
.faq-item.open .faq-a { max-height:600px; }

/* ── CTA BAND ── */
#cta-band { padding:4.5rem 0; text-align:center; position:relative; }
.cta-glow { position:absolute; width:600px; height:300px; border-radius:50%; background:radial-gradient(ellipse,rgba(37,99,235,.06) 0%,transparent 70%); left:50%; top:50%; transform:translate(-50%,-50%); pointer-events:none; }
#cta-band h2 { margin-bottom:.75rem; }
#cta-band .cta-sub { font-size:.97rem; color:var(--text-dim); margin:0 auto 2.25rem; max-width:540px; line-height:1.65; }

/* ── NEXT-PAGE NAV ── */
.page-next { display:flex; justify-content:space-between; gap:.9rem; padding:2.25rem 0 3.5rem; }
.page-next a { flex:1; max-width:420px; text-decoration:none; padding:1.1rem 1.3rem; display:flex; flex-direction:column; gap:.2rem; }
.page-next .pn-dir { font-size:.7rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
.page-next .pn-title { font-family:'Bricolage Grotesque',sans-serif; font-size:1rem; font-weight:700; color:var(--accent); }
.page-next a.pn-prev { text-align:left; }
.page-next a.pn-next { text-align:right; margin-left:auto; }

/* ── FOOTER ── */
footer { border-top:1px solid var(--border); background:rgba(255,255,255,0.78); backdrop-filter:blur(16px); position:relative; z-index:1; }
.footer-inner { max-width:1140px; margin:0 auto; padding:2.5rem clamp(1rem,3vw,2.5rem) 1.75rem; }
.footer-top { display:grid; grid-template-columns:1.8fr 1fr 1fr 1fr; gap:2rem; margin-bottom:2.25rem; }
.footer-logo { display:flex; align-items:center; gap:.55rem; font-weight:700; font-size:.95rem; color:var(--text); margin-bottom:.65rem; }
.footer-tagline { font-size:.83rem; color:var(--text-muted); line-height:1.6; max-width:220px; }
.footer-col h4 { font-size:.76rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); margin-bottom:.75rem; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:.5rem; }
.footer-col a { font-size:.83rem; color:var(--text-muted); text-decoration:none; transition:color .15s; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-top:1.5rem; border-top:1px solid var(--border); }
.footer-copy { font-size:.76rem; color:var(--text-muted); }
.footer-legal { display:flex; gap:1.25rem; }
.footer-legal a { font-size:.76rem; color:var(--text-muted); text-decoration:none; }
.footer-legal a:hover { color:var(--accent); }

/* ── MODAL ── */
.modal-overlay { position:fixed; inset:0; z-index:200; background:rgba(15,23,42,.45); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:1.5rem; opacity:0; pointer-events:none; transition:opacity .22s; }
.modal-overlay.open { opacity:1; pointer-events:all; }
.modal { background:var(--bg-elevated); border:1px solid var(--border); border-radius:16px; padding:1.85rem; width:100%; max-width:560px; max-height:90vh; overflow-y:auto; position:relative; box-shadow:0 24px 60px rgba(0,0,0,.16); transform:translateY(16px); transition:transform .22s; }
.modal-overlay.open .modal { transform:translateY(0); }
.modal-close { position:absolute; top:1.1rem; right:1.1rem; background:none; border:none; color:var(--text-muted); font-size:1.4rem; line-height:1; cursor:pointer; transition:color .15s; padding:.2rem; }
.modal-close:hover { color:var(--text); }
.modal-heading { font-family:'Bricolage Grotesque',sans-serif; font-size:1.3rem; font-weight:700; color:var(--text); margin-bottom:.32rem; }
.modal-sub { font-size:.86rem; color:var(--text-muted); margin-bottom:1.2rem; line-height:1.55; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.form-field { display:flex; flex-direction:column; gap:.3rem; margin-bottom:.75rem; }
.form-field label { font-size:.77rem; font-weight:600; color:var(--text-dim); }
.form-field input, .form-field select, .form-field textarea { background:#fff; border:1px solid var(--border); border-radius:7px; padding:.6rem .85rem; color:var(--text); font-family:'DM Sans',sans-serif; font-size:.875rem; outline:none; transition:border-color .15s; -webkit-appearance:none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.form-field input::placeholder, .form-field textarea::placeholder { color:var(--text-muted); }
.form-field select { cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .75rem center; padding-right:2rem; }
.form-field textarea { resize:vertical; min-height:60px; }
.form-error { background:rgba(220,38,38,.07); border:1px solid rgba(220,38,38,.22); color:#dc2626; padding:.58rem .85rem; border-radius:7px; font-size:.83rem; margin-bottom:.7rem; display:none; }
#submit-btn { width:100%; justify-content:center; font-size:.95rem; padding:.76rem; }
#submit-btn:disabled { opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }
.form-note { text-align:center; font-size:.73rem; color:var(--text-muted); margin-top:.85rem; line-height:1.5; }
.modal-success { display:none; text-align:center; padding:1.5rem 0 .5rem; }
.success-icon { width:56px; height:56px; border-radius:50%; background:rgba(5,150,105,.1); border:1px solid rgba(5,150,105,.22); color:var(--green); font-size:1.5rem; display:flex; align-items:center; justify-content:center; margin:0 auto 1.1rem; }
.modal-success h3 { font-family:'Bricolage Grotesque',sans-serif; font-size:1.2rem; font-weight:700; color:var(--text); margin-bottom:.42rem; }
.modal-success p { font-size:.88rem; color:var(--text-muted); line-height:1.6; max-width:320px; margin:0 auto; }

/* ── RESPONSIVE ── */
@media (max-width:960px) {
  .hero-inner { grid-template-columns:1fr; gap:2.5rem; padding:3.5rem 0 3rem; }
  .hero-visual { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right:none; }
  .arch-components { grid-template-columns:1fr 1fr; }
  .features-grid { grid-template-columns:1fr 1fr; }
  .security-grid { grid-template-columns:1fr 1fr; }
  .explore-grid { grid-template-columns:1fr 1fr; }
  .steps { grid-template-columns:1fr 1fr; }
  .steps::before { display:none; }
  .families-grid { grid-template-columns:repeat(2,1fr); }
  .ai-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr 1fr; }
  nav .nav-links { display:none; }
  .nav-burger { display:block; }
}
@media (max-width:640px) {
  .features-grid, .security-grid, .arch-components, .explore-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .steps { grid-template-columns:1fr; }
  .families-grid { grid-template-columns:1fr 1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; align-items:flex-start; gap:.5rem; }
  .arch-pipeline { flex-direction:column; }
  .arch-node { border-radius:8px !important; border:1px solid var(--border) !important; }
  .arch-node:not(:last-child)::after { content:'↓'; right:auto; top:auto; bottom:-13px; left:50%; transform:translateX(-50%); }
  .page-next { flex-direction:column; }
  .page-next a.pn-next { margin-left:0; text-align:left; }
}
