/* Murmur project page. Hand-written CSS, no framework or build step. */

:root {
  --bg: #0a0d16;
  --bg-soft: #0e1320;
  --surface: #121829;
  --surface-2: #17203a;
  --line: rgba(146, 164, 208, 0.16);
  --line-strong: rgba(146, 164, 208, 0.3);
  --text: #e8ecf6;
  --muted: #98a4bd;
  --dim: #6c7893;
  --brand: #63e3a4;
  --brand-2: #8b7bf0;
  --grad: linear-gradient(100deg, #3cc090 0%, #54a8c8 45%, #846cd8 100%);
  --radius: 14px;
  --maxw: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind the hero. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(52% 60% at 22% 8%, rgba(60, 192, 144, 0.13), transparent 70%),
    radial-gradient(46% 56% at 78% 4%, rgba(132, 108, 216, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

img { max-width: 100%; display: block; }

code, pre, .mono { font-family: var(--mono); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.btn:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.btn.primary {
  background: var(--grad);
  border-color: transparent;
  color: #06110c;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 7px 13px; font-size: 13.5px; }

.nav-cta { flex: none; }

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

.hero { padding: 84px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 227, 164, 0.18);
}

h1 {
  font-size: clamp(40px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 700;
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18.5px;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 34em;
}
.lede strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta b { color: var(--muted); font-weight: 550; }

/* ---------- HUD mock ---------- */

.hud-stage {
  position: relative;
  aspect-ratio: 1 / 0.86;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 50% 26%, rgba(132, 108, 216, 0.14), transparent 68%),
    linear-gradient(168deg, var(--surface-2), var(--bg-soft));
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Faux text field the dictation is being typed into. */
.field {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 13%;
  border: 1px solid var(--line);
  background: rgba(10, 13, 22, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 74px;
}
.field .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.field .typed {
  font-size: 14.5px;
  color: var(--text);
  min-height: 1.5em;
}
.field .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--brand);
  vertical-align: -0.16em;
  margin-left: 2px;
  animation: blink 1.05s steps(2, start) infinite;
}

.hud {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 78%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 13, 22, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 18px 20px 16px;
  text-align: center;
}
.hud img { width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 6px; }
.hud .status {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text);
}
.hud .bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 34px;
  margin: 12px 0 8px;
}
.hud .bars i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--grad);
  height: 20%;
  animation: wave 1s ease-in-out infinite;
}
.hud .hint {
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
}
.hud.is-idle .bars i { animation-play-state: paused; height: 8%; opacity: 0.5; }

kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  background: var(--bg-soft);
  color: var(--text);
  white-space: nowrap;
}

@keyframes wave {
  0%, 100% { height: 18%; }
  50% { height: 100%; }
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* pause the mock animations for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hud .bars i { animation: none; height: 55%; }
  .field .caret { animation: none; }
}

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

section { padding: 68px 0; border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 680;
}
h3 { font-size: 17.5px; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 640; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 40px; font-size: 17px; }

/* pipeline */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}
.step .n {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #06110c;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step .n::before { content: counter(step); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.step .opt {
  position: absolute;
  top: 18px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-2);
  border: 1px solid rgba(139, 123, 240, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
}

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ic {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  margin-bottom: 16px;
  color: var(--brand);
}
.card .ic svg { width: 17px; height: 17px; display: block; }

/* spec table */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}
td:first-child { color: var(--muted); width: 30%; }
td code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13px;
  color: var(--text);
}
.table-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-card td, .table-card th { padding-left: 20px; padding-right: 20px; }
.table-card tr:last-child td { border-bottom: none; }

/* code blocks */

.code {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.code .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.code .bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.code .bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
}
.code .p { color: var(--brand); user-select: none; }
.code .c { color: var(--dim); }
.code .t { color: var(--brand-2); }

.steps-2 { display: grid; gap: 18px; }

/* architecture diagram */

.arch {
  display: grid;
  gap: 12px;
}
.arch-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.arch-row > .k {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.arch-row > .v { font-size: 14.5px; color: var(--muted); }
.arch-row > .v b { color: var(--text); font-weight: 600; }
.arch-arrow {
  text-align: center;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat .v {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .k { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }

/* quote */

.quote {
  border-left: 2px solid;
  border-image: var(--grad) 1;
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 40px;
  max-width: 66ch;
}

/* roadmap */

.roadmap { display: grid; gap: 0; }
.ms {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ms:last-child { border-bottom: none; }
.ms .when {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  padding-top: 3px;
}
.ms .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}
.ms .tag.done { color: var(--brand); border: 1px solid rgba(99, 227, 164, 0.38); }
.ms .tag.now { color: #f0c674; border: 1px solid rgba(240, 198, 116, 0.38); }
.ms h3 { margin-bottom: 6px; }
.ms ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.ms li { margin: 3px 0; }

/* footer (the shared .jx-footer is styled by /assets/chrome.css) */

footer:not(.jx-footer) {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  color: var(--dim);
  font-size: 14px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); text-decoration: none; }

/* reveal on scroll */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 48px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* 3-up card rows stay full width here; halving them orphans the third card. */
@media (max-width: 860px) {
  .cards.three, .stats, .pipeline { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .nav-links { display: none; }
  .pipeline, .cards, .cards.two, .stats { grid-template-columns: 1fr; }
  .arch-row { grid-template-columns: 1fr; gap: 6px; }
  .ms { grid-template-columns: 1fr; gap: 8px; }
  section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  td:first-child { width: 38%; }
}
