/* Wisp marketing site.
   Palette mirrors the desktop app's deep-slate dark theme
   (see apps/wisp-desktop/src/transcript_view.rs `theme` mod). */

:root {
  --bg: #0b0e13;
  --surface: #13171f;
  --surface-2: #161b24;
  --border: #1f242e;
  --text: #e8eaed;
  --text-2: #8a8f98;
  --text-3: #5c606b;
  --mic: #74b9ff; /* mic accent (blue) */
  --system: #ff9472; /* system accent (warm) */
  --record: #ff5959;

  --maxw: 1080px;
  --radius: 14px;
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--mic);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: #cfd3da;
}

/* Ambient glow behind the hero */
.glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(116, 185, 255, 0.16), transparent 70%),
    radial-gradient(closest-side, rgba(255, 148, 114, 0.1), transparent 70%);
  background-position:
    30% 30%,
    75% 40%;
  background-repeat: no-repeat;
  background-size: 70% 90%, 60% 80%;
  filter: blur(10px);
}

/* ---------- Brand mark ---------- */
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mic);
  box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.16);
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(11, 14, 19, 0.7);
  border-bottom: 1px solid transparent;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.94rem;
}
.nav-links a {
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  margin-left: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--mic);
  color: #08233f;
}
.btn-primary:hover {
  background: #8fc5ff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: #2b313d;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

/* ---------- Hero ---------- */
main {
  position: relative;
  z-index: 1;
}
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 22px auto 0;
  max-width: 16ch;
}
.accent {
  background: linear-gradient(100deg, var(--mic), var(--system));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 60ch;
  margin: 20px auto 0;
  font-size: 1.12rem;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* Screenshot frame */
.shot {
  margin-top: 56px;
  perspective: 1600px;
}
.shot-frame {
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 8px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.shot-frame img,
.shot-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head p {
  color: var(--text-2);
  margin: 12px auto 0;
  max-width: 52ch;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #2b313d;
  background: var(--surface-2);
}
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(116, 185, 255, 0.1);
  border: 1px solid rgba(116, 185, 255, 0.18);
  color: var(--mic);
  margin-bottom: 16px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mic);
  background: rgba(116, 185, 255, 0.1);
  border: 1px solid rgba(116, 185, 255, 0.22);
}
.step h3 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--text-2);
}

/* Flow diagram */
.flow {
  margin: 36px auto 0;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.flow pre {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Privacy ---------- */
.privacy {
  padding-top: 0;
}
.privacy-inner {
  text-align: center;
  background:
    radial-gradient(closest-side at 50% 0%, rgba(116, 185, 255, 0.08), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px 28px;
}
.privacy-inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.privacy-inner p {
  color: var(--text-2);
  max-width: 56ch;
  margin: 14px auto 0;
}
.privacy-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}
.privacy-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.privacy-stats strong {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--mic), var(--system));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.privacy-stats span {
  font-size: 0.84rem;
  color: var(--text-3);
}

/* ---------- Download ---------- */
.download-card {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
}
.download-meta h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}
.reqs {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
  display: grid;
  gap: 6px;
  font-size: 0.96rem;
}
.reqs li::marker {
  color: var(--mic);
}
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}
.roadmap-note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  margin-top: 26px;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand {
  justify-content: center;
}
.footer-tag {
  color: var(--text-2);
  margin: 12px 0 0;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.92rem;
}
.footer-links a {
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.footer-fine {
  color: var(--text-3);
  font-size: 0.82rem;
  margin-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 20px;
  }
  .download-actions {
    width: 100%;
  }
  .download-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
