:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --bg: light-dark(#f7f4ee, #14161c);
  --surface: light-dark(#ffffff, #1d2028);
  --surface-2: light-dark(#efeae0, #252935);
  --text: light-dark(#1d1b18, #ecebe7);
  --muted: light-dark(#6b665d, #9a9ca5);
  --line: light-dark(#e3ddd1, #2e3240);
  --accent: oklch(64% 0.18 35);
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --green: oklch(68% 0.13 160);
  --blue: oklch(64% 0.13 250);
  --ink: oklch(24% 0.03 265);
  --radius: 22px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(0 0 0 / .18);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--text); color: var(--bg);
  transition: transform .2s, opacity .2s;

  &:hover { transform: translateY(-2px); }
  &:disabled { opacity: .6; cursor: progress; transform: none; }
  &.accent { background: var(--accent); color: white; }
  &.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 20px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none;

  svg { width: 30px; height: 30px; }
}

.icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft);

  svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

/* Forms */
.field {
  display: grid; gap: 6px;
  font-size: 14px; font-weight: 600;

  input, select, textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
    font: 16px/1.4 var(--sans); outline: none; transition: border-color .2s;
  }
  textarea { field-sizing: content; min-height: 4lh; resize: vertical; }
  :focus { border-color: var(--accent); }
  :user-invalid { border-color: oklch(58% 0.2 25); }
}

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;

  nav { display: flex; align-items: center; gap: 12px; height: 68px; }
  .links { display: flex; gap: 28px; margin-inline: auto; }
  .links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
  .links a:hover { color: var(--text); }
  .button { padding: 11px 18px; font-size: 15px; }
}

@supports (animation-timeline: scroll()) {
  header { animation: header-line linear both; animation-timeline: scroll(); animation-range: 0 80px; }
  @keyframes header-line { to { border-bottom-color: var(--line); } }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 64px 88px;

  h1 { font-size: clamp(42px, 5.8vw, 74px); margin-block: 20px 24px; }
  h1 em { font-style: italic; color: var(--accent); }
  .lead { font-size: 20px; color: var(--muted); max-width: 38ch; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
  .note { margin-top: 20px; font-size: 14px; color: var(--muted); }
}

.stage {
  position: relative; aspect-ratio: 1 / .92;

  &::before {
    content: ""; position: absolute; inset: 8% 4% 4% 10%; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in oklch, var(--accent) 30%, transparent), transparent 70%);
    filter: blur(30px);
  }
}

.card {
  position: absolute;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 15px;

  small { display: block; color: var(--muted); font-size: 13px; }
  b { display: block; font-weight: 600; }
}

.player {
  top: 0; left: 0; width: 88%; padding: 10px;

  .video {
    position: relative; display: grid; place-items: center;
    aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
    background:
      radial-gradient(circle at 78% 28%, color-mix(in oklch, var(--accent) 75%, transparent), transparent 55%),
      radial-gradient(circle at 18% 85%, color-mix(in oklch, var(--blue) 65%, transparent), transparent 55%),
      var(--ink);
  }
  .play {
    display: grid; place-items: center; width: 64px; aspect-ratio: 1; border-radius: 50%;
    background: rgb(255 255 255 / .92);

    &::after { content: ""; width: 20px; height: 22px; margin-left: 5px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
  }
  .caption {
    position: absolute; bottom: 14px; inset-inline: 14px; width: fit-content; margin-inline: auto;
    padding: 6px 12px; border-radius: 8px;
    background: rgb(0 0 0 / .55); color: white; font-size: 14px; text-align: center;
  }
  .meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 14px 8px 6px; }
  .meta span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
}

.progress {
  height: 6px; border-radius: 3px; margin: 6px 8px 4px;
  background: linear-gradient(to right, var(--accent) var(--progress), var(--surface-2) 0);
}

.audio {
  right: 0; top: 52%; width: 48%;
  display: grid; gap: 10px;

  svg { width: 100%; height: 36px; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
}

.live {
  left: 6%; bottom: 0; width: 52%;

  .badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--green); font-size: 13px; font-weight: 600; }
  .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
}

@keyframes pulse { 50% { opacity: .3; } }

.clients {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px;
  padding-block: 32px; border-block: 1px solid var(--line);
  color: var(--muted);

  p { flex-basis: 100%; font-size: 14px; text-align: center; }
  span { font: 700 21px/1 var(--sans); letter-spacing: -0.02em; opacity: .8; }
  span:nth-of-type(even) { font: italic 600 22px/1 var(--serif); }
}

/* Sections */
section { padding-block: 104px; }

.section-head {
  max-width: 680px; margin-bottom: 56px;

  h2 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 14px; }
  p { color: var(--muted); font-size: 19px; margin-top: 18px; }
}

.tracks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px;

  article {
    overflow: hidden; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .2s, border-color .2s;

    &:hover { transform: translateY(-3px); border-color: var(--accent); }
  }
  .cover {
    display: flex; justify-content: space-between; align-items: end;
    height: 120px; padding: 14px 16px;
    background:
      radial-gradient(circle at 85% 20%, oklch(75% 0.14 var(--hue) / .9), transparent 60%),
      oklch(36% 0.08 calc(var(--hue) + 30));
    color: white; font-size: 13px; font-weight: 600;
  }
  .cover span { padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .3); }
  .body { padding: 22px 24px 26px; }
  h3 { font-size: 23px; margin-bottom: 8px; }
  p { color: var(--muted); }
  .count { margin-top: 16px; font-size: 14px; font-weight: 600; }
}

.languages {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px;

  li { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); font-size: 15px; font-weight: 500; }
  small { color: var(--muted); margin-left: 4px; }
}

.locked {
  display: flex; align-items: center; gap: 12px; margin-top: 32px;
  color: var(--muted); font-size: 15px;

  svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  a { color: var(--accent); font-weight: 600; text-decoration: none; }
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;

  .section-head { margin-bottom: 32px; }
}

.checks {
  display: grid; gap: 14px;

  li { display: flex; gap: 12px; }
  li::before {
    content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px;
    border-radius: 50%; background: color-mix(in oklch, var(--green) 22%, transparent);
    color: light-dark(oklch(42% 0.12 160), oklch(82% 0.12 160)); font-size: 13px; font-weight: 700;
  }
}

.schedule {
  padding: 8px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);

  h3 { padding-block: 18px 6px; font: 600 15px/1 var(--sans); color: var(--muted); }
  li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding-block: 16px; }
  li + li { border-top: 1px solid var(--line); }
  time { font-weight: 600; font-variant-numeric: tabular-nums; }
  b { display: block; font-weight: 600; }
  small { color: var(--muted); font-size: 14px; }
  .tag { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
  .tag.now { background: color-mix(in oklch, var(--green) 22%, transparent); color: light-dark(oklch(42% 0.12 160), oklch(82% 0.12 160)); }
}

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;

  article { padding: 32px; border-radius: var(--radius); background: var(--surface-2); }
  .icon { margin-bottom: 24px; background: var(--surface); }
  h3 { font-size: 22px; margin-bottom: 10px; }
  p { color: var(--muted); }
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-block: 48px; border-block: 1px solid var(--line);

  strong { display: block; font: 600 clamp(36px, 4vw, 52px)/1 var(--serif); }
  span { color: var(--muted); font-size: 15px; }
}

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;

  li {
    counter-increment: step;
    padding: 32px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
  }
  li::before {
    content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: 40px;
    font: italic 600 44px/1 var(--serif); color: var(--accent);
  }
  h3 { font-size: 24px; margin-bottom: 10px; }
  p { color: var(--muted); }
}

.quote {
  max-width: 860px; margin: 0 auto; text-align: center;

  blockquote { margin: 0; font: 500 clamp(24px, 3vw, 34px)/1.35 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
  figcaption { margin-top: 28px; color: var(--muted); }
  figcaption b { display: block; color: var(--text); }
}

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start;

  article {
    display: grid; gap: 20px;
    padding: 36px 32px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
  }
  article.featured { color-scheme: dark; background: var(--ink); color: var(--text); border-color: var(--ink); }
  h3 { font: 600 20px/1 var(--sans); }
  .for { color: var(--muted); font-size: 15px; }
  .price { font: 600 48px/1 var(--serif); }
  .price small { display: block; margin-top: 8px; font: 14px/1.4 var(--sans); color: var(--muted); }
  .checks { gap: 10px; font-size: 15px; }
  .button { width: 100%; }
}

.faq {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px;

  details { border-bottom: 1px solid var(--line); }
  details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s, content-visibility .3s allow-discrete; }
  details[open]::details-content { block-size: auto; }
  summary {
    display: flex; justify-content: space-between; gap: 16px;
    padding-block: 22px; cursor: pointer; list-style: none;
    font-size: 19px; font-weight: 600;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--accent); transition: rotate .25s; }
  details[open] summary::after { rotate: 45deg; }
  details p { color: var(--muted); padding-bottom: 22px; max-width: 60ch; }
}

/* Demo request */
.demo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 72px; border-radius: 36px;
  color-scheme: dark; background: var(--ink); color: var(--text);

  &::before {
    content: ""; position: absolute; width: 560px; aspect-ratio: 1; left: -200px; bottom: -280px;
    background: radial-gradient(circle, color-mix(in oklch, var(--accent) 55%, transparent), transparent 65%);
    pointer-events: none;
  }

  > * { position: relative; }
  h2 { font-size: clamp(34px, 4.4vw, 52px); margin-block: 16px 20px; }
  .lead { color: var(--muted); font-size: 19px; }
  .checks { margin-top: 28px; }

  form, .done { color-scheme: light dark; }
  form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    padding: 32px; border-radius: var(--radius);
    background: var(--surface); color: var(--text);
  }
  .field.full, .button { grid-column: 1 / -1; }
  .button { margin-top: 8px; }
  .done { display: none; padding: 40px 32px; border-radius: var(--radius); background: var(--surface); color: var(--text); }
  .done h3 { font-size: 28px; margin-bottom: 12px; }
  .done p { color: var(--muted); }

  &:has(form.sent) {
    form { display: none; }
    .done { display: block; }
  }
}

/* Footer */
footer {
  padding-block: 56px; margin-top: 64px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px;

  .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
  .logo { color: var(--text); }
  .links { display: flex; flex-wrap: wrap; gap: 24px; }
  .links a { text-decoration: none; }
  .links a:hover { color: var(--text); }
}

/* Sign in and error pages */
.centered {
  min-height: 100svh;
  display: grid; place-items: center; align-content: center; gap: 32px;
  padding: 48px 16px;
}

.login {
  width: min(420px, 100%);
  display: grid; gap: 18px;
  padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);

  h1 { font-size: 32px; }
  .row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
  .row label { display: flex; align-items: center; gap: 8px; }
  .row input { accent-color: var(--accent); }
  .link { padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px var(--sans); cursor: pointer; }
  .error {
    padding: 12px 16px; border-radius: 12px;
    background: color-mix(in oklch, oklch(58% 0.2 25) 14%, transparent); color: light-dark(oklch(45% 0.18 25), oklch(80% 0.12 25));
    font-size: 15px; font-weight: 500;
  }
  .button { width: 100%; margin-top: 4px; }
}

.aside { max-width: 420px; color: var(--muted); font-size: 15px; text-align: center; }

[popover] {
  width: min(400px, 100% - 32px); padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow);

  h2 { font-size: 24px; margin-bottom: 10px; }
  p { color: var(--muted); }
  .button { margin-top: 20px; }
  &::backdrop { background: rgb(0 0 0 / .3); }
}

.not-found {
  max-width: 520px; margin-inline: auto; text-align: center;

  .code { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
  h1 { font-size: clamp(36px, 7vw, 52px); margin-block: 16px; }
  p { color: var(--muted); }
  .button { margin-top: 36px; }
}

/* Reveal on scroll */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes reveal { from { opacity: 0; translate: 0 32px; } }
}

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

@media (max-width: 960px) {
  header .links { display: none; }
  header nav .button.ghost { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 64px; }
  .stage { max-width: 520px; width: 100%; justify-self: center; }
  .split, .faq { grid-template-columns: 1fr; gap: 40px; }
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; padding: 48px 24px; }
}

@media (max-width: 520px) {
  section { padding-block: 72px; }
  header nav .button.accent { display: none; }
  .hero .lead { font-size: 18px; }
  .stage { aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; }
  .card { position: relative; inset: auto; }
  .player { width: 100%; }
  .audio { width: 80%; align-self: flex-end; }
  .live { width: 80%; }
  .clients span { font-size: 18px; }
  .schedule { padding-inline: 18px; }
  .schedule li { grid-template-columns: 48px 1fr; }
  .schedule .tag { grid-column: 2; justify-self: start; }
  .demo form { grid-template-columns: 1fr; padding: 24px; }
}
