/* whispr-open landing — tokens mirror the app's dark theme (src/styles/globals.css .dark) */

:root {
  --bg: 220 30% 7%;
  --card: 220 26% 10%;
  --border: 220 20% 18%;
  --fg: 214 20% 92%;
  --muted: 216 12% 60%;
  --accent: 28 92% 54%;
  --accent-ink: 220 40% 8%;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--bg));
  color: hsl(var(--fg));
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1000px; margin-inline: auto; padding-inline: 24px; }

a { color: inherit; text-decoration-color: hsl(var(--border)); text-underline-offset: 3px; }
a:hover { color: hsl(var(--accent)); text-decoration-color: hsl(var(--accent)); }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: hsl(var(--bg) / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner { display: flex; align-items: center; gap: 16px; height: 56px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-logo { width: 26px; height: 26px; border-radius: 50%; display: block; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }

.header-nav { display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none;
  border: 0;
  color: hsl(var(--muted));
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 3px;
}
.lang-btn:hover { color: hsl(var(--fg)); }
.lang-btn[aria-pressed="true"] { color: hsl(var(--accent)); }
.lang-sep { color: hsl(var(--border)); font-size: 12px; }

.gh-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: hsl(var(--muted));
  text-decoration: none;
}
.gh-link:hover { color: hsl(var(--accent)); }

/* ---------- transmission line — the one animation on the page ---------- */

.transmission { position: relative; height: 1px; background: hsl(var(--border)); overflow: hidden; }
.transmission::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 140px;
  background: linear-gradient(90deg, transparent, hsl(var(--accent)), transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep {
  from { transform: translateX(-140px); }
  to   { transform: translateX(100vw); }
}

/* ---------- hero ---------- */

.hero { padding: 80px 0 24px; }
.hero h1 {
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 22ch;
}
.hero-sub { margin-top: 18px; color: hsl(var(--muted)); font-size: 1.05rem; max-width: 58ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-primary { background: hsl(var(--accent)); color: hsl(var(--accent-ink)); font-weight: 600; }
.btn-primary:hover { background: hsl(28 92% 60%); color: hsl(var(--accent-ink)); }
.btn-primary .mono { font-size: 0.9rem; font-weight: 700; }
.btn-ghost { border: 1px solid hsl(var(--border)); color: hsl(var(--fg)); }
.btn-ghost:hover { color: hsl(var(--accent)); border-color: hsl(var(--muted)); }

/* the real app, in a hairline window frame — the one shadow on the page */
.window {
  margin-top: 56px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  overflow: hidden;
  background: hsl(var(--card));
  box-shadow: 0 12px 40px hsl(220 40% 3% / 0.5);
}
.window-bar { padding: 8px 14px; border-bottom: 1px solid hsl(var(--border)); }
.window-bar .mono { font-size: 11px; letter-spacing: 0.08em; color: hsl(var(--muted)); }
.window img { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */

.section { padding: 64px 0 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--muted));
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.readout { font-size: 12px; color: hsl(var(--fg)); }

/* downloads */

.dl-status { margin-top: 20px; color: hsl(var(--muted)); font-size: 0.95rem; }
.dl-status a { font-family: var(--mono); font-size: 0.9em; }

.dl-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dl-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 16px 18px;
}
.dl-os { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.dl-none { margin-top: 12px; color: hsl(var(--muted)); font-size: 0.85rem; }

.dl-card .dl-row:first-of-type { margin-top: 12px; }
.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid hsl(var(--border));
  text-decoration: none;
}
.dl-name {
  font-family: var(--mono);
  font-size: 12.5px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-meta {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: hsl(var(--muted));
  white-space: nowrap;
}
.dl-row:hover .dl-name { color: hsl(var(--accent)); }

/* how it works — honest numbering: it is a sequence */

.steps {
  margin-top: 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-n { font-size: 11px; color: hsl(var(--muted)); letter-spacing: 0.18em; }
.steps h3 { margin-top: 10px; font-size: 1.02rem; font-weight: 600; }
.steps p { margin-top: 6px; color: hsl(var(--muted)); font-size: 0.92rem; }

/* features */

.features {
  margin-top: 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.features li {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 14px 16px;
}
.feat-e {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--muted));
}
.features p { margin-top: 8px; font-size: 0.92rem; }

/* pricing */

.price-lede { margin-top: 18px; font-size: 1.05rem; max-width: 52ch; }
.plans { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 18px;
}
.plan h3 { font-size: 1rem; font-weight: 600; }
.plan-price { margin-top: 8px; font-size: 12px; color: hsl(var(--muted)); }
.price-cta { margin-top: 26px; }
.price-note { margin-top: 14px; color: hsl(var(--muted)); font-size: 0.9rem; }

/* privacy strip */

.privacy {
  margin-top: 64px;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 30px 0;
}
.privacy p { margin-top: 10px; color: hsl(var(--muted)); max-width: 62ch; }

/* footer */

.site-footer { padding: 30px 0 40px; }
.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: hsl(var(--muted));
  font-size: 0.88rem;
}
.footer-line .mono { font-size: 11px; letter-spacing: 0.06em; }
.dot { color: hsl(var(--border)); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .window { margin-top: 40px; }
  .dl-grid, .steps, .features, .plans { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 20px; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .header-nav { gap: 12px; }
  .brand-name { font-size: 13px; }
}

/* ---------- reduced motion: static transmission line ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .transmission::after { animation: none; display: none; }
}
