:root {
  --green: #24bf9e;
  --green-dim: #1c9a7f;
  --bg: #0e0e12;
  --bg-soft: #16161c;
  --bg-card: #1a1a22;
  --border: #262630;
  --text: #e9e9ef;
  --muted: #9a9aab;
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(36, 191, 158, 0.14), transparent 60%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  background: #2a2a34;
  border: 1px solid #3a3a46;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
}

code { font-family: var(--mono); color: var(--green); }

.accent { color: var(--green); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--green) !important;
  border: 1px solid rgba(36, 191, 158, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
}
.nav-cta:hover { background: rgba(36, 191, 158, 0.1); }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--green);
  margin: 0 0 14px;
  font-weight: 600;
}
.eyebrow-dots {
  display: inline-block;
  font-family: var(--mono);
  letter-spacing: 0;
  opacity: 0.7;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.lede { color: var(--muted); font-size: 1.08rem; max-width: 38ch; }
.lede code { font-size: 0.95em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #06120f; }
.btn-primary:hover { background: #2fd3af; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); }

.hero-note { color: var(--muted); font-size: 0.85rem; }

/* Hero visual — macOS menu bar mock */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.menubar-mock {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  background: rgba(18, 18, 23, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
}
.menubar-mock .mb-app {
  margin-right: auto; /* push system items to the right */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 7px;
  background: rgba(36, 191, 158, 0.1);
}
.menubar-mock .braille {
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(36, 191, 158, 0.55);
}
.menubar-mock .mb-name { color: var(--text); font-weight: 600; font-size: 0.85rem; }
.menubar-mock .mb-sys { color: var(--muted); font-size: 0.8rem; opacity: 0.8; }
.menubar-mock .mb-clock { color: var(--text); font-variant-numeric: tabular-nums; }
.pill-key { color: var(--muted); font-size: 0.82rem; }

/* Interactive demo */
.section-demo { text-align: center; }
.section-demo .section-lede { margin-left: auto; margin-right: auto; max-width: 52ch; }

.demo-stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(36, 191, 158, 0.16), transparent 55%),
    linear-gradient(180deg, #14141b, #0b0b10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  user-select: none;
}

/* macOS menu bar */
.demo-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 12px;
  background: rgba(20, 20, 26, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}
.dm-left, .dm-right { display: flex; align-items: center; gap: 14px; }
.dm-apple {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted);
  -webkit-mask: radial-gradient(circle at 50% 42%, #000 62%, transparent 64%);
}
.dm-app { font-weight: 700; color: var(--text); }
.dm-menu { color: var(--muted); }
.dm-status { color: var(--muted); display: inline-flex; align-items: center; }
.dm-clock { color: var(--text); font-variant-numeric: tabular-nums; }
.dm-whispy {
  background: transparent;
  border: 0;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s;
}
.dm-whispy .braille {
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.05em;
  text-shadow: 0 0 9px rgba(36, 191, 158, 0.55);
}
.dm-whispy.is-active { background: rgba(36, 191, 158, 0.18); }

/* Whispy dropdown menu */
.demo-dropdown {
  position: absolute;
  top: 33px;
  right: 8px;
  width: 248px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(30, 30, 38, 0.92);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  font-size: 0.82rem;
  z-index: 5;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.demo-dropdown.is-open { opacity: 1; transform: none; }
.dd-header { padding: 5px 10px; color: var(--muted); font-size: 0.72rem; }
.dd-section { padding: 6px 10px 3px; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dd-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text);
}
.dd-status { color: var(--text); }
.dd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 8px var(--green); }
.dd-status { display: flex; align-items: center; justify-content: flex-start; }
.dd-val { color: var(--muted); font-size: 0.78rem; }
.dd-hint { color: var(--muted); }
.dd-sep { height: 1px; margin: 5px 8px; background: rgba(255, 255, 255, 0.08); }
.dd-tick { width: 14px; color: var(--green); opacity: 0; margin-right: 2px; }
.dd-check.is-checked .dd-tick { opacity: 1; }
.dd-check { justify-content: flex-start; }
/* Toggle rows keep the title left-aligned (like Model/Language) with the tick
   trailing at the right, so all settings titles line up. */
.dd-toggle .dd-tick { opacity: 0; margin-right: 0; }
.dd-toggle.is-checked .dd-tick { opacity: 1; }

/* Language submenu */
.dd-submenu {
  position: absolute;
  top: -6px;
  right: calc(100% + 4px);
  width: 150px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(30, 30, 38, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(6px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dd-submenu.is-open { opacity: 1; transform: none; }

/* Focused app window */
.demo-window {
  position: absolute;
  left: 7%;
  top: 26%;
  width: 62%;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fbfbfd;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}
.dw-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ececf0;
  border-bottom: 1px solid #d8d8df;
}
.dw-traffic { display: inline-flex; gap: 6px; }
/* Neutral window-control dots — platform-agnostic, not macOS traffic lights. */
.dw-traffic i { width: 11px; height: 11px; border-radius: 50%; background: #cfcfd6; }
.dw-title { font-size: 0.74rem; color: #6a6a72; font-weight: 600; }
.dw-body { min-height: 96px; padding: 16px 18px; }
.dw-text { margin: 0; color: #1c1c22; font-size: 1.02rem; line-height: 1.5; }
.dw-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #1c1c22;
  opacity: 0;
}
.demo-window.is-focused .dw-caret { animation: caret-blink 1s steps(1) infinite; }
.demo-window.is-typing .dw-caret { opacity: 1; animation: none; }
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* HUD: status chip + Fn key */
.demo-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.demo-caption {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.75);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.demo-caption[data-mode="live"] { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.12); }
.demo-caption[data-mode="work"] { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.demo-caption[data-mode="done"] { color: var(--green); border-color: rgba(36, 191, 158, 0.5); background: rgba(36, 191, 158, 0.12); }
.demo-fn kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: #2a2a34;
  border: 1px solid #3a3a46;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 9px;
  color: var(--muted);
  transition: all 0.12s;
}
.demo-fn.is-down kbd {
  background: var(--green);
  border-color: var(--green);
  color: #06120f;
  transform: translateY(1px);
  box-shadow: 0 0 16px rgba(36, 191, 158, 0.6);
}

/* Audio-reactive pill — mirrors the app's on-screen recording indicator */
.demo-pill {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(18, 18, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(36, 191, 158, 0.08);
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-pill.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.demo-pill span {
  width: 5px;
  height: 6px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 7px rgba(36, 191, 158, 0.55);
  will-change: height;
}

/* Fake pointer */
.demo-cursor {
  position: absolute;
  left: 50%;
  top: 78%;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1), top 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease;
}
.demo-cursor.is-click { transform: scale(0.8); }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-lede { color: var(--muted); margin: 0 0 28px; }

/* Feature grid */
.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: rgba(36, 191, 158, 0.45); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #06120f;
  background: var(--green);
}
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Privacy */
.section-privacy { text-align: center; }
.privacy-inner {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(36, 191, 158, 0.08), rgba(36, 191, 158, 0.02));
  border: 1px solid rgba(36, 191, 158, 0.3);
  border-radius: 22px;
  padding: 48px 36px;
}
.privacy-inner p { color: var(--muted); font-size: 1.08rem; margin: 12px 0 0; }
.privacy-inner strong { color: var(--text); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}
.pillar {
  background: rgba(10, 10, 14, 0.5);
  border: 1px solid rgba(36, 191, 158, 0.18);
  border-radius: 14px;
  padding: 22px 20px;
}
.pillar-ico {
  font-family: var(--mono);
  color: var(--green);
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(36, 191, 158, 0.5);
}
.pillar h3 { margin: 10px 0 6px; font-size: 1.05rem; color: var(--text); }
.pillar p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Models table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.models { width: 100%; border-collapse: collapse; min-width: 420px; }
.models th, .models td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.models thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.models tbody tr:last-child td { border-bottom: none; }
.models .is-default { background: rgba(36, 191, 158, 0.06); }
.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #06120f;
  background: var(--green);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Install */
.section-install { text-align: center; }
.section-install .section-lede { text-align: center; }
.section-install a { color: var(--green); }
.codeblock {
  margin: 0 auto 28px;
  text-align: left;
  background: #0a0a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
}
.codeblock code { color: var(--text); font-size: 0.95rem; line-height: 1.9; }

.install-block {
  position: relative;
  margin: 0 auto 16px;
}
.install-block .codeblock { margin-bottom: 0; }
.btn-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: #06060a;
  cursor: pointer;
}
.btn-copy:hover { border-color: var(--green); }
.btn-copy.copied { color: #06120f; background: var(--green); border-color: var(--green); }
.install-alt { color: var(--muted); font-size: 0.9rem; margin: 22px 0 10px; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}
.site-footer .brand { justify-content: center; margin-bottom: 8px; font-size: 1rem; }
.site-footer p { margin: 4px 0 8px; }
.site-footer a { color: var(--green); }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-visual { order: -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}

@media (max-width: 620px) {
  .demo-stage { aspect-ratio: 4 / 5; }
  .demo-window { width: 80%; top: 22%; }
  .demo-dropdown { width: 200px; font-size: 0.76rem; }
  .dd-submenu { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  .demo-cursor { transition: none; }
  .demo-window.is-focused .dw-caret { animation: none; }
}

/* Model/licence attribution in the footer: present but deliberately quiet. */
.footer-attribution {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.62;
}
