/* ═══════════════════════════════════════════════════════
   CDS V5 CONTENT PAGES — Dark Design System
   Shared stylesheet for all non-homepage pages.
   Extends styles-v5.css variables.
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-deep:    #070a0f;
  --bg-primary: #0b0f14;
  --bg-raised:  #0e1219;
  --bg-surface: #121820;
  --bg-card:    #141b24;

  --gold:       #c8a45c;
  --gold-subtle:rgba(201,162,39,0.08);
  --gold-border:rgba(201,162,39,0.18);

  --steel:      #5b8fb9;
  --steel-bright:#7db4e0;
  --steel-dim:  rgba(91,143,185,0.10);
  --steel-glow: rgba(91,143,185,0.20);
  --steel-micro:rgba(91,143,185,0.06);

  --white:      #ffffff;
  --text:       #c8cdd4;
  --text-dim:   #7a8494;
  --text-muted: #4a5568;

  --border:     rgba(255,255,255,0.06);
  --border-vis: rgba(255,255,255,0.10);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  --section-v:  clamp(80px, 10vw, 140px);
  --max-w:      1120px;
  --max-w-narrow: 760px;
  --side:       clamp(24px, 5vw, 48px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; color: var(--text); background: var(--bg-deep); line-height: 1.7; overflow-x: hidden; }
::selection { background: rgba(91,143,185,0.3); color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.film-grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}


/* ═══════════════ PAGE HERO ═══════════════ */
.page-hero {
  padding: 140px var(--side) 80px;
  background: var(--bg-primary);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-vis), transparent);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero .section-label {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px; color: var(--white); margin-bottom: 20px;
}
.page-hero .hero-sub {
  font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; color: var(--text-dim);
  max-width: 600px;
}
.page-hero-glow {
  position: absolute; width: 600px; height: 400px; top: 10%; right: -10%;
  background: radial-gradient(ellipse, rgba(91,143,185,0.04) 0%, transparent 65%);
  pointer-events: none;
}


/* ═══════════════ SECTION SYSTEM ═══════════════ */
.v5-section { padding: var(--section-v) var(--side); position: relative; }
.v5-section--primary { background: var(--bg-primary); }
.v5-section--deep { background: var(--bg-deep); }
.v5-section--raised { background: var(--bg-raised); }
.v5-section-inner { max-width: var(--max-w); margin: 0 auto; }
.v5-section-inner--narrow { max-width: var(--max-w-narrow); margin: 0 auto; }

.section-label {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.8px; color: var(--white); margin-bottom: 20px;
}
.section-intro { font-size: 17px; line-height: 1.7; color: var(--text-dim); max-width: 560px; margin-bottom: 48px; }


/* ═══════════════ BUTTONS ═══════════════ */
/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .3px; padding: 14px 32px; border-radius: 6px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.btn--primary { background: var(--steel); color: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn--primary:hover { background: var(--steel-bright); box-shadow: 0 4px 24px var(--steel-glow); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.btn--outline:hover { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.btn--lg { padding: 18px 44px; font-size: 15px; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }


/* ═══════════════ CARDS ═══════════════ */
.v5-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 40px 36px;
  transition: border-color .3s, box-shadow .3s, transform .2s;
  position: relative; overflow: hidden;
}
.v5-card:hover { border-color: var(--border-vis); transform: translateY(-2px); }
.v5-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--steel); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.v5-card:hover::after { transform: scaleX(1); }
.v5-card-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: -.2px; }
.v5-card-desc { font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.v5-card-meta { font-family: var(--mono); font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }

.v5-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.v5-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.v5-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.v5-card-grid--tight {
  gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.v5-card-grid--tight .v5-card { border: none; border-radius: 0; }


/* ═══════════════ ARTICLE STYLES ═══════════════ */
.article-hero {
  padding: 140px var(--side) 60px;
  background: var(--bg-primary); position: relative;
}
.article-hero-inner { max-width: var(--max-w-narrow); margin: 0 auto; }
.article-meta {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px; display: flex; gap: 16px; align-items: center;
}
.article-meta-sep { color: var(--text-muted); opacity: .4; }
.article-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.1;
  letter-spacing: -1px; color: var(--white); margin-bottom: 20px;
}
.article-hero .hero-sub {
  font-size: 17px; line-height: 1.7; color: var(--text-dim); max-width: 640px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--steel);
  margin-bottom: 32px; transition: color .3s;
}
.article-back:hover { color: var(--steel-bright); }

/* Article body content */
.article-body {
  padding: var(--section-v) var(--side);
  background: var(--bg-primary);
}
.article-body-inner {
  max-width: var(--max-w-narrow); margin: 0 auto;
}
.article-body h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15;
  letter-spacing: -.5px; color: var(--white); margin: 56px 0 20px;
}
.article-body h3 {
  font-size: 20px; font-weight: 700; color: var(--white);
  margin: 40px 0 14px; letter-spacing: -.2px;
}
.article-body h4 {
  font-size: 17px; font-weight: 600; color: var(--white); margin: 32px 0 12px;
}
.article-body p {
  font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 24px;
}
.article-body a { color: var(--steel); transition: color .2s; }
.article-body a:hover { color: var(--steel-bright); text-decoration: underline; }

.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 24px;
}
.article-body li {
  font-size: 16px; line-height: 1.8; color: var(--text);
  padding: 4px 0; position: relative;
}
.article-body ul li::marker { color: var(--steel); }
.article-body ol li::marker { color: var(--steel); font-family: var(--mono); font-weight: 500; }

.article-body blockquote, .article-callout {
  background: var(--bg-raised); border-left: 2px solid var(--gold);
  padding: 24px 28px; margin: 32px 0; border-radius: 0 8px 8px 0;
}
.article-body blockquote p, .article-callout p {
  color: var(--text); font-style: normal; margin-bottom: 0;
}
.article-body code, .article-body .inline-code {
  font-family: var(--mono); font-size: 14px; background: var(--bg-surface);
  padding: 2px 8px; border-radius: 4px; color: var(--steel-bright);
}
.article-body pre {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px; overflow-x: auto; margin: 24px 0;
}
.article-body pre code { background: none; padding: 0; font-size: 14px; color: var(--text); }

.article-body img {
  border-radius: 8px; border: 1px solid var(--border);
  margin: 32px 0;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.article-body th {
  background: var(--bg-raised); font-weight: 600; color: var(--white);
  text-align: left; padding: 12px 16px; font-size: 14px;
  border-bottom: 1px solid var(--border-vis);
}
.article-body td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text);
}
.article-body tr:last-child td { border-bottom: none; }

/* Article stat rows (featured stats) */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin: 40px 0;
}
.stat-item {
  background: var(--bg-card); padding: 28px 24px; text-align: center;
}
.stat-number {
  font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -0.5px;
  display: block; margin-bottom: 6px;
}
.stat-label {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* Article end CTA */
.article-cta-section {
  padding: 80px var(--side);
  background: var(--bg-deep); text-align: center;
  border-top: 1px solid var(--border);
}
.article-cta-inner { max-width: 560px; margin: 0 auto; }
.article-cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  color: var(--white); margin-bottom: 16px; letter-spacing: -.5px;
}
.article-cta-section p { font-size: 16px; color: var(--text-dim); line-height: 1.7; margin-bottom: 32px; }

/* Related articles */
.related-section {
  padding: var(--section-v) var(--side);
  background: var(--bg-raised);
}
.related-section-inner { max-width: var(--max-w); margin: 0 auto; }
.related-card { text-decoration: none; display: block; }
.related-card .v5-card-title { transition: color .3s; }
.related-card:hover .v5-card-title { color: var(--steel-bright); }

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001;
  background: transparent;
}
.reading-progress-bar {
  height: 100%; background: var(--steel); width: 0%;
  transition: width 50ms linear;
}


/* ═══════════════ FAQ STYLES ═══════════════ */
.faq-tabs {
  display: flex; gap: 8px; margin-bottom: 48px; flex-wrap: wrap;
}
.faq-tab {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer;
  background: var(--bg-surface); color: var(--text-muted);
  transition: all .3s;
}
.faq-tab:hover { color: var(--text); background: var(--bg-card); }
.faq-tab.active { background: var(--steel-dim); color: var(--steel); border: 1px solid rgba(91,143,185,.2); }

.faq-category { margin-bottom: 48px; }
.faq-category-title {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
  padding-bottom: 16px; margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none; cursor: pointer; text-align: left; gap: 24px;
}
.faq-question { font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.4; transition: color .3s; }
.faq-trigger:hover .faq-question { color: var(--steel-bright); }
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px; position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--text-dim);
  transition: transform .3s, opacity .3s;
}
.faq-icon::before { width: 12px; height: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1px; height: 12px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height .4s cubic-bezier(.16,1,.3,1), padding .4s; }
.faq-answer.open { max-height: 500px; padding: 0 0 20px; }
.faq-answer p { font-size: 15px; line-height: 1.8; color: var(--text-dim); max-width: 640px; }
.faq-answer a { color: var(--steel); transition: color .2s; }
.faq-answer a:hover { color: var(--steel-bright); text-decoration: underline; }


/* ═══════════════ INSIGHTS HUB ═══════════════ */
.insight-card { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.insight-card .v5-card { transition: border-color .3s, transform .2s; flex: 1; display: flex; flex-direction: column; }
.insight-card:hover .v5-card { border-color: var(--border-vis); transform: translateY(-3px); }
.insight-card:hover .v5-card::after { transform: scaleX(1); }
.insight-card-tag {
  font-family: var(--mono); font-size: 11px; color: var(--steel);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; display: block;
}
.insight-card-title {
  font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px;
  letter-spacing: -.2px; transition: color .3s;
}
.insight-card:hover .insight-card-title { color: var(--steel-bright); }
.insight-card-excerpt { font-size: 15px; line-height: 1.7; color: var(--text-dim); margin-bottom: 16px; }
.insight-card-read {
  font-size: 13px; font-weight: 600; color: var(--steel);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
}


/* ═══════════════ TOOL/INTERACTIVE PAGES ═══════════════ */
.tool-container { max-width: var(--max-w-narrow); margin: 0 auto; }

.tool-progress {
  display: flex; align-items: center; gap: 0; margin-bottom: 40px;
}
.tool-progress-step {
  flex: 1; height: 3px; background: var(--bg-surface);
  transition: background .4s;
}
.tool-progress-step.active { background: var(--steel); }
.tool-progress-step.completed { background: var(--steel); }

.tool-question-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 40px; margin-bottom: 24px;
}
.tool-question {
  font-size: 18px; font-weight: 700; color: var(--white);
  margin-bottom: 24px; line-height: 1.3;
}
.tool-option {
  display: block; width: 100%; text-align: left;
  padding: 16px 20px; margin-bottom: 8px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 15px;
  cursor: pointer; transition: all .3s;
  font-family: var(--sans);
}
.tool-option:hover { border-color: var(--steel); background: var(--steel-dim); color: var(--white); }
.tool-option.selected { border-color: var(--steel); background: rgba(91,143,185,0.12); color: var(--white); }

.tool-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 48px; text-align: center;
}
.tool-score {
  font-size: 64px; font-weight: 800; color: var(--gold);
  letter-spacing: -2px; line-height: 1; margin-bottom: 8px;
}
.tool-score-label {
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
}
.tool-tier {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 20px; border-radius: 6px; margin-bottom: 24px;
}
.tool-tier--high { background: rgba(91,143,185,0.1); color: var(--steel-bright); border: 1px solid rgba(91,143,185,0.2); }
.tool-tier--mid { background: var(--gold-subtle); color: var(--gold); border: 1px solid var(--gold-border); }
.tool-tier--low { background: rgba(255,255,255,0.03); color: var(--text-dim); border: 1px solid var(--border-vis); }

/* Checklist-specific */
.checklist-phase {
  margin-bottom: 48px;
}
.checklist-phase-header {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.checklist-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.checklist-checkbox {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 4px;
  border: 1px solid var(--border-vis); background: var(--bg-surface);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .3s; margin-top: 2px;
}
.checklist-checkbox.checked {
  background: var(--steel); border-color: var(--steel);
}
.checklist-checkbox.checked::after {
  content: '✓'; color: var(--white); font-size: 14px; font-weight: 700;
}
.checklist-text { font-size: 15px; color: var(--text); line-height: 1.6; }
.checklist-ref {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: .5px; margin-top: 4px; display: block;
}
.checklist-item.completed .checklist-text { color: var(--text-muted); text-decoration: line-through; }


/* ═══════════════ FORM INPUTS ═══════════════ */
.v5-input {
  width: 100%; padding: 14px 18px; font-family: var(--sans); font-size: 15px;
  background: var(--bg-surface); border: 1px solid var(--border-vis);
  border-radius: 6px; color: var(--text); transition: border-color .3s, box-shadow .3s;
}
.v5-input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-dim); }
.v5-input::placeholder { color: var(--text-muted); }
.v5-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.v5-textarea { min-height: 120px; resize: vertical; }
.v5-select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8494' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}


/* ═══════════════ ABOUT PAGE ═══════════════ */
.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin: 48px 0;
}
.about-stat {
  background: var(--bg-card); padding: 32px 24px; text-align: center;
}
.about-stat-num {
  font-size: 32px; font-weight: 800; color: var(--white);
  letter-spacing: -1px; display: block; margin-bottom: 4px;
}
.about-stat-label {
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image {
  width: 100%; border-radius: 8px;
  filter: grayscale(1) contrast(1.15) brightness(0.9);
}
.about-image-wrap { position: relative; }
.about-image-wrap::after {
  content: ''; position: absolute; inset: -8px; border: 1px solid var(--border);
  border-radius: 12px; z-index: -1;
}

.founder-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.founder-cred {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 1px;
  color: var(--steel); padding: 6px 14px;
  border: 1px solid rgba(91,143,185,.18); border-radius: 4px; background: var(--steel-dim);
}


/* ═══════════════ CAREERS ═══════════════ */
.careers-future {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 48px; text-align: center; max-width: 640px; margin: 0 auto;
}
.careers-future p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }


/* ═══════════════ LEGAL PAGES ═══════════════ */
.legal-body { padding: var(--section-v) var(--side); background: var(--bg-primary); }
.legal-body-inner { max-width: var(--max-w-narrow); margin: 0 auto; }
.legal-body h2 {
  font-size: 22px; font-weight: 700; color: var(--white);
  margin: 48px 0 16px; letter-spacing: -.2px;
}
.legal-body h3 { font-size: 18px; font-weight: 600; color: var(--white); margin: 32px 0 12px; }
.legal-body p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.legal-body ul { padding-left: 24px; margin-bottom: 16px; }
.legal-body li { font-size: 15px; line-height: 1.8; color: var(--text); padding: 4px 0; }
.legal-body li::marker { color: var(--steel); }
.legal-body a { color: var(--steel); transition: color .2s; }
.legal-body a:hover { color: var(--steel-bright); text-decoration: underline; }
.legal-updated {
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  letter-spacing: .5px; margin-bottom: 32px;
}
.legal-contact { background: var(--bg-card); border-radius: 8px; padding: 24px; margin-top: 32px; }
.legal-contact a { color: var(--steel); }


/* ═══════════════ 404 PAGE ═══════════════ */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px var(--side); background: var(--bg-deep);
  position: relative; overflow: hidden;
}
.error-glow {
  position: absolute; width: 500px; height: 300px; top: 30%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(91,143,185,0.04), transparent 60%);
  pointer-events: none;
}
.error-code {
  font-size: clamp(100px, 20vw, 200px); font-weight: 800;
  color: var(--bg-card); letter-spacing: -5px; line-height: 1; margin-bottom: 16px;
  position: relative;
}
.error-message { font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.error-desc { font-size: 16px; color: var(--text-dim); margin-bottom: 40px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ═══════════════ SUCCESS PAGE ═══════════════ */
.success-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px var(--side); background: var(--bg-deep);
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--steel-dim); border: 2px solid var(--steel);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 28px; color: var(--steel);
}
.success-heading { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.success-desc { font-size: 16px; color: var(--text-dim); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.success-steps { max-width: 400px; margin: 0 auto 40px; text-align: left; }
.success-step {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.success-step-num {
  font-family: var(--mono); font-size: 13px; color: var(--steel);
  flex-shrink: 0; width: 24px;
}
.success-step-text { font-size: 15px; color: var(--text); line-height: 1.6; }


/* ═══════════════ CTA SECTION (reusable) ═══════════════ */
.v5-cta-section {
  padding: clamp(80px, 10vw, 140px) var(--side);
  text-align: center; background: var(--bg-deep); position: relative; overflow: hidden;
}
.v5-cta-section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel), transparent);
}
.v5-cta-glow {
  position: absolute; width: 600px; height: 350px; top: 15%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(91,143,185,.05), transparent 65%);
  pointer-events: none;
}
.v5-cta-inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.v5-cta-section h2 {
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 800;
  color: var(--white); margin-bottom: 16px; letter-spacing: -1px; line-height: 1.1;
}
.v5-cta-section p { font-size: 17px; color: var(--text-dim); line-height: 1.7; margin-bottom: 36px; }
.v5-cta-alt { margin-top: 16px; }
.v5-cta-alt a {
  font-family: var(--mono); font-size: 14px; color: var(--text-dim); transition: color .3s;
}
.v5-cta-alt a:hover { color: var(--steel); }


/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .v5-card-grid--3, .v5-card-grid--2 { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-image-wrap { max-width: 300px; margin: 0 auto; }
  .founder-creds { justify-content: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .page-hero h1 { letter-spacing: -1px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .faq-tabs { gap: 4px; }
  .faq-tab { padding: 8px 14px; font-size: 11px; }
  .stat-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .tool-question-card { padding: 24px; }
}

/* ═══════════════ ANIMATIONS ═══════════════ */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal="side"] { opacity: 0; transform: translateX(30px); }
[data-reveal="blur"] { opacity: 0; filter: blur(8px); transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="side"], [data-reveal="blur"] { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* P1 Fix: Keyboard focus styles for interactive elements */
.faq-trigger:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}
.v5-card:focus-visible, a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
  border-radius: 4px;
}
.tool-option:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}
