/* WhisperFlow landing — the base: tokens, type, buttons, shell, the capsule. */
:root {
  --space: #05070b;
  --space-2: #080b12;
  --panel: #0a0e15;
  --field: #0c111a;
  --field-2: #0f1520;
  --line: #1b2432;
  --line-hi: #2a3647;
  --text: #e6edf7;
  --dim: #8b96a8;
  --muted: #566174;
  --acid: #b4ff39;
  --acid-hi: #c8ff6a;
  --acid-deep: #7fc41a;
  --on-acid: #071002;
  --warn: #ffb547;
  --red: #ff3b5c;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::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; min-height: 100vh; background: var(--space); color: var(--text);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--acid); color: var(--on-acid); }

[hidden] { display: none !important; }        /* class rules like display:flex must not unhide it */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; overflow-x: clip; }   /* glows may spill; the page never scrolls sideways */
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }

/* -- type ------------------------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--body);
  letter-spacing: .18em; text-transform: uppercase; color: var(--acid);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acid);
                   box-shadow: 0 0 12px var(--acid); }
.lead { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.acid { color: var(--acid); }
.glow-text { color: var(--acid); text-shadow: 0 0 30px rgba(180, 255, 57, .45); }
kbd, .key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.2em; height: 2.1em;
  padding: 0 .6em; border-radius: 9px; font: 600 .82em/1 var(--body); color: var(--text);
  background: linear-gradient(180deg, #151c29, #0c111a); border: 1px solid var(--line-hi);
  box-shadow: 0 3px 0 #05070b, inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* -- buttons --------------------------------------------------------------------------- */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid var(--line-hi);
  background: rgba(15, 21, 32, .6); color: var(--text); text-decoration: none; font-weight: 700;
  font-size: 16px; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--acid); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.btn-acid {
  background: var(--acid); color: var(--on-acid); border-color: var(--acid);
  box-shadow: 0 0 0 1px rgba(180, 255, 57, .35), 0 10px 40px -8px rgba(180, 255, 57, .55);
}
.btn-acid:hover { background: var(--acid-hi); box-shadow: 0 0 0 1px rgba(200, 255, 106, .5), 0 14px 50px -6px rgba(180, 255, 57, .7); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* -- the capsule (the app's recording badge) ------------------------------------------------ */
.capsule {
  --w: 276px; position: relative; display: inline-flex; align-items: center; gap: 12px; width: var(--w);
  height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(8, 11, 17, .93);
  border: 1px solid rgba(180, 255, 57, .55);
  box-shadow: 0 0 0 1px rgba(180, 255, 57, .08), 0 0 26px rgba(180, 255, 57, .28), 0 18px 40px -12px rgba(0, 0, 0, .8);
  transition: width .45s var(--ease), border-color .3s;
}
.cap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none;
           box-shadow: 0 0 0 4px rgba(255, 59, 92, .18), 0 0 14px rgba(255, 59, 92, .7); animation: cap-pulse 1.4s ease-in-out infinite; }
.cap-wave { flex: 1; height: 22px; display: flex; align-items: center; gap: 2px; }
.cap-wave i { flex: 1; height: 100%; border-radius: 2px; background: var(--acid); transform: scaleY(.12);
              transition: transform .09s linear; }
.cap-time { font: 600 12px/1 var(--mono); color: var(--dim); min-width: 30px; text-align: right; }
.cap-work { display: none; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.cap-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(180, 255, 57, .25);
            border-top-color: var(--acid); animation: spin .8s linear infinite; }
.capsule[data-mode="work"], .capsule[data-mode="done"] { --w: 190px; justify-content: center; }
.capsule[data-mode="work"] > :not(.cap-work), .capsule[data-mode="done"] > :not(.cap-work) { display: none; }
.capsule[data-mode="work"] .cap-work, .capsule[data-mode="done"] .cap-work { display: inline-flex; }
.capsule[data-mode="done"] .cap-spin { border: 0; width: 8px; height: 8px; background: var(--acid);
                                       box-shadow: 0 0 10px var(--acid); animation: none; }
.capsule[data-mode="idle"] { opacity: 0; transform: translateY(12px) scale(.96); }
.capsule { transition: width .45s var(--ease), opacity .35s, transform .35s var(--ease); }
@keyframes cap-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 59, 92, .08), 0 0 20px rgba(255, 59, 92, .9); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* -- reveal on scroll ------------------------------------------------------------------------ */
/* hidden only when the script that reveals them runs: without JS everything shows */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cap-dot, .cap-spin { animation: none; }
}
