/* Voxhelm site. Tokens from 1-Ideas/design/tokens.json (style guide v0.1). */

:root {
  --ink: #0A0F1C;
  --helm-900: #101830;
  --helm-700: #1E2A4A;
  --helm-500: #3A4B7C;
  --helm-300: #8896C2;
  --voxwave-400: #67E8F9;
  --voxwave-500: #22D3EE;
  --voxwave-700: #0E7490;
  --signal-300: #FCD34D;
  --signal-500: #F59E0B;
  --paper: #FAFAF7;
  --fog-200: #E4E6E0;
  --success: #10B981;

  --bg: var(--ink);
  --surface: var(--helm-900);
  --surface-2: var(--helm-700);
  --line: rgba(136, 150, 194, 0.18);
  --text: #EEF1F8;
  --muted: #A6B0CF;
  --accent: var(--voxwave-500);

  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.2);
  --glow: 0 0 0 4px rgba(34, 211, 238, 0.18), 0 0 24px rgba(34, 211, 238, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--voxwave-400); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--voxwave-400); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--voxwave-500); }
.brand span { font-weight: 600; letter-spacing: 0.16em; font-size: 15px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.site-header .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 0; }
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 9999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn-primary { background: var(--voxwave-500); color: var(--ink); }
.btn-primary:hover { color: var(--ink); box-shadow: var(--glow); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--helm-300); color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(58, 75, 124, 0.45), transparent 60%),
    var(--ink);
}
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 112px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 9999px;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 7vw, 64px); line-height: 1.04; font-weight: 650; letter-spacing: -0.025em;
}
h1 em { font-style: normal; color: var(--voxwave-400); }
.lede { margin: 0 0 32px; max-width: 34em; color: var(--muted); font-size: 18px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin: 24px 0 0; color: var(--muted); font-size: 14px; }

/* Call card: a still of the in-call screen with a talking avatar. */
.call {
  justify-self: center; width: 100%; max-width: 380px;
  padding: 24px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--helm-700), var(--helm-900));
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
}
.call-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.call-top .live { display: inline-flex; align-items: center; gap: 6px; color: var(--voxwave-400); font-weight: 600; }
.call-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.face {
  position: relative; width: 208px; height: 208px; margin: 28px auto 20px;
  border-radius: 50%; overflow: hidden; background: #d9d9d9;
  box-shadow: var(--glow);
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.speaking { animation: halo 1.6s var(--ease) infinite; }
@keyframes halo {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.22), 0 0 24px rgba(34, 211, 238, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0.12), 0 0 40px rgba(34, 211, 238, 0.45); }
}
.call-name { text-align: center; font-weight: 600; }
.call-sub { text-align: center; color: var(--muted); font-size: 13px; }
.wave { display: flex; justify-content: center; align-items: center; gap: 4px; height: 28px; margin: 16px 0; }
.wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--voxwave-500); opacity: 0.5; transition: height 120ms linear; }
.transcript {
  min-height: 96px; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(10, 15, 28, 0.55); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.5;
}
.transcript p { margin: 0 0 6px; }
.transcript .who { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 6px; }
.transcript .agent .who { color: var(--voxwave-400); }
.call-controls { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.call-controls span {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(136, 150, 194, 0.16);
}
.call-controls span.end { background: #EF4444; }
.call-controls svg { width: 22px; height: 22px; color: var(--text); }

/* --- Sections -------------------------------------------------------------- */

section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 104px 0; } }
.band { background: var(--helm-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 12px; color: var(--voxwave-400); font: 600 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.section-lede { margin: 0 0 48px; max-width: 40em; color: var(--muted); font-size: 18px; }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; font-weight: 600; }
.card p, .step p { margin: 0; color: var(--muted); }

.steps { display: grid; gap: 24px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px;
  border-radius: 50%; border: 1px solid var(--voxwave-700); color: var(--voxwave-400);
  font: 600 15px/1 var(--mono);
}

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 28px; border-radius: var(--r-lg); background: rgba(30, 42, 74, 0.45); border: 1px solid var(--line); }
.card .icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(34, 211, 238, 0.12); color: var(--voxwave-400);
}
.card .icon svg { width: 22px; height: 22px; }

/* Avatars */
.faces { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.faces figure { margin: 0; text-align: center; }
.faces img {
  width: 96px; height: 96px; border-radius: 22px; object-fit: cover; background: #d9d9d9;
  border: 1px solid var(--line);
}
.faces figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
@media (min-width: 640px) { .faces img { width: 120px; height: 120px; } }

/* Roadmap */
.roadmap { display: grid; gap: 20px; }
@media (min-width: 960px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.lane { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.lane h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 9999px;
  font: 600 11px/1.5 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
}
.tag-now { background: rgba(16, 185, 129, 0.16); color: #6EE7B7; }
.tag-next { background: rgba(34, 211, 238, 0.14); color: var(--voxwave-400); }
.tag-later { background: rgba(245, 158, 11, 0.16); color: var(--signal-300); }
.lane ul { margin: 0; padding: 0; list-style: none; }
.lane li { padding: 12px 0; border-top: 1px solid var(--line); }
.lane li:first-child { border-top: 0; padding-top: 0; }
.lane li strong { display: block; font-weight: 600; }
.lane li span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0;
  cursor: pointer; font-weight: 600; font-size: 17px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--voxwave-400); font: 400 22px/1 var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 40em; }

/* Beta */
.beta {
  position: relative; overflow: hidden; padding: 48px 24px; border-radius: var(--r-xl); text-align: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--helm-700) 55%, var(--voxwave-700) 130%);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .beta { padding: 72px 48px; } }
.beta h2 { margin-bottom: 12px; }
.beta p { margin: 0 auto 28px; max-width: 34em; color: var(--muted); font-size: 18px; }
.beta .note { margin: 20px auto 0; font-size: 14px; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer .brand svg { width: 22px; height: 22px; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* --- Prose pages (privacy, 404) ---------------------------------------------- */

.prose { max-width: 720px; padding: 56px 0 96px; }
.prose h1 { font-size: clamp(34px, 5vw, 44px); }
.prose h2 { margin-top: 48px; font-size: 24px; }
.prose p, .prose li { color: #CDD3E6; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; }
.callout {
  margin: 24px 0; padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35);
}
.callout p { margin: 0; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.site-header .btn.push { margin-left: auto; }
