/* Murmel website – dark glass look, matched to the app (accent #a78bfa on #0c0b11). */
:root {
  --bg: #0c0b11;
  --ink: #f4f3fb;
  --ink-2: #b9b6c8;
  --ink-3: #807d92;
  --accent: #a78bfa;
  --accent-ink: #120f1c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --edge: rgba(255, 255, 255, 0.10);
  --edge-hi: rgba(255, 255, 255, 0.22);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }
kbd {
  font: 600 0.82em var(--font);
  padding: 0.12em 0.5em;
  border-radius: 6px;
  background: var(--glass-hi);
  border: 1px solid var(--edge-hi);
  border-bottom-width: 2px;
}

/* Soft light at the top, fading out – never behind the header bar. */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 18%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(40% 40% at 15% 35%, rgba(134, 201, 164, 0.07), transparent 70%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 55%, transparent 100%);
  z-index: -1;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px max(24px, calc((100vw - 1140px) / 2));
  background: rgba(12, 11, 17, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 650 19px var(--font-display); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 600 16px var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px -10px rgba(167, 139, 250, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { box-shadow: 0 12px 34px -10px rgba(167, 139, 250, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { background: var(--glass); border-color: var(--edge-hi); color: var(--ink); }
.btn-ghost:hover { background: var(--glass-hi); }
.btn-small { padding: 8px 16px; font-size: 14px; background: var(--glass-hi); border-color: var(--edge-hi); }

/* Sections */
main > section { max-width: 1140px; margin: 0 auto; padding: 96px 24px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; text-align: center; margin-bottom: 48px; font-weight: 650; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 72px !important; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1.0; font-weight: 700; }
.glow-text {
  background: linear-gradient(100deg, #fff 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 19px; color: var(--ink-2); max-width: 30em; margin: 24px 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { color: var(--ink-3); font-size: 14px; margin-top: 18px; }

/* Demo */
.demo { position: relative; padding: 64px 0 76px; }
.win {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--edge-hi);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.win-bar { display: flex; align-items: center; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--edge); font-size: 13px; color: var(--ink-2); }
.win-ctl { margin-left: auto; display: flex; gap: 16px; }
.win-ctl i { width: 10px; height: 10px; border: 1.5px solid var(--ink-3); border-radius: 2px; }
.win-ctl i:first-child { border-width: 0 0 1.5px; border-radius: 0; height: 6px; }
.win-body { padding: 6px 18px 22px; }
.mail-row { padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 14px; color: var(--ink-2); }
.mail-row span { display: inline-block; width: 68px; color: var(--ink-3); }
.mail-text {
  min-height: 150px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.55;
  border: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.mail-text.focus { border-color: rgba(167, 139, 250, 0.55); background: rgba(167, 139, 250, 0.05); }
.caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -0.2em; background: var(--ink); opacity: 0; }
.mail-text.focus .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 1; } }

.pointer {
  position: absolute;
  width: 22px; height: 22px;
  left: 82%; top: 88%;
  fill: #fff; stroke: #000; stroke-width: 1.2;
  transition: left 1s var(--ease), top 1s var(--ease), transform .15s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5));
}
.pointer.click { transform: scale(0.82); }

.keys {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 6px; color: var(--ink-3);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.keys.show { opacity: 1; transform: none; }
.keys kbd { font-size: 14px; padding: 6px 12px; transition: transform .15s, background .15s, border-color .15s; }
.keys.down kbd { transform: translateY(2px); background: rgba(167, 139, 250, 0.22); border-color: var(--accent); border-bottom-width: 1px; }

/* Recording pill – same idea as the app's overlay */
.pill {
  position: absolute; left: 50%; bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(20, 18, 28, 0.86);
  border: 1px solid var(--edge-hi);
  box-shadow: 0 10px 30px -8px rgba(167, 139, 250, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  font-size: 13px; color: var(--ink-2);
  opacity: 0; transform: translate(-50%, 12px) scale(0.92);
  transition: opacity .35s, transform .45s var(--ease);
}
.pill.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--accent); transition: height .12s; }
.pill.listening .bars i { animation: bar 0.9s var(--ease) infinite alternate; }
.pill.listening .bars i:nth-child(2) { animation-delay: .15s; }
.pill.listening .bars i:nth-child(3) { animation-delay: .3s; }
.pill.listening .bars i:nth-child(4) { animation-delay: .05s; }
.pill.listening .bars i:nth-child(5) { animation-delay: .25s; }
.pill.listening .bars i:nth-child(6) { animation-delay: .4s; }
.pill.listening .bars i:nth-child(7) { animation-delay: .1s; }
@keyframes bar { from { height: 4px; } to { height: 17px; } }
.pill.thinking .bars i { animation: dot 1s ease-in-out infinite; height: 4px; }
.pill.thinking .bars i:nth-child(odd) { animation-delay: .2s; }
@keyframes dot { 50% { opacity: .3; } }

.said {
  position: absolute; right: 0; top: 0;
  max-width: 82%;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  padding: 8px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--glass-hi);
  border: 1px solid var(--edge);
  color: var(--ink-3);
  font-size: 14px; font-style: italic;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.said.show { opacity: 1; transform: none; }

/* How it works */
.how { padding-top: 40px !important; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 26px 24px 24px 72px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--edge);
  color: var(--ink-2);
  transition: border-color .4s, background .4s, color .4s;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: var(--ink-2);
  border: 1px solid var(--edge-hi);
  transition: background .4s, color .4s, border-color .4s;
}
.steps li b { color: var(--ink); }
.steps li.on { border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.07); color: var(--ink); }
.steps li.on::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-3px); border-color: var(--edge-hi); }
.card h3 { font-size: 19px; margin: 18px 0 8px; font-weight: 650; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { max-width: 780px !important; }
details {
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--edge);
  margin-bottom: 10px;
  transition: background .25s;
}
details[open] { background: var(--glass-hi); }
summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* Closing */
.closing { text-align: center; }
.closing img { margin: 0 auto 28px; filter: drop-shadow(0 18px 40px rgba(167, 139, 250, 0.25)); }
.closing h2 { margin-bottom: 14px; }
.closing p { color: var(--ink-2); margin: 0 auto 30px; max-width: 34em; }

/* Footer */
.foot {
  max-width: 1140px; margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--edge);
  color: var(--ink-3); font-size: 14px;
}
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 760px !important; }
.legal h1 { font-size: 40px; margin-bottom: 28px; }
.legal h2 { text-align: left; font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.todo { padding: 14px 18px; border-radius: 12px; border: 1px dashed #fbbf24; color: #fbbf24; }

/* Responsive */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .steps, .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  main > section { padding: 64px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
