@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --faint: #8e8e93;
  --line: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-2: rgba(255, 255, 255, 0.82);
  --stroke: rgba(255, 255, 255, 0.8);
  --shadow-1: 0 1px 2px rgba(20, 16, 40, 0.05), 0 10px 30px rgba(20, 16, 40, 0.06);
  --shadow-2: 0 2px 8px rgba(20, 16, 40, 0.05), 0 40px 90px -20px rgba(50, 30, 90, 0.22);
  --dusk: linear-gradient(100deg, #ff9f5a 0%, #ff5f9e 50%, #8c7cff 100%);
  --sun: linear-gradient(100deg, #ffb86b 0%, #ff7a59 48%, #ff5fa2 100%);
  --sky: linear-gradient(100deg, #5ac8fa 0%, #7c8cff 55%, #b48cff 100%);
  --mint: linear-gradient(100deg, #30d158 0%, #2fc6a2 50%, #5ac8fa 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid #7c8cff;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Background: slow, soft color fields ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}

.b1 {
  left: -18vmax;
  top: -22vmax;
  background: radial-gradient(circle, #ffc9a0 0%, rgba(255, 201, 160, 0) 70%);
}

.b2 {
  right: -20vmax;
  top: 10vmax;
  background: radial-gradient(circle, #d9d2ff 0%, rgba(217, 210, 255, 0) 70%);
  animation-duration: 32s;
}

.b3 {
  left: 20vmax;
  bottom: -30vmax;
  background: radial-gradient(circle, #ffd0e6 0%, rgba(255, 208, 230, 0) 70%);
  animation-duration: 38s;
}

@keyframes drift {
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  height: 60px;
  margin: 12px auto 0;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.scrolled {
  background: var(--glass-2);
  box-shadow: 0 1px 2px rgba(20, 16, 40, 0.06), 0 16px 40px rgba(20, 16, 40, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.links a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.nav-end {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.lang:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(29, 29, 31, 0.22);
}

.btn-dark:hover {
  box-shadow: 0 16px 36px rgba(29, 29, 31, 0.28);
}

.btn-glass {
  background: var(--glass-2);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.gh {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.play {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dusk);
  flex: none;
}

.play::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Type ---------- */

.kicker {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.grad {
  background: var(--dusk);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em 0.1em 0;
}

.sub {
  margin-top: 18px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}

h2 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

/* ---------- The TV ---------- */

.tv {
  position: relative;
  padding: clamp(5px, 0.7vw, 10px);
  border-radius: clamp(12px, 1.6vw, 22px);
  background: linear-gradient(180deg, #2c2c32 0%, #111114 55%, #0b0b0d 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 50px 100px -30px rgba(40, 24, 80, 0.45),
    0 22px 44px -22px rgba(0, 0, 0, 0.4);
}

.tv .screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(7px, 1vw, 13px);
  background: #e9e9ee;
}

.tv .screen > img,
.tv .screen > video,
.tv .screen > .before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv .screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 24px 0;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(60px, 8.6vw, 124px);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.hero .lede {
  margin-top: 26px;
  max-width: 34ch;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.built {
  margin-top: 22px;
  font-size: 14px;
  color: var(--faint);
}

.built b {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-stage {
  position: relative;
  perspective: 1800px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -12% -8% -6%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 32% 45%, rgba(255, 159, 90, 0.42), rgba(255, 159, 90, 0) 70%),
    radial-gradient(closest-side at 70% 55%, rgba(140, 124, 255, 0.4), rgba(140, 124, 255, 0) 70%),
    radial-gradient(closest-side at 52% 40%, rgba(255, 95, 158, 0.3), rgba(255, 95, 158, 0) 75%);
  filter: blur(30px);
}

.tilt {
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 4deg));
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

.floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(140, 120, 255, 0.28) 0%, rgba(255, 120, 160, 0.12) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(18px);
  z-index: -1;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stats b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.stats span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 170px) 24px 0;
}

.section .head {
  max-width: 860px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.section .head h2 {
  margin-top: 14px;
}

/* ---------- Before / after ---------- */

.ba {
  max-width: 960px;
  margin: 0 auto;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba .before-wrap {
  clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0);
}

.ba .before-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x, 50%);
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.85);
}

.ba .handle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ba .handle span::before,
.ba .handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translateY(-50%);
}

.ba .handle span::before {
  left: 13px;
  border-right: 9px solid var(--ink);
}

.ba .handle span::after {
  right: 13px;
  border-left: 9px solid var(--ink);
}

.tag {
  position: absolute;
  top: 4%;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tag em {
  font-style: normal;
  opacity: 0.6;
  font-weight: 500;
}

.tag-l {
  left: 3%;
  background: rgba(20, 20, 24, 0.7);
  color: #fff;
}

.tag-r {
  right: 3%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(88px, 11vw, 150px);
  perspective: 1600px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature .copy h3 {
  margin-top: 12px;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.feature .copy p:not(.kicker) {
  margin-top: 18px;
  max-width: 38ch;
  font-size: 19px;
  color: var(--muted);
}

.feature .tv {
  transform: rotateY(-9deg) rotateX(2deg);
  transition: transform 1.1s var(--ease);
}

.feature.flip .copy {
  order: 2;
}

.feature.flip .tv {
  transform: rotateY(9deg) rotateX(2deg);
}

.feature:hover .tv {
  transform: rotateY(0deg) rotateX(0deg);
}

.hud {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.88);
  color: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hud i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 12px #30d158;
}

.hud b {
  color: #30d158;
  font-weight: 500;
  font-size: 16px;
}

.hud svg {
  width: 100px;
  height: 22px;
}

.hud polyline {
  stroke: #30d158;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* ---------- Sunset (scroll from day to night) ---------- */

.sunset {
  --p: 0;
  position: relative;
  height: 260vh;
  margin-top: clamp(96px, 13vw, 170px);
}

.sunset .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
  padding: 90px 24px 40px;
  background: var(--sunset-bg, var(--bg));
  color: var(--sunset-ink, var(--ink));
}

.sunset .head {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.sunset .kicker {
  color: var(--sunset-faint, var(--faint));
}

.sunset h2 {
  margin-top: 14px;
}

.sunset .w-day {
  opacity: calc(1 - var(--p) * 0.72);
}

.sunset .w-night {
  opacity: calc(0.28 + var(--p) * 0.72);
  background: var(--sky);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sunset .sub {
  color: var(--sunset-muted, var(--muted));
}

.sunset .tv {
  position: relative;
  z-index: 2;
  width: min(980px, 92vw);
}

.sunset .screen .night {
  opacity: var(--p);
}

.sun,
.moon {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sun {
  width: 150px;
  height: 150px;
  left: calc(8% + var(--p) * 30%);
  top: calc(16% + var(--p) * 70%);
  background: radial-gradient(circle, #fff6e3 0%, #ffd38a 42%, #ff9a4a 70%, rgba(255, 140, 70, 0) 72%);
  box-shadow: 0 0 120px 40px rgba(255, 170, 90, 0.45);
  opacity: calc(1 - var(--p) * 1.4);
}

.moon {
  width: 90px;
  height: 90px;
  right: 10%;
  top: calc(64% - var(--p) * 48%);
  box-shadow: inset -26px -8px 0 0 #eef1ff;
  filter: drop-shadow(0 0 26px rgba(190, 200, 255, 0.85));
  transform: rotate(-18deg);
  opacity: calc((var(--p) - 0.45) * 2.2);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: calc((var(--p) - 0.4) * 1.8);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 42%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 34% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 36%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 54%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 58%, #fff 50%, transparent 51%);
}

/* ---------- Numbers ---------- */

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

.card {
  padding: clamp(28px, 3vw, 40px);
  border-radius: 30px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.card .big {
  display: block;
  font-size: clamp(66px, 7.4vw, 104px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
  font-variant-numeric: tabular-nums;
}

.card .big small {
  margin-left: 6px;
  font-size: 0.34em;
  letter-spacing: -0.02em;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.grad-mint {
  background-image: var(--mint);
}

.grad-sky {
  background-image: var(--sky);
}

.grad-sun {
  background-image: var(--sun);
}

.card h4 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 6px;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bars div {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.bars i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--sky);
  width: 0;
  transition: width 1.6s var(--ease) 0.3s;
}

.bars div:first-child i {
  background: linear-gradient(90deg, #c7c7cc, #aeaeb2);
}

.card.in .bars i {
  width: var(--w);
}

.bars em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 34px;
  border-radius: 28px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
}

.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dusk);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(255, 95, 158, 0.3);
}

.step h4 {
  margin-top: 22px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Install ---------- */

.panel {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: 32px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.tabs button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.howto {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.howto > li {
  position: relative;
  padding: 0 0 26px 50px;
  counter-increment: s;
  color: var(--ink-2);
}

.howto > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.howto em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
  padding: 12px 12px 12px 18px;
  border-radius: 14px;
  background: #1d1d1f;
  color: #f5f5f7;
}

.code code {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14.5px;
  scrollbar-width: none;
}

.code.prompt {
  background: linear-gradient(100deg, #2b1f2e, #1f1f2e);
}

.code.prompt code {
  white-space: normal;
  font-family: inherit;
  font-size: 16px;
}

.copy-btn {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.copy-btn.done {
  background: #30d158;
}

/* ---------- Compatibility ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.chip.ok {
  background: rgba(48, 209, 88, 0.13);
  color: #18793a;
}

.chip.ok::before {
  content: "✓";
}

.note {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.qs {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.qs details {
  border-radius: 22px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.qs summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.qs summary::-webkit-details-marker {
  display: none;
}

.qs summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--faint);
  transition: transform 0.4s var(--ease);
}

.qs details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.qs details p {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Final + footer ---------- */

.final {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 190px) 24px clamp(90px, 10vw, 130px);
  text-align: center;
}

.final h2 {
  font-size: clamp(44px, 6.6vw, 88px);
}

.final .cta {
  justify-content: center;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.foot .brand {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15px;
}

.foot p + p {
  margin-top: 6px;
}

/* ---------- Film ---------- */

.film {
  width: min(1120px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.film::backdrop {
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.film .close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

.feature[data-reveal].in .tv {
  transition-delay: 0.1s;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .links {
    display: none;
  }

  .nav .nav-end {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .cta {
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature.flip .copy {
    order: 0;
  }

  .feature .copy p:not(.kicker) {
    margin-left: auto;
    margin-right: auto;
  }

  .feature .tv,
  .feature.flip .tv {
    transform: none;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .sun {
    width: 96px;
    height: 96px;
  }

  .moon {
    width: 64px;
    height: 64px;
    box-shadow: inset -18px -6px 0 0 #eef1ff;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav {
    margin: 10px 12px 0;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats {
    gap: 8px;
  }

  .stats li {
    padding: 16px;
  }

  .stats b {
    font-size: 24px;
  }

  .cta .btn {
    width: 100%;
  }

  .tag {
    padding: 5px 10px;
  }

  .tag em {
    display: none;
  }

  .howto > li {
    padding-left: 44px;
  }

  .panel {
    border-radius: 26px;
  }

  .qs summary {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .blob {
    animation: none;
  }

  .tilt,
  .feature .tv {
    transition: none;
  }
}
