:root {
  --page: #0b0b0d;
  --raised: #141418;
  --card: #18181d;
  --line: #26262d;
  --text: #f3f3f5;
  --soft: #b4b4bd;
  --faint: #7d7d87;
  --accent: #8b7bf2;
  --accent-soft: rgba(139, 123, 242, 0.16);
  --notch: #000;
  --r: 12px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #f6f6f8;
    --raised: #ffffff;
    --card: #ffffff;
    --line: #e4e4ea;
    --text: #16161a;
    --soft: #4b4b55;
    --faint: #7a7a85;
    --accent: #6b57e8;
    --accent-soft: rgba(107, 87, 232, 0.1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

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

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.top nav a { color: var(--soft); }
.top nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .top nav a:not(.keep) { display: none; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { background: var(--raised); filter: none; }
.button[data-soon] { background: var(--raised); color: var(--faint); border-color: var(--line); pointer-events: none; }
.button svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; overflow: hidden; }
.hero h1 { font: 700 clamp(40px, 6.5vw, 68px)/1.04 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.025em; margin: 0 0 18px; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--soft); max-width: 640px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 14px; color: var(--faint); font-size: 13.5px; }

/* ---------- The notch, drawn ---------- */
.screen {
  position: relative; margin: 64px auto 0; width: min(920px, 100%); aspect-ratio: 16 / 7.4;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 78% 8%, rgba(139, 123, 242, 0.55), transparent 60%),
    radial-gradient(60% 80% at 8% 100%, rgba(40, 140, 170, 0.5), transparent 60%),
    linear-gradient(160deg, #241f3d, #131a26);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(470px, 62%); background: var(--notch); color: #fff;
  border-radius: 0 0 26px 26px; padding: 4.2% 4.6% 3.6%;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  text-align: left;
}
.player { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.player .art { width: clamp(44px, 9vw, 64px); aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, #ff8fb1, #8b7bf2 60%, #4cc9f0); }
.player b { display: block; font-size: clamp(13px, 2vw, 17px); }
.player span { color: #a9a9b3; font-size: clamp(11px, 1.6vw, 13.5px); }
.wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.2s; } .wave i:nth-child(3) { animation-delay: -0.45s; } .wave i:nth-child(4) { animation-delay: -0.7s; } .wave i:nth-child(5) { animation-delay: -0.9s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 20px; } }
.scrub { height: 4px; border-radius: 2px; background: #2a2a31; margin-top: 16px; position: relative; }
.scrub::before { content: ""; position: absolute; inset: 0 42% 0 0; border-radius: 2px; background: #fff; }
.controls { display: flex; justify-content: center; gap: 28px; margin-top: 12px; font-size: 15px; color: #fff; opacity: 0.92; }
.second {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  background: var(--notch); color: #fff; border-radius: 14px; padding: 7px 16px 7px 12px;
  display: flex; align-items: center; gap: 10px; font-size: clamp(11px, 1.6vw, 13.5px); font-weight: 600;
}
.second .paws { width: 16px; height: 16px; color: var(--accent); }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: rgba(18, 18, 22, 0.82); }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: 12px; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font: 700 clamp(28px, 3.6vw, 38px)/1.15 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -0.015em; margin: 0 0 10px; }
.section-head p { color: var(--soft); margin: 0; font-size: 17px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; margin-bottom: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px; }
.feature .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.panel h3 { margin: 0 0 8px; font-size: 18px; }
.panel p { margin: 0 0 10px; color: var(--soft); font-size: 15px; }
.panel ul { margin: 0; padding-left: 18px; color: var(--soft); font-size: 15px; }
.panel li { margin: 5px 0; }

/* ---------- Download ---------- */
.download { text-align: center; }
.download .section-head { margin: 0 auto 28px; }
.download .meta { color: var(--faint); font-size: 13.5px; margin-top: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 30px; color: var(--soft); font-size: 14.5px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Releases ---------- */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font: 700 clamp(34px, 5vw, 48px)/1.1 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; margin: 0 0 8px; letter-spacing: -0.02em; }
.page-head p { color: var(--soft); margin: 0; }
.releases { padding: 16px 0 80px; display: grid; gap: 14px; max-width: 820px; }
.release { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.release h2 { margin: 0; font-size: 20px; }
.release time { color: var(--faint); font-size: 14px; white-space: nowrap; }
.release .notes { color: var(--soft); font-size: 15px; }
.release .notes h3 { color: var(--text); font-size: 15.5px; margin: 16px 0 4px; }
.release .notes ul { padding-left: 18px; }
.quiet { color: var(--faint); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--soft); }
