/* Sapphire Trace — brand system (from Claude Design "Sapphire Trace Brand" v1) */
:root {
  --sapphire: #0F52BA;
  --sapphire-bright: #2E6BE0;
  --deep-navy: #001540;
  --canvas: #05091A;
  --surface: #0A1124;
  --surface-deep: #070D1E;
  --surface-alt: #070C1B;
  --border: #1B2947;
  --border-faint: #101E3B;
  --border-line: #131F3A;
  --ice: #EAF0FB;
  --dim: #9FB0CC;
  --faint: #5A6B8C;
  --traced: #4C87FF;
  --traced-soft: #7FA9FF;
  --illicit: #E5484D;
  --watchlist: #E8A33D;
  --verified: #12B886;
  --sans: 'Sora', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Newsreader', serif;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ice);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--traced); text-decoration: none; }
a:hover { color: #8FB4FF; }
::selection { background: var(--sapphire); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Wordmark */
.wordmark {
  font-family: var(--sans);
  letter-spacing: 0.14em;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  -webkit-text-stroke: 0.4px currentColor;
  color: var(--ice);
  white-space: nowrap;
}
.wordmark .cap { font-size: 1.16em; }
.wordmark .sp { display: inline-block; width: 0.45em; }

/* Wordmark as outlined SVG (Sackers Gothic converted to paths — no webfont served) */
.wordmark-svg { height: 14px; width: auto; display: block; color: var(--ice); flex-shrink: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sapphire-bright);
  margin-bottom: 16px;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 9, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo:hover { text-decoration: none; }
.logo .wordmark { font-size: 16px; }
.logo .wordmark-svg { height: 14px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--dim); }
.nav-links a:hover, .nav-links a.active { color: var(--ice); }
.btn {
  display: inline-block;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--sapphire); color: #fff !important; padding: 13px 26px; font-size: 15px; }
.btn-primary:hover { background: var(--sapphire-bright); }
.btn-ghost {
  background: transparent; color: var(--ice) !important;
  border: 1px solid #2B3D63; padding: 13px 26px; font-size: 15px;
}
.btn-ghost:hover { border-color: var(--traced); color: #8FB4FF !important; }
.nav .btn-primary { padding: 11px 20px; font-size: 14px; }
.nav .nav-ghost {
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: var(--ice) !important;
  border-color: var(--sapphire-bright);
  box-shadow: 0 0 14px rgba(46, 107, 224, 0.35);
}
.nav .nav-ghost:hover { color: #fff !important; border-color: var(--traced); box-shadow: 0 0 18px rgba(76, 135, 255, 0.5); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
  background-image: radial-gradient(#0D1B36 1px, transparent 1px);
  background-size: 32px 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-faint);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 80% 40%, rgba(15,82,186,0.16), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--traced-soft);
  border: 1px solid #1E3260; border-radius: 100px;
  padding: 7px 14px; margin-bottom: 28px;
}
h1.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
h1.display em { font-style: italic; color: var(--traced); }
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--dim); max-width: 46ch; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.persona-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); border: 1px solid #17233F; border-radius: 3px; padding: 6px 11px;
}

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--border-faint); }
section.alt { background: var(--surface-alt); }
h2.section {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.8vw, 44px); line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub { font-size: 17px; line-height: 1.65; max-width: 60ch; color: var(--dim); margin-bottom: 48px; }

/* Stat band — mirrors the deck's Scale slide */
.stat-band { background: var(--surface-alt); position: relative; overflow: hidden; }
.stat-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 88% 12%, rgba(15,82,186,0.14), transparent 62%);
  pointer-events: none;
}
.stat-band > .wrap { position: relative; }
.scale-stats {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.scale-stat { padding-top: 26px; }
.scale-stat .num-hero {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.9; letter-spacing: -0.03em; color: #F27579;
}
.scale-stat .num {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1; color: var(--ice);
}
.scale-stat .label-strong { font-size: 19px; line-height: 1.4; color: var(--ice); margin-top: 20px; font-weight: 500; }
.scale-stat .label-sub { font-family: var(--mono); font-size: 15px; line-height: 1.4; margin-top: 10px; }
.scale-stat .label { font-size: 15px; line-height: 1.5; color: var(--dim); margin-top: 16px; }
@media (max-width: 720px) {
  .scale-stats { grid-template-columns: 1fr; }
}

.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); padding: 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: #2B4374; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--dim); }
.hex {
  width: 34px; height: 34px; margin-bottom: 24px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

/* Cell grid (differentiators) */
.cellgrid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.cell { background: var(--surface); padding: 32px; }
.cell h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.cell p { font-size: 14px; line-height: 1.6; color: var(--dim); }

/* Evidence tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 3px;
}
.tag-illicit { background: rgba(229,72,77,0.12); color: #F27579; border: 1px solid rgba(229,72,77,0.35); }
.tag-watch { background: rgba(232,163,61,0.12); color: #EDBB6E; border: 1px solid rgba(232,163,61,0.35); }
.tag-verified { background: rgba(18,184,134,0.12); color: #3ED2A7; border: 1px solid rgba(18,184,134,0.35); }
.tag-traced { background: rgba(76,135,255,0.12); color: var(--traced-soft); border: 1px solid rgba(76,135,255,0.35); }

/* Glass box */
.glassbox {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.evidence-stack { display: flex; flex-direction: column; gap: 10px; }
.evidence-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 5px;
  background: var(--surface-deep);
}
.evidence-row .addr { font-family: var(--mono); font-size: 13px; color: var(--ice); }
.evidence-row .src { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* CTA band */
.cta-band {
  position: relative; text-align: center; overflow: hidden;
  background-image: radial-gradient(#0D1B36 1px, transparent 1px);
  background-size: 30px 30px;
  padding: clamp(64px, 9vw, 120px) 0;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 50% 30%, rgba(15,82,186,0.2), transparent 65%);
  pointer-events: none;
}
.cta-band > .wrap { position: relative; }
.cta-band h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 5vw, 58px); line-height: 1.08;
  max-width: 18ch; margin: 0 auto 16px;
}
.cta-band p { font-size: 17px; color: var(--dim); max-width: 48ch; margin: 0 auto 36px; line-height: 1.6; }

/* Prose pages */
.prose { max-width: 780px; padding: clamp(56px, 8vw, 88px) 0; }
.prose h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; margin-bottom: 18px;
}
.prose .lede { font-size: 18px; color: var(--dim); margin-bottom: 44px; line-height: 1.6; }
.prose h2 { font-size: 21px; font-weight: 600; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--dim); font-size: 16px; margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ice); font-weight: 600; }
.notice {
  border: 1px solid var(--border); border-left: 3px solid var(--sapphire);
  background: var(--surface); border-radius: 8px;
  padding: 18px 22px; margin: 28px 0;
}
.notice p { margin: 0; font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--border-faint); background: var(--surface-alt); padding: clamp(48px, 6vw, 72px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid .desc { font-size: 13px; color: var(--faint); line-height: 1.6; max-width: 30ch; margin-top: 16px; }
.foot-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col a { color: var(--dim); }
.foot-col a:hover { color: var(--ice); }
.foot-base {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-faint);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}

@media (min-width: 1050px) {
  .cellgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .cellgrid-6 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 641px) and (max-width: 899px) {
  .cellgrid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cellgrid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .glassbox { grid-template-columns: 1fr !important; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile navigation */
.nav-toggle-box { display: none; }
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 12px 6px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ice); display: block; border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    padding: 20px clamp(20px, 4vw, 48px) 24px;
  }
  .nav-toggle-box:checked ~ .nav-links { display: flex; }
  .nav-toggle-box:checked + .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-box:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-box:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links a { font-size: 16px; padding: 4px 0; }
  .nav-links .btn { text-align: center; padding: 13px 20px !important; }
}
