/* ============================================================
   JYXOS Design System v2.0 — April 2026
   Blueprint v2.0 compliant. Single CSS for all pages.
   Backward-compatible with v1.0 class names during migration.
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #0A0D12;
  --bg-2:      #0F1419;
  --bg-3:      #141A21;
  --bg-inset:  #060809;

  /* Legacy aliases (v1.0 backward compat) */
  --bg2: var(--bg-2);
  --bg3: var(--bg-3);
  --bg4: #1A2130;

  /* Text */
  --text:        #E8EAED;
  --text-strong: #FFFFFF;
  --text-muted:  #9BA3AF;
  --text-dim:    #6B7280;

  /* Legacy aliases */
  --white: var(--text-strong);
  --muted: var(--text-muted);
  --muted-d: var(--text-dim);

  /* Accents (restricted) */
  --cyan:       #06B6D4;
  --cyan-hover: #22D3EE;
  --amber:      #D4A574;
  --green:      #10B981;
  --red:        #EF4444;

  /* Legacy aliases */
  --cyan-d:    #0891B2;
  --cyan-glow: rgba(6,182,212,.18);
  --cyan-l:    var(--cyan-hover);
  --green-l:   #34D399;
  --gold:      #D97706;
  --gold-l:    #F59E0B;

  /* Borders */
  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --border-accent: rgba(6,182,212,0.22);

  /* Legacy aliases */
  --border2: var(--border-strong);
  --border3: rgba(255,255,255,0.15);

  /* Typography — families */
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;

  /* Legacy aliases */
  --font:    var(--font-body);
  --mono:    var(--font-mono);
  --display: var(--font-body);

  /* Typographic scale — desktop */
  --fs-hero:  64px;
  --fs-h1:    44px;
  --fs-h2:    32px;
  --fs-h3:    22px;
  --fs-h4:    16px;
  --fs-lead:  19px;
  --fs-body:  16px;
  --fs-small: 14px;
  --fs-micro: 11px;
  --fs-mono:  13px;

  /* Spacing scale (8px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Border radius */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  /* Container widths */
  --max-narrow:   720px;
  --max-standard: 1080px;
  --max-wide:     1240px;

  /* Legacy alias */
  --max-w: var(--max-standard);

  /* Layout */
  --nav-h: 68px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Grain texture — subtle noise overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan-hover); }
button { font-family: var(--font-body); cursor: pointer; border: none; }
ul, ol { list-style: none; }

/* ── CANVAS BACKGROUND (legacy — hidden in v2.0) ──────────── */
#bg-canvas {
  display: none !important;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────────── */
.wrap {
  max-width: var(--max-standard);
  margin: 0 auto;
  padding: 0 var(--space-7);
  position: relative;
  z-index: 1;
}
.wrap--narrow { max-width: var(--max-narrow); }
.wrap--wide { max-width: var(--max-wide); }
.z1 { position: relative; z-index: 1; }

/* ── V2.0 TYPOGRAPHY ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-4);
  display: block;
}
.eyebrow--cyan { color: var(--cyan); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin-bottom: var(--space-5);
}
/* Legacy support — .section-title used to be Inter w900 */
.section-title .hi { color: var(--cyan); }
.section-title .gold { color: var(--gold-l); }

.lead-text {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
}

.body-text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

/* Legacy sub class */
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-7);
  background: rgba(10,13,18,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  text-decoration: none;
  display: flex; align-items: center; gap: 3px;
}
.nav-logo {
  font-family: var(--font-body);
  font-weight: 900; font-size: 28px;
  letter-spacing: -1.5px; color: var(--text-strong); line-height: 1;
}
.nav-logo .j { color: var(--cyan); }
.nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); margin-bottom: 14px;
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--text-muted); font-size: var(--fs-small); font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-strong); background: rgba(255,255,255,.05);
}
.nav-cta {
  background: var(--cyan) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  transition: background .18s, opacity .18s !important;
}
.nav-cta:hover {
  background: var(--cyan-hover) !important;
  opacity: .95;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav dropdowns (desktop) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .nav-drop-trigger {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; user-select: none;
}
.nav-drop-chevron {
  width: 10px; height: 10px;
  transition: transform .2s;
}
.nav-dropdown:hover > .nav-drop-trigger .nav-drop-chevron,
.nav-dropdown.open > .nav-drop-trigger .nav-drop-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 200px;
  background: rgba(15,20,25,.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 600;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  border-radius: 0 !important;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-dropdown-menu a:hover {
  color: var(--text-strong) !important;
  background: rgba(255,255,255,.05) !important;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .18s, opacity .18s, border-color .18s;
  cursor: pointer; border: none;
  line-height: 1;
}
.btn-primary {
  background: var(--cyan); color: var(--bg);
}
.btn-primary:hover {
  background: var(--cyan-hover); color: var(--bg);
}
.btn-outline {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08); color: var(--text-strong);
  border-color: rgba(255,255,255,.18);
}
.btn-ghost {
  background: transparent; color: var(--cyan);
  border: 1px solid rgba(6,182,212,.25);
}
.btn-ghost:hover {
  background: rgba(6,182,212,.08);
}
.btn-green {
  background: var(--green); color: var(--bg);
}
.btn-green:hover {
  background: var(--green-l); color: var(--bg);
}
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ── BADGE / PILL ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
}
.badge-cyan {
  color: var(--cyan);
  background: rgba(6,182,212,.07);
  border: 1px solid rgba(6,182,212,.2);
}
.badge-green {
  color: var(--green);
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.2);
}
.badge-gold, .badge-amber {
  color: var(--amber);
  background: rgba(212,165,116,.07);
  border: 1px solid rgba(212,165,116,.2);
}
.badge-muted {
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: blink 2s infinite;
}
.badge-dot-cyan { background: var(--cyan); }
.badge-dot-green { background: var(--green); }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .25s;
}
.card:hover {
  border-color: var(--border-accent);
}
.card-sm { border-radius: var(--radius); }

/* ── PILLAR-BLOCK (principles) ──────────────────────────────── */
.pillar-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  position: relative;
}
.pillar-block::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  border-radius: 3px 0 0 3px;
}
.pillar-block h3 {
  font-family: var(--font-body);
  font-weight: 700; font-size: var(--fs-h3);
  color: var(--text-strong); margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.pillar-block p {
  font-size: 14.5px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: var(--space-3);
}
.pillar-block p:last-child { margin-bottom: 0; }
.pillar-block code {
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.18);
  color: var(--cyan-hover); padding: 2px 7px;
  border-radius: 5px;
}

/* ── FEATURE-CARD ───────────────────────────────────────────── */
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s;
}
.feature-card:hover {
  border-color: var(--border-accent);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.15);
  color: var(--text-muted);
}
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700; font-size: var(--fs-h4);
  color: var(--text-strong); margin-bottom: var(--space-2);
}
.feature-card p {
  font-size: var(--fs-small); color: var(--text-muted);
  line-height: 1.7; margin: 0;
}

/* ── METRIC-BOX ─────────────────────────────────────────────── */
.metric-box {
  text-align: center;
  padding: 28px var(--space-7);
}
.metric-box .num {
  font-family: var(--font-body);
  font-weight: 900; font-size: 36px; line-height: 1;
  color: var(--text-strong); letter-spacing: -2px; display: block;
}
.metric-box .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em; color: var(--text-muted);
  text-transform: uppercase; margin-top: 6px; display: block;
}

/* ── DATA TABLE ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table thead th {
  background: var(--bg-3);
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.data-table tbody td {
  padding: 18px 20px; font-size: var(--fs-small);
  color: var(--text); line-height: 1.65;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,.015); }

/* ── FAQ-ITEM (accordion) ───────────────────────────────────── */
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-q {
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px; color: var(--text);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after {
  content: '+'; font-size: 20px; color: var(--cyan);
  font-weight: 300; transition: transform .2s;
  flex-shrink: 0; margin-left: var(--space-4);
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
  font-size: var(--fs-small); color: var(--text-muted); line-height: 1.85;
}
.faq-item.open .faq-a {
  max-height: 600px; padding: 0 24px 20px;
}

/* ── TERMINAL-BLOCK ─────────────────────────────────────────── */
.terminal-block {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.terminal-block .bar {
  display: flex; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.terminal-block .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-block .dot-r { background: #ff5f57; }
.terminal-block .dot-y { background: #febc2e; }
.terminal-block .dot-g { background: #28c840; }
.terminal-block .body {
  padding: 16px 18px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.85;
}

/* Legacy terminal classes */
.terminal { background: rgba(0,0,0,.5); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot-r { background: #ff5f57; }
.terminal-dot-y { background: #febc2e; }
.terminal-dot-g { background: #28c840; }
.terminal-body { padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.85; }
.t-ok { color: var(--green); }
.t-warn { color: var(--gold-l); }
.t-err { color: var(--red); }
.t-info { color: var(--cyan); }
.t-dim { color: var(--text-dim); }

/* ── CALLOUT ────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 20px 24px; margin: var(--space-5) 0;
}
.callout p { margin: 0; font-size: var(--fs-small); line-height: 1.7; }
.callout--info {
  background: rgba(6,182,212,.05);
  border: 1px solid rgba(6,182,212,.15);
  color: var(--text);
}
.callout--warning {
  background: rgba(212,165,116,.05);
  border: 1px solid rgba(212,165,116,.15);
  color: var(--amber);
}
.callout--success {
  background: rgba(16,185,129,.05);
  border: 1px solid rgba(16,185,129,.15);
  color: var(--green);
}

/* ── LINK-ARROW ─────────────────────────────────────────────── */
.link-arrow {
  font-size: var(--fs-small); font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color .15s;
}
.link-arrow::after {
  content: ' \2192';
  transition: margin-left .15s;
}
.link-arrow:hover::after {
  margin-left: 4px;
}

/* ── METRICS BAR ────────────────────────────────────────────── */
.metrics-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10,13,18,.7);
  position: relative; z-index: 1;
}
.metrics-row {
  display: flex; justify-content: center; flex-wrap: wrap;
}
.metric-item {
  padding: 28px var(--space-7); text-align: center;
  border-right: 1px solid var(--border);
}
.metric-item:last-child { border-right: none; }
.metric-num {
  font-weight: 900; font-size: 36px; line-height: 1;
  color: var(--text-strong); letter-spacing: -2px; display: block;
}
.metric-num .hi { color: var(--cyan); }
.metric-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em; color: var(--text-muted);
  text-transform: uppercase; margin-top: 6px; display: block;
}

/* ── FEATURE GRID (legacy) ──────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s;
}
.feat-card:hover {
  border-color: var(--border-accent);
}
.feat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--space-4);
}
.feat-card h3 {
  font-weight: 700; font-size: var(--fs-h4);
  color: var(--text-strong); margin-bottom: var(--space-2);
}
.feat-card p {
  font-size: var(--fs-small); color: var(--text-muted);
  line-height: 1.7; margin: 0;
}

/* ── FAQ LIST (legacy) ──────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 4px; }

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--text); font-family: var(--font-body);
  font-size: var(--fs-small); outline: none;
  transition: border-color .18s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(6,182,212,.4);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select option { background: var(--bg-3); color: var(--text); }
.honeypot {
  position: absolute; left: -9999px;
  height: 0; overflow: hidden; opacity: 0;
}
.form-note {
  font-size: 12px; color: var(--text-muted); line-height: 1.6;
}
.form-success {
  display: none; padding: 18px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius); color: var(--green);
  font-size: var(--fs-small); font-weight: 500;
}
.form-error {
  display: none; padding: 14px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius); color: var(--red); font-size: 13px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max-standard); margin: 0 auto;
  padding: 0 var(--space-7);
}
.footer-top {
  display: flex; gap: 56px; justify-content: center;
  margin-bottom: 44px;
}
.footer-col h5 {
  font-size: var(--fs-micro); font-family: var(--font-mono);
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px; font-weight: 500;
}
.footer-col a {
  display: block; font-size: var(--fs-small); color: var(--text-muted);
  text-decoration: none; margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--text-strong); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.footer-brand {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.footer-logo {
  font-weight: 900; font-size: 26px;
  letter-spacing: -1.5px; color: var(--text-strong);
  text-decoration: none;
}
.footer-logo .j { color: var(--cyan); }
.footer-tag {
  font-size: 13px; color: var(--text-muted); text-align: center;
}
.footer-social {
  display: flex; gap: 8px; margin-top: 4px;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-muted); transition: all .18s;
}
.footer-social a:hover {
  background: rgba(6,182,212,.1);
  border-color: rgba(6,182,212,.3);
  color: var(--cyan);
}
.footer-divider {
  width: 60px; height: 1px; background: var(--border);
}
.footer-copy {
  font-size: 12.5px; color: var(--text-dim); text-align: center;
}
.footer-legal {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}
.footer-legal a {
  font-size: 12px; color: var(--text-dim);
  text-decoration: none; transition: color .15s;
}
.footer-legal a:hover { color: var(--text-muted); }
.footer-sep { font-size: 12px; color: var(--text-dim); opacity: .4; }
.footer-tm {
  font-size: 10.5px; color: var(--text-dim);
  text-align: center; max-width: 700px;
  line-height: 1.65; opacity: .7;
}

/* ── LEGAL PAGES ────────────────────────────────────────────── */
.legal-wrap {
  max-width: 780px; margin: 0 auto;
  padding: 0 40px; position: relative; z-index: 1;
}
.legal-hero {
  padding: 140px 0 48px;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.02em; color: var(--text-strong);
  margin-bottom: 12px; line-height: 1.2;
}
.legal-hero .meta {
  font-size: 12.5px; color: var(--text-dim);
  font-family: var(--font-mono);
}
.legal-body { padding: 48px 0 100px; }
.legal-body h2 {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; color: var(--text-strong);
  margin: 44px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-weight: 700; font-size: 16px;
  color: var(--text); margin: 28px 0 8px;
}
.legal-body p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 14px;
}
.legal-body ul, .legal-body ol {
  padding-left: 22px; margin-bottom: 14px;
  list-style: disc;
}
.legal-body ol { list-style: decimal; }
.legal-body li {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 6px;
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--cyan);
  background: rgba(6,182,212,.08);
  padding: 2px 7px; border-radius: 4px;
}
.legal-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(6,182,212,.3);
}
.legal-body a:hover {
  color: var(--cyan-hover);
  text-decoration-color: var(--cyan);
}
.legal-note {
  background: rgba(6,182,212,.05);
  border: 1px solid rgba(6,182,212,.15);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.legal-note p { margin: 0; font-size: var(--fs-small); color: var(--text); }
.legal-warn {
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.15);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.legal-warn p { margin: 0; font-size: var(--fs-small); color: var(--gold-l); }
.toc {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 40px;
}
.toc h4 {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; color: var(--amber);
  text-transform: uppercase; margin-bottom: 14px;
}
.toc ol { padding-left: 18px; margin: 0; list-style: decimal; }
.toc li { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 6px; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--cyan); }

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transition: opacity .5s ease;
}
.fade-up.visible {
  opacity: 1;
}

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}
@keyframes pulse-line {
  0%, 100% { opacity: 1; }
  50%      { opacity: .2; }
}

/* Legacy keyframes (kept for pages not yet migrated) */
@keyframes up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ring-expand {
  0%   { opacity: .4; transform: translate(-50%,-50%) scale(.85); }
  100% { opacity: 0;  transform: translate(-50%,-50%) scale(1.2); }
}

/* ── LEGACY CLASSES (backward compat for pricing, privacy, terms, refunds, stats) ── */

/* Product grid (legacy index.html) */
.product-grid { display: grid; grid-template-columns: 1fr 380px; }
.product-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

/* Hero (generic legacy) */
.hero {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 48px 80px; text-align: center;
}

/* Why grid (legacy) */
.why { padding: 100px 0; border-top: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Pillars (legacy) */
.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .2s;
}
.pillar:hover { border-color: var(--border-accent); }
.pillar-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.pillar h4 { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.pillar p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* Trust (legacy) */
.trust { padding: 100px 0; border-top: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px; text-align: left;
}
.trust-card .trust-icon {
  font-size: 22px; margin-bottom: 12px;
  display: inline-flex; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.2);
  border-radius: var(--radius);
}
.trust-card h4 {
  font-weight: 700; font-size: 14px;
  color: var(--text-strong); margin-bottom: 6px;
}
.trust-card p {
  font-size: 12.5px; color: var(--text-muted);
  line-height: 1.65; margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 48px;
    --fs-h1: 36px;
    --fs-h2: 27px;
    --fs-h3: 19px;
    --fs-lead: 17px;
  }
  .nav { padding: 0 24px; height: 60px; }
  .nav-logo { font-size: 24px; }
  .nav-links > a:not(.nav-cta),
  .nav-dropdown { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 0 24px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 24px; }
  .footer-top { flex-direction: column; align-items: center; gap: 28px; }
  .metric-item { padding: 24px 32px; }
  .legal-wrap { padding: 0 24px; }
  .legal-hero { padding: 108px 0 40px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile menu open state */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(10,13,18,.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }
  .nav-links.open { display: flex; }
  .nav-links.open > a,
  .nav-links.open > .nav-dropdown { display: block; }
  .nav-links.open > a:not(.nav-cta) {
    display: block; padding: 12px 16px;
    font-size: 16px; color: var(--text);
  }
  .nav-links.open .nav-cta {
    margin-top: 8px; text-align: center;
    display: block; padding: 14px !important;
  }
  /* Mobile dropdown overrides */
  .nav-links.open .nav-dropdown {
    display: block;
  }
  .nav-links.open .nav-drop-trigger {
    display: flex; padding: 12px 16px;
    font-size: 16px; color: var(--text);
    font-weight: 500;
  }
  .nav-links.open .nav-dropdown-menu {
    position: static; transform: none;
    min-width: 0; border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 0 0 16px;
    display: none;
  }
  .nav-links.open .nav-dropdown.open > .nav-dropdown-menu {
    display: block;
  }
  .nav-links.open .nav-dropdown-menu a {
    font-size: 15px !important;
    padding: 10px 16px !important;
    color: var(--text-muted) !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --fs-hero: 40px;
    --fs-h1: 32px;
    --fs-h2: 24px;
    --fs-h3: 18px;
  }
  .wrap { padding: 0 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .legal-wrap { padding: 0 20px; }
  .contact-box { padding: 28px 20px; }
  .footer-inner { padding: 0 20px; }
  .metric-item {
    padding: 20px 24px; flex: 1 1 100%;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .metric-item:last-child { border-bottom: none; }
  .metrics-row { flex-direction: column; }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .nav, .footer, #bg-canvas { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-hero { padding-top: 20px; }
}
