:root {
  color-scheme: light;
  --ink: #191724;
  --muted: #696575;
  --line: rgba(39, 28, 70, .11);
  --purple: #7158e8;
  --purple-dark: #5641c9;
  --paper: rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 4%, rgba(164, 213, 255, .50), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(226, 186, 255, .48), transparent 30rem),
    #f8f7fb;
}

a { color: inherit; }
button { font: inherit; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 94px 0 108px; text-align: center; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5);
  color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none;
  backdrop-filter: blur(18px);
}
.eyebrow span { color: var(--purple); }
.mark {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 38px auto 20px;
  border-radius: 19px; color: white; font-size: 48px; line-height: 1;
  background: linear-gradient(145deg, #8269f0, #6248d7);
  box-shadow: 0 18px 45px rgba(90, 67, 200, .28);
}
h1, h2, p { margin-top: 0; }
.product-name { margin-bottom: 3px; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.045em; line-height: 1; }
.product-type { margin-bottom: 34px; color: var(--purple); font-size: 13px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.hero-headline { margin-bottom: 24px; font-size: clamp(52px, 8vw, 88px); font-weight: 750; letter-spacing: -.065em; line-height: .96; }
.hero-headline em { color: var(--purple); font-style: normal; }
.lede { width: min(650px, 100%); margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.55; }
.origin-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.origin-note a { text-decoration-color: rgba(113, 88, 232, .4); text-underline-offset: 3px; }
.origin-note a:hover { color: var(--purple-dark); }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.actions button, .actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 19px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.primary { color: white; background: var(--purple); box-shadow: 0 9px 22px rgba(93, 70, 203, .22); }
.primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .62; cursor: wait; }
.secondary { background: rgba(255,255,255,.72); border-color: var(--line) !important; }

section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.section-heading > p { max-width: 430px; color: var(--muted); line-height: 1.55; }
.kicker { margin-bottom: 8px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.06; }

.palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.cue {
  display: grid; grid-template-columns: 46px 1fr 30px; align-items: center; gap: 14px;
  min-height: 84px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 17px;
  color: var(--ink); text-align: left; background: var(--paper); cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 35, 83, .035); backdrop-filter: blur(18px);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.cue:hover { transform: translateY(-2px); border-color: rgba(113, 88, 232, .38); box-shadow: 0 12px 28px rgba(47, 35, 83, .09); }
.cue.playing { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(113, 88, 232, .11); }
.cue-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--purple); background: rgba(113, 88, 232, .11); font-size: 20px; }
.cue.playing .cue-icon { color: white; background: var(--purple); }
.cue strong { display: block; margin-bottom: 4px; font-size: 15px; }
.cue small { color: var(--muted); font-size: 12px; }
.play { color: #aaa4b3; font-size: 23px; }
.cue.playing .play { color: var(--purple); }

.code-panel {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center;
  margin: 72px 0; padding: 58px; border: 1px solid var(--line); border-radius: 26px;
  background: rgba(255,255,255,.62); box-shadow: 0 24px 70px rgba(47,35,83,.08);
}
.code-panel p:not(.kicker) { margin-top: 22px; color: var(--muted); line-height: 1.6; }
pre { margin: 0; padding: 27px; overflow-x: auto; border-radius: 17px; color: #f5f2ff; background: #211d2d; box-shadow: inset 0 1px rgba(255,255,255,.08); }
code { font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
code .muted { color: #9b94ae; } code .accent { color: #bdaaff; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  main { width: min(100% - 26px, 600px); }
  .hero { padding: 64px 0 76px; }
  .actions, .section-heading, footer { align-items: stretch; flex-direction: column; }
  .actions a, .actions button { width: 100%; }
  .palette, .code-panel { grid-template-columns: 1fr; }
  .code-panel { gap: 34px; margin: 48px 0; padding: 28px 22px; }
  section { padding: 52px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .primary, .cue { transition: all .16s ease; }
}
