/* Voice Atlas, concept B: dark, atmospheric, product-forward */

:root {
  --bg: #070617;          /* canvas: deep indigo-black */
  --bg-band: #0c0a22;     /* alternate band */
  --surface: #121030;     /* raised panels */
  --text: #f3f1ff;
  --muted: #bdb8de;       /* body copy, 10.6:1 on --bg */
  --faint: #a19cc7;       /* small print, 7.4:1 on --bg */
  --violet: #a598ff;
  --blue: #7cbcff;
  --line: rgba(190, 180, 255, 0.14);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --space: clamp(64px, 7vw, 96px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
p, dd { text-wrap: pretty; }

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3, dt {
  color: var(--text);
  font-family: var(--display);
  font-weight: 560;
  font-optical-sizing: auto;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type scale ---------- */
.h-xl { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; }
.h-lg { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 20ch; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.1875rem); line-height: 1.7; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  font: 500 1rem/1 var(--body);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { min-height: 56px; padding: 0.95em 1.9em; font-size: 1.0625rem; }
.btn--light { background: var(--text); color: #120e36; }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost {
  margin-top: 2rem;
  color: var(--text);
  border: 1px solid rgba(190, 180, 255, 0.32);
  background: rgba(165, 152, 255, 0.06);
}
.btn--ghost:hover { background: rgba(165, 152, 255, 0.14); border-color: rgba(190, 180, 255, 0.6); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 6, 23, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(190, 180, 255, 0.08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.nav__brand img { width: auto; height: 34px; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 32px); font-size: 0.9375rem; }
.nav__links a { color: var(--muted); text-decoration: none; padding: 6px 0; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta {
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(190, 180, 255, 0.3);
  background: rgba(165, 152, 255, 0.1);
}
.nav__links .nav__cta:hover { background: rgba(165, 152, 255, 0.2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: -68px;
  padding-top: calc(68px + clamp(48px, 6vw, 88px));
  padding-bottom: clamp(40px, 4vw, 48px);
  overflow-x: clip;
}
/* Purple Universe, pulled toward indigo and dimmed so type reads first */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 30% 0;
  z-index: -2;
  background: url(../img/purple-universe.webp) 30% 40% / cover no-repeat;
  filter: hue-rotate(-28deg) saturate(0.7) brightness(0.45);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 6, 23, 0.7), rgba(7, 6, 23, 0.15) 70%);
}
.hero__copy { max-width: 1100px; }
.hero__title {
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: initial;
}
.typing {
  color: #b8b0ff;
  white-space: nowrap;
  padding-right: 0.04em;
}
html:not(.js) .typing:empty::before { content: "customers"; } /* no-JS fallback only */
.typing::after {
  content: "";
  display: inline-block;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  border-radius: 2px;
  background: currentColor;
  animation: blink 1.1s steps(1) infinite;
}
.typing.is-typing::after { animation: none; }
.typing.is-done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead {
  margin: clamp(24px, 3vw, 36px) 0 clamp(32px, 4vw, 44px);
  max-width: 34ch;
  color: #d9d5f5;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.5;
}

/* ---------- framed product shots ---------- */
.frame {
  position: relative;
  padding: 1px;
  border-radius: 16px;
  background: rgba(190, 180, 255, 0.26);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.frame video { width: 100%; border-radius: 15px; background: var(--surface); }
.frame--hero { margin-top: clamp(40px, 4vw, 56px); }
.frame--light { width: 100%; max-width: 440px; justify-self: center; }
.frame--light video { background: #eceaf7; }
.frame--wide { max-width: 1040px; margin: clamp(36px, 4vw, 48px) auto 0; }

/* ---------- sections ---------- */
.block { position: relative; padding-block: var(--space); }
.block--band { background: var(--bg-band); border-block: 1px solid rgba(190, 180, 255, 0.06); }
.block--intro { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 0; }

.split { display: grid; gap: clamp(28px, 4vw, 48px); }
.split .lead + .btn { margin-top: 2rem; }
.split__text .lead { margin-top: 1.5rem; }

@media (min-width: 880px) {
  .split--statement { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
  .split--media { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .split--flip { grid-template-columns: 6fr 5fr; }
  .split--wide { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
  .split--faq { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .faq__head { position: sticky; top: 110px; }
}
@media (max-width: 879px) {
  .split--flip .frame { order: 2; }
}

/* ---------- features ---------- */
.features {
  display: grid;
  gap: 40px 64px;
  margin-top: clamp(40px, 4vw, 48px);
  padding-top: clamp(32px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.feature h3, .panel h3 { margin: 20px 0 10px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; }
.feature p { max-width: 52ch; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--violet);
  background: rgba(165, 152, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(190, 180, 255, 0.22);
}
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- call to action ---------- */
.cta {
  padding-block: clamp(64px, 7vw, 96px);
  text-align: center;
  background: var(--bg-band);
  border-block: 1px solid rgba(190, 180, 255, 0.08);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.025em;
}
.cta__lead { margin: 20px 0 36px; color: #e2defb; font-size: clamp(1.15rem, 1.9vw, 1.5rem); }

/* ---------- FAQ ---------- */
.faq__head .lead, .contact__head .lead { margin-top: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq > div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.015em; }
.faq dd { margin-top: 12px; max-width: 64ch; }

/* ---------- contact ---------- */
.contact { display: grid; gap: 24px; margin-top: clamp(36px, 4vw, 52px); }
@media (min-width: 880px) { .contact { grid-template-columns: 1fr 1fr; } }
.panel {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: rgba(165, 152, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel__big {
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--text);
}
.panel__big strong { font-weight: 560; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(124, 188, 255, 0.5);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.link-arrow:hover { text-decoration-color: var(--blue); }
.link-arrow svg { width: 0.85em; height: 0.85em; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- footer ---------- */
.footer { padding-block: clamp(56px, 6vw, 72px) 40px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 880px) { .footer__grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.footer__about img { height: 40px; width: auto; margin-bottom: 20px; }
.footer__about p:last-child { max-width: 46ch; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 32px; }
.footer__nav li + li { margin-top: 10px; }
.footer__nav a { color: var(--text); text-decoration: none; }
.footer__nav a:hover { color: var(--blue); }
.footer__legal { margin-top: 48px; padding-top: 28px; background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; color: var(--faint); font-size: 0.8125rem; line-height: 1.6; }
.footer__legal small { display: block; max-width: 90ch; margin-top: 8px; font-size: inherit; }
.footer__legal a { color: var(--muted); }

/* ---------- motion: reveal only when JS is present ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 599px) {
  .hero__title br { display: none; }
  .typing { display: block; min-height: 1em; }
  .nav__brand img { height: 28px; }
  .nav__links { gap: 14px; font-size: 0.875rem; }
  .nav__links .nav__cta { padding: 8px 12px; }
}
@media (max-width: 374px) {
  .nav__links { gap: 10px; font-size: 0.8125rem; }
  .nav__links .nav__cta { padding: 7px 10px; }
}

/* site build additions */
html { scroll-padding-top: 96px; }
.frame img { width: 100%; border-radius: 15px; }
.block--intro .frame--wide { margin-top: clamp(48px, 5vw, 72px); }
/* The two Playground clips are near-square; full width would blow their text up. */
.frame:has(video[height="1040"]) { max-width: 860px; }
/* Text-only hero: the page says what Voice Atlas is before it shows it. */
.hero--solo { min-height: min(78svh, 760px); display: grid; align-content: center; padding-bottom: clamp(64px, 8vw, 120px); }
.hero--solo::before { inset: 0; }
