@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

:root {
  color-scheme: only dark;
  --bg: #121416;
  --surface: #17191c;
  --surface-raised: #1b1e22;
  --panel: #15181b;
  --control: #202327;
  --control-hover: #2b3035;
  --border: #303438;
  --border-strong: #3b4148;
  --text: #e9ecee;
  --muted: #a1a9b2;
  --accent: #9ae4cc;
  --accent-soft: #24322f;
  --accent-border: #557569;
  font: 14px/1.55 Inter, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); }
.cursor-grid-bg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .footer { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: #4d575e #171b1e; }

.container { width: min(1080px, calc(100% - 36px)); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Segmented groups matching Wublet's app chrome */
.segmented-group {
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--control);
}
.segmented-group > button,
.segmented-group > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.segmented-group svg,
.play-btn svg,
.bypass-btn svg,
.quiet-link svg,
.footer-links svg {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}
.segmented-group > :first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.segmented-group > :last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.segmented-group > :not(:first-child) { border-left: 1px solid var(--border); }
.segmented-group > button:hover,
.segmented-group > a:hover { background: var(--control-hover); text-decoration: none; }
.segmented-group > button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.segmented-group > .primary,
.segmented-group > .primary-seg { background: var(--accent); color: #14201d; font-weight: 500; }
.segmented-group > .primary:hover,
.segmented-group > .primary-seg:hover { background: #c2f3e5; }
.segmented-group > :focus-visible { outline-offset: -2px; position: relative; z-index: 1; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 220ms ease, border-color 220ms ease;
}
.topbar.scrolled {
  border-bottom-color: #2b3033;
  background: rgba(23, 25, 28, 0.88);
  backdrop-filter: blur(12px);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 28px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 18px; margin-left: auto; margin-right: 4px; }
.nav a { color: var(--muted); font-size: 13px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 54px 0 36px; display: grid; gap: 34px; }
.hero-copy { max-width: 720px; display: grid; gap: 16px; justify-items: start; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); }
.lead { color: var(--muted); font-size: 16px; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.hero-actions .segmented-group > a { min-height: 38px; padding: 0 16px; }
.quiet-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1; padding: 4px 0; }
.quiet-link:hover { color: var(--text); }
.meta-note { color: var(--muted); font-size: 12px; }

.hero-window {
  position: relative;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #101113;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(154, 228, 204, 0.06);
  overflow: hidden;
}
.hero-window > img,
.hero-window > video {
  display: block;
  width: 100%;
  border-radius: inherit;
}
.hero-window > img { height: auto; }
.hero-demo {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero-window:hover .hero-demo { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-demo { transition: opacity 280ms cubic-bezier(0.23, 1, 0.32, 1); }
}

/* Sections */
.section { padding: 48px 0; border-top: 1px solid #24282c; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 4px; }

/* Interactive EQ Preview */
.playground-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.play-btn,
.bypass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.play-btn:hover,
.bypass-btn:hover { background: var(--control-hover); }
.play-btn[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
.bypass-btn[aria-pressed="true"] { border-color: #855258; background: #2c2023; color: #ff9ba3; }

.eq-shell { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.eq-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid #30363b;
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #69747d; }
.status i.live { background: var(--accent); }
.readout { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.eq-stage {
  display: flex;
  min-height: 250px;
  background: radial-gradient(ellipse at 46% 41%, #1c2024, #111315 82%);
}
#eq-svg { flex: 1; min-width: 0; display: block; touch-action: none; user-select: none; }
.grid-line { stroke: #252b30; stroke-width: 1; }
.grid-zero { stroke: #394149; stroke-width: 1; }
.grid-label { fill: #7c858e; font-size: 10px; font-variant-numeric: tabular-nums; }
.eq-curve-sum { fill: none; stroke: #9ae4cc; stroke-width: 2; stroke-linejoin: round; }
.eq-curve-sum.bypassed { stroke: #5a636c; }
.spectrum-fill { fill: rgba(136, 164, 188, 0.16); }
.spectrum-line { fill: none; stroke: rgba(154, 184, 206, 0.42); stroke-width: 1.2; stroke-linejoin: round; }
.eq-band-node { cursor: grab; outline: none; }
.eq-band-node:active { cursor: grabbing; }
.eq-band-node circle.dot { fill: #192025; stroke-width: 1.8; }
.eq-band-node.selected circle.dot,
.eq-band-node:focus-visible circle.dot { fill: currentColor; stroke: #f0fffa; }
.eq-band-node text { fill: currentColor; font-size: 9px; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.eq-band-node.selected text { fill: #111819; font-weight: 500; }

.meters { display: flex; flex-direction: column; width: 40px; padding: 10px 9px 10px 4px; gap: 5px; }
.meters > span { text-align: center; color: var(--muted); font-size: 10px; }
.meter-tracks { display: flex; flex: 1; gap: 3px; }
.meter-track { flex: 1; position: relative; background: #252b2d; overflow: hidden; }
.meter-level { position: absolute; inset: 0; background: linear-gradient(#f5c499, #99e6ce 29%, #448b85); }
.meter-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 3px, #121416 3px 4px); }

.eq-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid #2b3033;
  background: var(--surface);
}
.eq-knobs { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.eq-knob-sep { width: 1px; height: 42px; background: var(--border); }
.knob-control {
  display: grid;
  min-width: 62px;
  justify-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
}
.knob {
  width: 44px;
  height: 44px;
  cursor: ns-resize;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
}
.knob svg { display: block; width: 100%; height: 100%; }
.knob-track, .knob-fill { fill: none; stroke: #41484e; stroke-width: 2.1; stroke-linecap: round; }
.knob-fill, .knob-tick { stroke: var(--accent); }
.knob-tick { stroke-width: 2.1; stroke-linecap: round; }
.knob circle { fill: #252a2e; stroke: #4b5359; }
.knob-value {
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.eq-bottom-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.eq-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.eq-action-btn:hover:not(:disabled) { background: var(--control-hover); }
.eq-action-btn:disabled { opacity: 0.45; cursor: default; }
.eq-action-btn svg { display: block; flex: none; width: 14px; height: 14px; }

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--border);
  overflow: hidden;
}
.bento-wide-7 { grid-column: span 7; }
.bento-wide-5 { grid-column: span 5; }
.bento-wide-4 { grid-column: span 4; }
.bento-wide-12 { grid-column: span 12; }

.card {
  padding: 22px 24px;
  background: var(--surface);
  display: grid;
  gap: 10px;
  align-content: start;
}
.card-has-list {
  padding: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0;
}
.card-main {
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.card-head { display: flex; align-items: center; gap: 11px; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--card-accent, var(--accent));
}
.card-icon svg { display: block; width: 22px; height: 22px; }
.card h3 { font-size: 15px; font-weight: 500; color: var(--text); }
.card p { color: var(--muted); font-size: 13px; }
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-width: 175px;
  border-left: 1px solid var(--border);
  background: #15181b;
}
.card-list li {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.card-list li:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .bento-wide-7, .bento-wide-5, .bento-wide-4 { grid-column: span 6; }
  .bento-wide-12 { grid-column: span 12; }
  .card-has-list { grid-template-columns: 1fr; }
  .card-list { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide-7, .bento-wide-5, .bento-wide-4, .bento-wide-12 { grid-column: span 1; }
}

/* Flow Setup Steps */
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}
.flow-step {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent-border);
}
.step-num {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.flow-body h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.flow-body p { color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); height: 22px; }
}

/* Accessible Accordion FAQ */
.accordion { display: grid; gap: 10px; }
.accordion h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
.accordion details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 16px;
}
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-weight: 500;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  rotate: -45deg;
  transform-origin: 60% 60%;
}
.accordion details[open] > summary::before { rotate: 45deg; }
.accordion details p { margin: 0 0 14px; color: var(--muted); font-size: 13px; padding-left: 17px; }
.accordion code { padding: 2px 6px; border-radius: 4px; background: var(--control); color: var(--text); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: rotate 0.2s ease; }
  .accordion details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
    transition: block-size, content-visibility, display;
    transition-duration: 0.24s;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
    transition-behavior: allow-discrete;
  }
  .accordion details:not([open])::details-content { block-size: 0; }
}

/* Progressive scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from { opacity: 0; translate: 0 14px; }
      to { opacity: 1; translate: 0 0; }
    }
    .reveal {
      animation: reveal-up auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}

/* Footer */
.footer { border-top: 1px solid #24282c; background: var(--surface); padding: 28px 0; margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand img { display: block; width: auto; }
.footer-brand p { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; line-height: 1; color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 700px) {
  .nav { display: none; }
  .hero { padding-top: 32px; }
}
