/* ==========================================================================
   VoiceYak — voiceyak.com
   Ink #0A0A0D · Coal #141419 · Bone #F4F4F6 · Ash #9A9AA3 · Ember #FA7826
   Display: Clash Display · Body: Switzer · Mono: JetBrains Mono
   ========================================================================== */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0a0a0d;
  --coal: #141419;
  --coal-2: #1a1a20;
  --bone: #f4f4f6;
  --ash: #9a9aa3;
  --faint: rgba(244, 244, 246, 0.38);
  --ember: #fa7826;
  --ember-soft: #ffb27a;
  --oxide: #9e211a;
  --line: rgba(244, 244, 246, 0.09);
  --display: "Clash Display", "Avenir Next", -apple-system, sans-serif;
  --body: "Switzer", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

::selection { background: rgba(250, 120, 38, 0.35); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ember); color: #17090109; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #170901; }

:is(a, button):focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- texture */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 600; font-size: 21px;
  letter-spacing: 0.01em; text-decoration: none;
}
.nav-brand img { border-radius: 7px; }
.nav-timer {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; color: var(--ash);
  letter-spacing: 0.06em;
}
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(250, 120, 38, 0.8);
}
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 15.5px; font-weight: 500; color: var(--ash);
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--bone); }
.nav-github {
  display: inline-flex; align-items: center;
  color: var(--ash); transition: color 0.2s;
}
.nav-github:hover { color: var(--bone); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 16.5px;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border-radius: 12px; padding: 14px 26px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, border-color 0.25s;
}
.btn-primary {
  background: linear-gradient(180deg, #ff8a3d, #ef6a17);
  color: #1c0c02;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 28px rgba(250, 120, 38, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 14px 40px rgba(250, 120, 38, 0.4);
}
.btn-ghost {
  border-color: rgba(244, 244, 246, 0.18);
  color: var(--bone);
  background: rgba(244, 244, 246, 0.03);
}
.btn-ghost:hover { border-color: rgba(244, 244, 246, 0.4); background: rgba(244, 244, 246, 0.06); }
.btn-small { padding: 9px 18px; font-size: 14.5px; border-radius: 10px;
  background: linear-gradient(180deg, #ff8a3d, #ef6a17); color: #1c0c02; font-weight: 650; }
.btn-big { padding: 19px 40px; font-size: 19px; border-radius: 15px; }

/* ------------------------------------------------------------ type bits */
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ember);
}
.sec-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.04; letter-spacing: -0.015em;
}
.sec-head { margin-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.moment, .tour-copy, .manifesto .wrap, .specs-cta, .footer-inner {
  grid-template-columns: minmax(0, 1fr);
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 128px 0 72px; overflow: clip; }
.aurora { position: absolute; inset: -20% -10%; z-index: -1; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.aurora::before {
  width: 68vw; height: 54vw; left: -16vw; top: -18vw;
  background: radial-gradient(closest-side, rgba(245, 115, 36, 0.17), transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora::after {
  width: 52vw; height: 46vw; right: -18vw; top: 8vw;
  background: radial-gradient(closest-side, rgba(158, 33, 26, 0.2), transparent 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(6vw, 4vw) scale(1.06); } }
@keyframes drift-b { to { transform: translate(-5vw, -3vw) scale(0.96); } }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: start; }
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(66px, 10.5vw, 148px);
  line-height: 0.94; letter-spacing: -0.025em;
  margin-top: 6px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--ember) 10%, var(--ember-soft) 60%, #ffd9b8 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 56ch; font-size: 20px; color: var(--ash); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero-fine { font-size: 13px; color: var(--faint); letter-spacing: 0.1em; }

/* ------------------------------------------------------------- hero demo */
.demo {
  width: 100%;
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 130% at 50% -20%, rgba(250, 120, 38, 0.07), transparent 55%),
    linear-gradient(180deg, var(--coal), rgba(20, 20, 25, 0.6));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  padding: 26px 26px 34px;
  display: grid;
  gap: 30px;
}
.demo-doc {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101014;
  min-height: 128px;
  overflow: hidden;
}
.demo-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(244, 244, 246, 0.06);
}
.demo-titlebar b {
  margin-left: 10px; font-weight: 500; font-size: 12.5px;
  color: var(--faint); letter-spacing: 0.04em;
}
.tl { width: 12px; height: 12px; border-radius: 50%; background: #3a3a41; }
.tl-r { background: #f26257; } .tl-y { background: #f5bf4f; } .tl-g { background: #58c255; }
.demo-line {
  padding: 20px 22px 8px;
  font-size: 21px; line-height: 1.55;
  min-height: 74px;
  color: #e8e8ee;
}
.demo-ghost { color: rgba(244, 244, 246, 0.22); }
.demo-ghost.is-hidden { display: none; }
.caret {
  display: inline-block; width: 2px; height: 1.15em;
  background: var(--ember);
  vertical-align: text-bottom; margin-left: 2px;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-stamp { padding: 0 22px 18px; font-size: 13px; color: var(--ember); letter-spacing: 0.08em; }
.demo-stamp a { color: var(--ash); text-decoration: underline; cursor: pointer; }
.demo-stamp a:hover { color: var(--bone); }

.demo-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 26px; flex-wrap: wrap;
}
.demo-hint { width: 100%; text-align: center; font-size: 14px; color: var(--faint); }
.demo-hint kbd {
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
  font-size: 12px; background: var(--coal-2);
}

/* keycap */
.keycap {
  position: relative;
  width: 86px; height: 86px; border-radius: 18px;
  background: linear-gradient(180deg, #2e2e35, #202026);
  border: 1px solid rgba(244, 244, 246, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.keycap:active, .keycap.is-down {
  transform: scale(0.93) translateY(3px);
  background: linear-gradient(180deg, #1e1e24, #16161b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), inset 0 3px 9px rgba(0, 0, 0, 0.5);
}
.keycap-fn {
  position: absolute; top: 10px; right: 14px;
  font-size: 19px; font-weight: 500; color: rgba(244, 244, 246, 0.92);
}
.keycap-globe {
  position: absolute; bottom: 11px; left: 12px;
  width: 18px; height: 18px; color: rgba(244, 244, 246, 0.55);
}
.keycap-static { display: inline-block; cursor: default; }

/* pill */
.pill {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 13px 22px; border-radius: 999px;
  background: rgba(28, 28, 33, 0.62);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(244, 244, 246, 0.13);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill-timer { font-size: 15px; color: rgba(244, 244, 246, 0.85); letter-spacing: 0.04em; }
.pill-label { display: none; font-size: 15px; font-weight: 600; color: rgba(244, 244, 246, 0.85); }
.pill-spinner { display: none; width: 17px; height: 17px; }
.pill-spinner circle {
  fill: none; stroke: var(--ember); stroke-width: 3;
  stroke-dasharray: 42 18; stroke-linecap: round;
  transform-origin: center;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* pill states (hero demo) */
.pill[data-state="idle"] { opacity: 0.45; }
.pill[data-state="listening"] { opacity: 1; }
.pill[data-state="transcribing"] .eq, .pill[data-state="transcribing"] .pill-timer { display: none; }
.pill[data-state="transcribing"] .pill-spinner, .pill[data-state="transcribing"] .pill-label { display: inline-block; }

/* equalizer */
.eq { display: inline-flex; align-items: center; gap: 4px; height: 22px; }
.eq i {
  width: 3.5px; height: 30%; border-radius: 2px;
  background: var(--ember);
}
.pill[data-state="listening"] .eq i, .eq-live i { animation: eq 0.62s ease-in-out infinite alternate; }
.eq i:nth-child(1) { animation-delay: -0.05s; }
.eq i:nth-child(2) { animation-delay: -0.32s; }
.eq i:nth-child(3) { animation-delay: -0.18s; }
.eq i:nth-child(4) { animation-delay: -0.44s; }
.eq i:nth-child(5) { animation-delay: -0.09s; }
.eq i:nth-child(6) { animation-delay: -0.51s; }
.eq i:nth-child(7) { animation-delay: -0.26s; }
@keyframes eq { from { height: 22%; } to { height: 100%; } }

/* ------------------------------------------------------------------ how */
.how { padding: 96px 0 88px; }
.strip {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
  padding-bottom: 74px;
}
.moment { display: grid; gap: 13px; align-content: start; }
.moment-art {
  height: 132px; display: flex; align-items: center;
  padding: 0 4px;
}
.moment h3 {
  font-family: var(--display); font-weight: 600; font-size: 27px;
  letter-spacing: -0.01em;
}
.moment > p:not(.moment-t) { color: var(--ash); font-size: 16.5px; max-width: 34ch; }
.moment-t { color: var(--faint); font-size: 13px; letter-spacing: 0.12em; }
.pasted-line {
  display: inline-flex; align-items: center;
  font-size: 16px; color: #e8e8ee;
  border: 1px solid var(--line); border-radius: 12px;
  background: #101014; padding: 14px 18px;
}
.pasted-line .mono { color: var(--ember); }
.caret-on { animation: blink 1.06s steps(1) infinite; }
.ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg,
      rgba(244, 244, 246, 0.18) 0 1px, transparent 1px calc(100% / 36));
  background-size: 100% 9px;
  background-repeat: no-repeat;
  mask-image: linear-gradient(90deg, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, black 92%, transparent);
}

/* ----------------------------------------------------------------- tour */
.tour { padding: 12px 0 36px; }
.tour-row {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px;
  align-items: center;
  padding: 50px 0;
}
.tour-row-flip { grid-template-columns: 1fr 1.25fr; }
.tour-row-flip .tour-shot { order: 2; }
.tour-row-flip .tour-copy { order: 1; }
.tour-copy { display: grid; gap: 20px; justify-items: start; }
.tour-copy .sec-title { font-size: clamp(34px, 3.4vw, 46px); }
.tour-copy p:not(.eyebrow) { color: var(--ash); font-size: 17.5px; max-width: 46ch; }
.tour-shot { position: relative; }
.tour-shot::before {
  content: ""; position: absolute; inset: -12% -10%;
  background: radial-gradient(closest-side, rgba(245, 115, 36, 0.11), transparent 72%);
  filter: blur(50px);
}
.tour-shot img {
  position: relative;
  border-radius: 14px;
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.tour-tilt-l img { transform: perspective(1900px) rotateY(6.5deg) rotateX(1.5deg); }
.tour-tilt-r img { transform: perspective(1900px) rotateY(-6.5deg) rotateX(1.5deg); }

/* ------------------------------------------------------------ manifesto */
.manifesto {
  position: relative;
  padding: 112px 0;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(250, 120, 38, 0.075), transparent 70%);
}
.manifesto .wrap { display: grid; gap: 30px; justify-items: center; }
.manifesto-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(52px, 7.6vw, 104px);
  line-height: 0.98; letter-spacing: -0.02em;
}
.manifesto-body { max-width: 62ch; color: var(--ash); font-size: 19px; }
.manifesto-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.chip {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em;
  padding: 11px 22px; border-radius: 999px;
  color: #ffd3ae;
  background: rgba(250, 120, 38, 0.08);
  border: 1px solid rgba(250, 120, 38, 0.38);
}

/* ----------------------------------------------------------------- film */
.film { padding: 28px 0 100px; }
.film .sec-head { margin-bottom: 36px; }
.film-frame { position: relative; }
.film-frame::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(closest-side, rgba(245, 115, 36, 0.12), transparent 72%);
  filter: blur(60px);
}
.film-frame video {
  position: relative; display: block; width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* ---------------------------------------------------------------- specs */
.specs { padding: 8px 0 110px; }
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
  margin-bottom: 88px;
}
.specs-grid > div { background: var(--coal); padding: 26px 28px; display: grid; gap: 9px; }
.specs-grid dt {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember); font-weight: 500;
}
.specs-grid dd { font-size: 17px; color: var(--bone); }
.specs-cta { display: grid; gap: 30px; justify-items: center; text-align: center; }

/* --------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 60px 0 70px; }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  display: grid; gap: 16px; justify-items: center; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 600; font-size: 20px;
}
.footer-brand img { border-radius: 8px; }
.footer-line { color: var(--ash); font-size: 16px; }
.footer-line a { color: var(--bone); text-decoration-color: rgba(250, 120, 38, 0.6); }
.footer-fine { color: var(--faint); font-size: 13.5px; }

/* --------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .strip { grid-template-columns: 1fr; gap: 46px; padding-bottom: 0; }
  .ruler { display: none; }
  .tour-row, .tour-row-flip { grid-template-columns: 1fr; gap: 36px; padding: 52px 0; }
  .tour-row-flip .tour-shot { order: 0; }
  .tour-row-flip .tour-copy { order: 1; }
  .tour-tilt-l img, .tour-tilt-r img { transform: none; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 100px 0 56px; }
  .hero-sub { font-size: 18px; }
  .nav-inner { padding: 11px 16px; gap: 10px; }
  .nav-brand { font-size: 18px; gap: 8px; }
  .nav-brand img { width: 26px; height: 26px; }
  .nav-timer { display: none; }
  .nav-actions { gap: 14px; }
  .nav-link { font-size: 14px; }
  .btn-small { padding: 8px 14px; font-size: 13.5px; }
  .demo { padding: 18px 16px 26px; margin-top: 40px; }
  .demo-line { font-size: 18px; }
  .how { padding: 68px 0 60px; }
  .sec-head { margin-bottom: 44px; }
  .tour-row, .tour-row-flip { padding: 40px 0; }
  .specs-grid { grid-template-columns: 1fr; margin-bottom: 90px; }
  .manifesto { padding: 84px 0; }
  .film { padding-bottom: 100px; }
  .specs { padding-bottom: 110px; }
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora::before, .aurora::after, .caret, .caret-on,
  .pill[data-state="listening"] .eq i, .eq-live i, .pill-spinner circle {
    animation: none;
  }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover { transform: none; }
}
