:root {
  color-scheme: light dark;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-strong: #eef3f1;
  --surface-soft: #f3f7f5;
  --text: #171a18;
  --muted: #56605b;
  --line: #ccd8d2;
  --accent: #247a50;
  --accent-strong: #155c39;
  --accent-warm: #d5543f;
  --shadow: rgba(19, 35, 27, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101211;
    --surface: #181c1a;
    --surface-strong: #202822;
    --surface-soft: #151917;
    --text: #f4f7f5;
    --muted: #a9b7b0;
    --line: #334139;
    --accent: #58c987;
    --accent-strong: #91e0af;
    --accent-warm: #ff7a62;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 8px clamp(18px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 96px;
}

.brand img {
  display: block;
  width: 96px;
  max-height: 42px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent-strong);
}

.language-switch {
  display: flex;
  gap: 6px;
}

.language-switch button {
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--surface);
  background: var(--text);
  border-color: var(--text);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 64px) 44px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  font-weight: 760;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 700;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.secondary {
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--accent-strong);
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-hunt-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 54px;
  margin-top: 24px;
}

.product-hunt-badge span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-hunt-badge a {
  display: inline-flex;
}

.product-hunt-badge img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.hero-side {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px var(--shadow);
}

.visual-header {
  display: grid;
  gap: 8px;
}

.hero-side-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-side h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
}

.audio-compare {
  display: grid;
  gap: 12px;
}

.compare-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.solution-panel {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.compare-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compare-title strong {
  font-size: 15px;
}

.compare-title span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.solution-panel .compare-title span {
  color: var(--accent-strong);
}

.track-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.track-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.track-line,
.timeline {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
}

.track-line::before,
.timeline i {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}

.track-line::before {
  content: "";
}

.music-line::before {
  left: 0;
  right: 0;
  background: var(--accent);
}

.video-line::before {
  left: 34%;
  right: 8%;
  background: var(--accent-warm);
}

.problem-panel .track-row + .track-row {
  margin-top: -4px;
}

.music-play {
  left: 0;
  width: 30%;
  background: var(--accent);
}

.music-fade-out {
  left: 30%;
  width: 13%;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.music-pause {
  left: 43%;
  width: 34%;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--muted) 32%, transparent) 0 2px,
    transparent 2px 8px
  );
}

.music-fade-in {
  left: 77%;
  width: 23%;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.video-empty:first-child {
  left: 0;
  width: 28%;
}

.video-active {
  left: 28%;
  width: 50%;
  background: var(--accent-warm);
}

.video-empty:last-child {
  left: 78%;
  width: 22%;
}

.event-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-left: 140px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compare-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.bad-note {
  color: var(--accent-warm);
  font-weight: 700;
}

.good-note {
  color: var(--accent-strong);
  font-weight: 700;
}

.focus-outcome {
  margin: 0;
  padding: 14px;
  border-left: 3px solid var(--accent-warm);
  color: var(--text);
  background: color-mix(in srgb, var(--accent-warm) 12%, transparent);
  font-weight: 700;
  line-height: 1.45;
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 18px 48px var(--shadow);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.permission-list div,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.feature-grid h3,
.permission-list h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.feature-grid p,
.permission-list p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.permission-list {
  display: grid;
  gap: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: 520px;
  }

  .track-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .event-labels {
    margin-left: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
