/* Audio Splitter landing page — inspired by ZumiScribe landing.css */
:root {
  --bg: #080c14;
  --bg-2: #0b111e;
  --card: #131c2e;
  --card-2: #182338;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #a9b6c9;
  --blue: #6c63ff;
  --blue-2: #38bdf8;
  --green: #22c55e;
  --amber: #f0b429;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 14px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.4rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-2); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #04101f;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
.btn-big { padding: 1.05rem 2rem; font-size: 1.08rem; }

/* Header */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.95rem var(--gutter);
}
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 12, 20, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0.95;
}
.site-head .read {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transform: scaleX(0);
  transform-origin: left;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.4);
}
.brand b { color: var(--blue-2); font-weight: 800; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 1.3rem;
  margin-inline-start: auto;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.88;
}
.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Intro */
.hero-intro {
  position: relative;
  padding: clamp(6.2rem, 13dvh, 7.8rem) var(--gutter) clamp(2rem, 4dvh, 3rem);
  background: radial-gradient(120% 140% at 15% 0%, #1a1842 0%, var(--bg-2) 62%);
}
.eyebrow {
  font: 700 0.78rem/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 0.8rem;
}
.hero-intro h1 {
  font-size: clamp(2.1rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  max-width: 20ch;
}
.hero-sub {
  margin-top: 1.1rem;
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  color: #dbe4f0;
}
.hero-tagline {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.hero-benefits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.5rem 1.4rem;
  margin-top: 1.4rem;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-benefits li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue-2);
  margin-right: 0.55rem;
  vertical-align: 0.1em;
}

/* Hero Use-Case Carousel */
.hero { position: relative; background: var(--bg-2); }
.scroller {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.scroller::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: 0 0 100%;
  min-height: clamp(32rem, 76dvh, 43rem);
  display: grid;
  align-items: end;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: clip;
  isolation: isolate;
  background: linear-gradient(120deg, var(--a, #12182e), var(--b, #2b235a));
}
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 70% 35%);
  z-index: -2;
  opacity: 0.55;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.96) 0%, rgba(8, 12, 20, 0.84) 44%, rgba(8, 12, 20, 0.25) 85%),
    linear-gradient(0deg, rgba(8, 12, 20, 0.92) 0%, transparent 42%);
}
.slide-copy {
  padding: clamp(3rem, 8dvh, 5rem) var(--gutter) clamp(5.5rem, 12dvh, 7rem);
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.tag {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  align-items: center;
}
.tag span {
  font-weight: 600;
  font-size: 0.74rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tag span.needs {
  background: rgba(240, 180, 41, 0.2);
  border-color: rgba(240, 180, 41, 0.55);
  color: #fde68a;
}
.slide h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  font-weight: 800;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}
.lead {
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  color: #e2e8f0;
  max-width: 38rem;
}
.slide ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  max-width: 38rem;
  color: #dbe4f0;
  font-size: 0.98rem;
}
.slide li { position: relative; padding-left: 1.5rem; }
.slide li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--blue-2);
  border-bottom: 2.5px solid var(--blue-2);
  transform: rotate(-45deg) translateY(-50%);
}
.slide .btn { margin-top: 0.4rem; }

.controls {
  position: absolute;
  z-index: 10;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dots { display: flex; gap: 0.5rem; }
.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.dot:hover { background: rgba(255, 255, 255, 0.4); }
.dot[aria-current="true"] { width: 2.2rem; background: #fff; border-color: #fff; }
.arrows { display: flex; gap: 0.5rem; }
.icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.icon-btn:hover { background: rgba(8, 12, 20, 0.88); }
#pause .i-play { display: none; }
#pause[aria-pressed="true"] .i-play { display: block; }
#pause[aria-pressed="true"] .i-pause { display: none; }

/* Bands & Sections */
.band, .final {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(3.5rem, 8.5vw, 6rem) var(--gutter);
}
.band.alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.band::before, .final::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(60rem, 90vw);
  aspect-ratio: 1;
  top: -12rem;
  right: -14rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(108, 99, 255, 0.16)), transparent);
  pointer-events: none;
}
.band:nth-of-type(even)::before { right: auto; left: -16rem; }
.wrap { max-width: 70rem; margin: 0 auto; }
.band h2, .final h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.band h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transform-origin: left;
}
.final h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 3px;
  margin: 0.7rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}
.band-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44rem;
}

/* Two-column layouts & tick lists */
.two {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.ticks { list-style: none; display: grid; gap: 1rem; }
.ticks li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--muted);
}
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 3px solid var(--blue-2);
  border-bottom: 3px solid var(--blue-2);
  transform: rotate(-45deg);
}

/* Section themes */
.offline {
  --glow: rgba(56, 189, 248, 0.18);
  background: linear-gradient(170deg, #0a1624 0%, #0a1220 45%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}
.diff {
  --glow: rgba(108, 99, 255, 0.16);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.2px);
  background-size: 24px 24px;
}
#how {
  --glow: rgba(139, 92, 246, 0.2);
  background: linear-gradient(180deg, #0d0f24 0%, #0a0e1c 55%, var(--bg-2) 100%);
}
#local-setup {
  --glow: rgba(240, 180, 41, 0.15);
  background: linear-gradient(200deg, #131b2e 0%, var(--bg-2) 60%);
}
#use {
  --glow: rgba(56, 189, 248, 0.17);
  background: linear-gradient(180deg, var(--bg-2), #0c1330 50%, var(--bg-2));
  border-block: 1px solid var(--line);
}
#private {
  --glow: rgba(34, 197, 94, 0.17);
  background: linear-gradient(160deg, #09160f 0%, #0a1118 55%, var(--bg) 100%);
}

/* Deep-dive Screenshot Rows (.diff-row) */
.diff .band-lead { margin-bottom: 2.4rem; }
.diff-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.4rem;
  padding: clamp(1.6rem, 3.2vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
}
.diff-copy h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.diff-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44rem;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.5rem;
}
.chips li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.diff-art.shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: clip;
  margin: 0;
  max-width: 58rem;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 811;
}
.shot figcaption {
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.55);
}

/* Steps & Cards */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.4rem;
  margin: 2.2rem 0;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.steps h3 { font-size: 1.15rem; margin-top: 0.35rem; }
.steps p { color: var(--muted); font-size: 0.96rem; }
.step-shot {
  margin-top: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  aspect-ratio: 1024 / 811;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #04101f;
  font-weight: 800;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.cards h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.cards p { color: var(--muted); font-size: 0.95rem; }

/* Code / Terminal Setup Block */
.code-figure {
  margin: 2rem 0 0;
  background: #070a12;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.code-figure figcaption {
  padding: 0.7rem 1.1rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.code-figure pre {
  margin: 0;
  padding: 1.2rem 1.35rem;
  overflow-x: auto;
  font: 0.88rem/1.65 var(--mono);
  color: #e2e8f0;
}
.code-figure code .c-comment { color: #64748b; }
.code-figure code .c-cmd { color: #38bdf8; }
p code, li code {
  font: 0.88em var(--mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  color: #e2e8f0;
}

/* Architecture diagram flow */
.arch-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.arch-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}
.arch-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue-2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 0.65rem;
}
.arch-box h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.arch-box p { color: var(--muted); font-size: 0.94rem; }

/* Final CTA & Footer */
.fine {
  max-width: 70rem;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.final {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  background: radial-gradient(60rem 24rem at 50% 0%, rgba(108, 99, 255, 0.24), transparent 70%), var(--bg);
  border-top: 1px solid var(--line);
}
.final .band-lead { margin: 0 auto; }
.final .cta-row { justify-content: center; }
.final .fine { text-align: center; }
.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  padding: 1.5rem var(--gutter) 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.site-foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Scroll-driven animations where supported */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes read-fill { to { transform: scaleX(1); } }
    .site-head .read {
      animation: read-fill linear both;
      animation-timeline: scroll(root);
    }
  }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-head { justify-content: space-between; }
  .slide { min-height: 38rem; }
  .slide::before {
    background: linear-gradient(0deg, rgba(8, 12, 20, 0.96) 0%, rgba(8, 12, 20, 0.84) 58%, rgba(8, 12, 20, 0.3) 100%);
  }
  .slide-copy { padding-top: 4.5rem; padding-bottom: 5.5rem; }
  .two { grid-template-columns: 1fr; }
}

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