/* ============================================================
   VPRONIX — Voice Biometrics for Sovereign Systems
   Shared design system
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Surfaces — cool near-black */
  --bg:        oklch(0.16 0.012 230);
  --bg-deep:   oklch(0.13 0.012 230);
  --surface:   oklch(0.20 0.014 232);
  --surface-2: oklch(0.24 0.016 232);
  --line:      oklch(0.92 0.02 220 / 0.10);
  --line-soft: oklch(0.92 0.02 220 / 0.06);

  /* Text */
  --text:      oklch(0.95 0.008 220);
  --text-dim:  oklch(0.74 0.015 220);
  --text-mute: oklch(0.58 0.018 222);

  /* Accent — teal / cyan (single accent) */
  --accent:    oklch(0.82 0.135 188);
  --accent-bright: oklch(0.88 0.14 190);
  --accent-deep:   oklch(0.62 0.11 195);
  --accent-glow:   oklch(0.82 0.135 188 / 0.18);

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-glow); color: var(--accent-bright); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Background field: faint grid + vignette ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 70% -10%, oklch(0.82 0.135 188 / 0.07), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, oklch(0.62 0.11 195 / 0.05), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Shell ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }

.h-xxl { font-size: clamp(40px, 7vw, 82px); }
.h-xl  { font-size: clamp(32px, 4.6vw, 56px); }
.h-lg  { font-size: clamp(26px, 3vw, 38px); }

.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-dim); max-width: 56ch; line-height: 1.55; }

.muted { color: var(--text-mute); }
.accent { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px; letter-spacing: 0.005em;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: oklch(0.18 0.02 220);
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 40px -8px var(--accent-glow); transform: translateY(-2px); }
.btn-ghost {
  background: oklch(1 0 0 / 0.02);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); transform: translateY(-2px); }

/* Header CTA: outlined teal pill */
.nav-cta .btn-primary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  box-shadow: none;
  padding: 10px 18px;
  font-size: 13px;
}
.nav-cta .btn-primary:hover { background: var(--accent-glow); border-color: var(--accent-bright); box-shadow: none; transform: translateY(-2px); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: oklch(0.16 0.012 230 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: oklch(0.14 0.012 230 / 0.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  border: 2px solid oklch(0.82 0.135 188 / 0.6);
  background: oklch(0.82 0.135 188 / 0.1);
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.brand .mark span {
  position: static; width: 3px; border-radius: 3px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.brand .wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: 0.02em;
}
.brand .wordmark b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: 0;
  color: var(--text-dim); padding: 9px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: oklch(1 0 0 / 0.04); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

/* ---- Generic section rhythm ---- */
.section-pad { padding-block: clamp(72px, 11vw, 140px); }
.section-head { max-width: 64ch; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }

/* ---- Cards ---- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s, transform .3s, background .3s;
}
.card:hover { border-color: oklch(0.82 0.135 188 / 0.4); transform: translateY(-4px); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer .brand { display: block; text-align: center; width: auto; margin-inline: auto; }
.footer .brand .mark { margin: 0 auto 10px; }
.footer .brand .wordmark { display: inline-block; }
.footer .col { text-align: center; }
.footer .col p { margin-inline: auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-block: 64px 40px;
}
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.footer .col a { display: block; color: var(--text-dim); padding: 6px 0; font-size: 15px; transition: color .2s; }
.footer .col a:hover { color: var(--accent); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 26px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-body); font-size: 13px; color: var(--text-mute); flex-wrap: wrap;
}
.legal-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: var(--text-mute); transition: color .2s; }
.legal-links a:hover { color: var(--accent); }

/* ---- Legal document ---- */
.legal-hero { padding-top: clamp(48px,7vw,90px); padding-bottom: clamp(24px,3vw,36px); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(34px,5vw,52px); margin: 18px 0 16px; }
.legal-hero .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-mute); }
.legal-body { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px,5vw,72px); padding-block: clamp(40px,5vw,64px) clamp(64px,9vw,120px); align-items: start; }
.legal-toc { position: sticky; top: 92px; }
.legal-toc .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.legal-toc a { display: block; color: var(--text-dim); font-size: 14px; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--accent); border-color: var(--accent); }
.legal-prose { max-width: 70ch; }
.legal-prose .notice { border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 10px; background: oklch(0.82 0.135 188 / 0.05); padding: 18px 20px; font-size: 14.5px; color: var(--text-dim); margin-bottom: 40px; }
.legal-prose section { scroll-margin-top: 92px; margin-bottom: 44px; }
.legal-prose h2 { font-size: clamp(20px,2.2vw,26px); margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.legal-prose h2 .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.legal-prose h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
.legal-prose p { color: var(--text-dim); margin-bottom: 14px; font-size: 16px; line-height: 1.68; }
.legal-prose ul { list-style: none; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.legal-prose ul li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }
.legal-prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); border-radius: 1px; }
.legal-prose a.inline { color: var(--accent); border-bottom: 1px solid oklch(0.82 0.135 188 / 0.4); }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.legal-prose th, .legal-prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); color: var(--text-dim); vertical-align: top; }
.legal-prose th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); background: oklch(1 0 0 / 0.02); }
@media (max-width: 820px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Pill / tag ---- */
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px;
}
.tag.live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---- Placeholder media ---- */
.ph {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, oklch(1 0 0 / 0.025) 0 10px, transparent 10px 20px),
    var(--bg-deep);
  display: grid; place-items: center; color: var(--text-mute);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- Mobile ---- */
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
