:root {
  --bg: #07090f;
  --bg-raise: #0d1019;
  --bg-card: #10141f;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f2f3f5;
  --text-dim: #9aa1ad;
  --text-faint: #6b7280;
  --accent: #f2f3f5;
  --accent-deep: #c9ced6;
  --accent-soft: rgba(255, 255, 255, 0.07);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* The nav is fixed, so anchors stop short of it instead of underneath it */
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0c12; }

body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1380px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 15px; margin-left: 4px; }
.nav-eq i { width: 3px; border-radius: 2px; background: var(--text); animation: eq-b 1.1s ease-in-out infinite; transform-origin: bottom; }
.nav-eq i:nth-child(1) { height: 45%; animation-delay: 0s; }
.nav-eq i:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.nav-eq i:nth-child(3) { height: 60%; animation-delay: 0.34s; }
.nav-eq i:nth-child(4) { height: 80%; animation-delay: 0.09s; }
@keyframes eq-b { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--text-dim); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff, var(--accent-deep));
  color: #0a0c12;
  box-shadow: 0 2px 16px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(255, 255, 255, 0.22); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.nav-links .btn { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero: magazine spread ---------- */
header {
  position: relative;
  padding: 120px 0 0;
  overflow: hidden;
  min-height: min(100vh, 980px);
}
.hero-glow {
  position: absolute; top: -280px; left: 55%; transform: translateX(-50%);
  width: 1100px; height: 720px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px 40px;
  align-items: end;
  padding-bottom: 72px;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

h1 em, h2 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500; letter-spacing: 0;
}
h1 {
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 0;
  max-width: 11ch;
}
h1 .line-2 {
  display: block;
  margin-left: 0.55em;
  margin-top: 0.06em;
}
.hero-sub {
  font-size: 17.5px; color: var(--text-dim); max-width: 440px;
  margin: 28px 0 32px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-ctas .btn { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }
.hero-note { font-size: 13.5px; color: var(--text-faint); max-width: 360px; }
.hero-note b { color: var(--text-dim); font-weight: 600; }

.hero-aside {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes phone-in {
  from { opacity: 0; transform: translate(30px, 50px) rotate(14deg); }
  to { opacity: 1; transform: rotate(6deg); }
}
html.js .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
html.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
html.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
html.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
html.js .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
html.js .phone-stage { animation: phone-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards; }

/* Fit hero on shorter laptop screens */
@media (max-height: 900px) and (min-width: 941px) {
  header { padding-top: 96px; min-height: auto; }
  h1 { font-size: clamp(42px, 5.5vw, 68px); }
  .hero-sub { font-size: 16px; margin: 20px 0 24px; }
  .hero-aside { min-height: 340px; }
  .phone { width: min(270px, 32vh); }
}

/* ---------- Phone mockup ---------- */
.phone-stage {
  position: relative;
  display: flex; justify-content: center;
  transform: rotate(6deg);
  /* Sit comfortably inside the page edge on laptop widths, and only bleed
     outward on wide screens where the gutter can absorb the 6deg tilt
     (which already widens the phone by ~31px on each side). */
  margin-right: calc(-1 * min(6%, max(28px, (100vw - 1380px) / 2 + 28px) - 100px));
  margin-bottom: -40px;
}
.phone-stage::before {
  content: ""; position: absolute; inset: -8% -18%;
  background: radial-gradient(closest-side, rgba(96, 210, 190, 0.17), transparent 72%);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.07); }
}
.phone {
  width: 300px; border-radius: 44px;
  background: linear-gradient(160deg, #191d29, #0b0e16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.03),
    0 40px 90px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(255, 255, 255, 0.05);
  padding: 14px;
  position: relative;
}
.phone-screen {
  border-radius: 32px; overflow: hidden;
  background: #0a0c12;
}
.phone-screen img { display: block; width: 100%; height: auto; }

/* ---------- Handwritten notes ---------- */
.note {
  position: absolute; z-index: 2; pointer-events: none; user-select: none;
  font-family: "Snell Roundhand", "Savoye LET", "Segoe Script", cursive;
  font-size: 21px; color: var(--text-dim); white-space: nowrap;
}
@media (max-width: 1180px) { .note { display: none; } }

/* ---------- Scattered stickers ---------- */
.sticker {
  position: absolute; z-index: 2; pointer-events: none; user-select: none;
  opacity: 0;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.sticker.pill {
  border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  padding: 9px 18px; color: var(--text); background: rgba(7, 9, 15, 0.55);
}
.sticker.stamp {
  border: 1.5px dashed rgba(255, 255, 255, 0.28); border-radius: 10px;
  padding: 9px 16px; color: var(--text-dim);
}
.sticker.hollow {
  font-size: 30px; letter-spacing: 0.12em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}
@media (max-width: 1180px) { .sticker { display: none; } }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 48px;
  align-items: end;
  max-width: none;
  margin-bottom: 72px;
}
.sec-head.split .sec-copy { max-width: 520px; justify-self: end; text-align: right; }
.sec-index {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800; line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  user-select: none;
}
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 800;
  margin-bottom: 16px;
}
.sec-sub { color: var(--text-dim); font-size: 17px; }

/* ---------- How it works: spine timeline ---------- */
.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.steps::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18) 8%, rgba(255,255,255,0.18) 92%, transparent);
  transform: translateX(-50%);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 28px 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.step-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.step:nth-child(odd) .step-body { justify-self: end; max-width: 440px; rotate: -1.2deg; }
.step:nth-child(even) .step-body { justify-self: start; max-width: 440px; rotate: 1deg; }
.step:nth-child(odd) .step-marker { justify-self: end; text-align: right; padding-right: 40px; }
.step:nth-child(even) .step-marker { justify-self: start; text-align: left; padding-left: 40px; grid-column: 2; grid-row: 1; }
.step:nth-child(even) .step-body { grid-column: 1; grid-row: 1; }
.step-marker {
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.step-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(255,255,255,0.25);
}
.step:nth-child(odd) .step-marker::after { right: -5.5px; transform: translateY(-50%); }
.step:nth-child(even) .step-marker::after { left: -5.5px; transform: translateY(-50%); }
@media (hover: hover) {
  .step-body:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-4px); rotate: 0deg; }
}
.step-body { transition: border-color 0.3s, transform 0.3s, rotate 0.3s; }
.step-num {
  font-size: clamp(48px, 6vw, 72px); font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
  margin-bottom: 8px;
}
.step-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.step h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.015em; }
.step p { color: var(--text-dim); font-size: 15px; }
.step p code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; background: rgba(255,255,255,0.06);
  padding: 2px 7px; border-radius: 6px; color: var(--accent);
}

/* ---------- Features: editorial bento ---------- */
#features { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 40%, transparent); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}
.feat {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 28px;
  transition: border-color 0.3s, transform 0.3s, background 0.25s;
  display: flex; flex-direction: column;
}
.feat.a { grid-column: span 7; grid-row: span 2; padding: 40px 36px; rotate: -0.4deg; }
.feat.b { grid-column: span 5; rotate: 0.6deg; }
.feat.c { grid-column: span 5; rotate: -0.5deg; }
.feat.d { grid-column: span 4; rotate: 0.8deg; }
.feat.e { grid-column: span 4; rotate: -0.7deg; margin-top: 12px; }
.feat.f { grid-column: span 4; rotate: 0.4deg; }
.feat.a h3 { font-size: 28px; margin-bottom: 14px; }
.feat.a p { font-size: 16.5px; max-width: 48ch; }
.feat.a .feat-icon { width: 54px; height: 54px; font-size: 24px; margin-bottom: 28px; }
@media (hover: hover) {
  .feat:hover { background: var(--text); border-color: transparent; transform: translateY(-4px); rotate: 0deg; }
  .feat:hover h3, .feat:hover .feat-icon { color: #0a0c12; }
  .feat:hover p { color: #4a5058; }
  .feat:hover .feat-icon { background: rgba(10, 12, 18, 0.07); border-color: rgba(10, 12, 18, 0.2); }
}
.feat, .feat h3, .feat p, .feat .feat-icon { transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s, rotate 0.3s; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 13px; color: var(--text);
  background: var(--accent-soft); border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 20px;
}
.feat h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Connect spotlight ---------- */
.connect-panel {
  rotate: -0.6deg;
  background: linear-gradient(140deg, #131727, #0b0e16);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px 56px; align-items: center;
  overflow: visible; position: relative;
}
.connect-panel::before {
  content: ""; position: absolute; top: -160px; right: -100px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 65%);
  pointer-events: none;
}
.connect-panel h2 { margin-bottom: 18px; font-size: clamp(28px, 3.5vw, 40px); }
.connect-panel > div p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 14px; }
/* ---------- Connect live demo ---------- */
.connect-copy p { font-size: 16.5px; }
.connect-points { list-style: none; margin: 26px 0 0; }
.connect-points li {
  position: relative; padding-left: 30px; margin-bottom: 15px;
  color: var(--text-dim); font-size: 15px;
}
.connect-points li:last-child { margin-bottom: 0; }
.connect-points li b { color: var(--text); font-weight: 650; }
.connect-points li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f3f5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 9px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.cx-demo-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cx-demo {
  background: rgba(7, 9, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.cx-now {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 14px;
}
.cx-art {
  width: 72px; height: 72px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(145deg, #3a6ea8, #1a2c4d 52%, #0c1224);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 11px;
}
.cx-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.cx-eq i { width: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.92); animation: eq-b 1.15s ease-in-out infinite; transform-origin: bottom; }
.cx-eq i:nth-child(1) { height: 42%; animation-delay: 0s; }
.cx-eq i:nth-child(2) { height: 95%; animation-delay: 0.16s; }
.cx-eq i:nth-child(3) { height: 58%; animation-delay: 0.33s; }
.cx-eq i:nth-child(4) { height: 78%; animation-delay: 0.08s; }
.cx-meta { flex: 1; min-width: 0; }
.cx-trackline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cx-trackline b { font-size: 15px; letter-spacing: -0.01em; }
.cx-live {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: #0a0c12; background: var(--accent);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.cx-artist { display: block; color: var(--text-dim); font-size: 12.5px; margin: 3px 0 10px; }
.cx-progress { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cx-progress i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 99px; transition: width 0.25s linear; }
.cx-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cx-banner {
  min-height: 36px; display: flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: 11px;
  font-size: 13px; color: var(--text);
  background: var(--accent-soft); border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.cx-banner.show { opacity: 1; transform: none; }
.cx-banner svg { flex-shrink: 0; color: var(--text); }
.cx-banner b { font-weight: 650; }
.cx-devices { display: flex; flex-direction: column; gap: 9px; }
.cx-device {
  display: flex; align-items: center; gap: 13px; width: 100%;
  text-align: left; font-family: inherit; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 15px;
  transition: border-color 0.25s, background 0.25s, transform 0.15s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.cx-device:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.cx-device.active {
  border-color: rgba(255, 255, 255, 0.45); background: var(--accent-soft);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.06), 0 14px 32px rgba(0, 0, 0, 0.35);
}
.cx-device .d-icon { width: 26px; display: flex; justify-content: center; flex-shrink: 0; }
.cx-dmeta { flex: 1; min-width: 0; }
.cx-dmeta b { display: block; font-size: 14px; }
.cx-status { display: block; color: var(--text-faint); font-size: 12px; margin-top: 1px; }
.cx-device.active .cx-status { color: var(--text-dim); }
.cx-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); color: var(--text-dim);
  transition: background 0.25s, color 0.25s;
}
.cx-device.active .cx-tag { background: var(--accent); color: #0a0c12; }
.connect-panel .cx-hint { margin: 0; text-align: center; color: var(--text-faint); font-size: 12.5px; }

/* ---------- Connect showcase: screenshots continue the Connect story ---------- */
.connect-showcase { position: relative; overflow: hidden; margin-top: 92px; }
.showcase-bridge {
  position: relative; z-index: 1;
  text-align: center; color: var(--text-dim); font-size: 16.5px;
  max-width: 600px; margin: 0 auto 12px; padding: 0 12px;
}
.connect-showcase .stage-caption { margin-bottom: 8px; }

/* ---------- Screenshot showcase: stacked cluster ---------- */
#platforms { position: relative; overflow: hidden; padding-bottom: 120px; }
#platforms .wrap-wide { position: relative; }
.set-glow {
  position: absolute; inset: 0; pointer-events: none;
  background-color: transparent;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 44%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 62% at 50% 44%, black, transparent 72%);
  opacity: 0;
  transition: background-color 1.4s ease;
}
.stage {
  position: relative;
  height: clamp(340px, 48vw, 520px);
  margin: 20px auto 48px;
  max-width: 1100px;
  /* room for the phone that hangs past the stage bottom */
  padding-bottom: 4%;
  touch-action: pan-y;
}
.swap { position: relative; }
.swap img {
  display: block; width: 100%; height: auto; opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-user-drag: none; user-select: none;
}
.swap img:first-child { position: relative; }
.swap img + img { position: absolute; inset: 0; height: 100%; object-fit: contain; }
.swap img.on { opacity: 1; }

.stage-tv {
  position: absolute;
  left: 2%; top: 8%;
  width: 58%;
  z-index: 1;
  rotate: -1.5deg;
}
.tv-frame {
  background: #05070b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 80px rgba(255, 255, 255, 0.04);
}
.tv-frame .swap { border-radius: 6px; overflow: hidden; }
.stage-desktop {
  position: absolute;
  right: 4%; top: 0;
  width: 46%;
  z-index: 2;
  rotate: 2.2deg;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.7));
}
.stage-phone {
  position: absolute;
  left: 42%; bottom: -4%;
  width: 15%;
  min-width: 110px;
  z-index: 3;
  rotate: -4deg;
}
.mini-phone {
  border-radius: 26px;
  background: linear-gradient(160deg, #191d29, #0b0e16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 7px;
}
.mini-phone .swap { border-radius: 20px; overflow: hidden; background: #0a0c12; }

.stage-ctrl {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-bottom: 18px;
}
.arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--text); font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.arrow:hover { background: var(--accent-soft); border-color: rgba(255, 255, 255, 0.35); transform: scale(1.06); }
.dots { display: flex; gap: 10px; align-items: center; }
.dot-btn {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.18); cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.dot-btn.on { background: var(--accent); transform: scale(1.35); }
.stage-caption {
  text-align: center; color: var(--text-dim); font-size: 15.5px;
  max-width: 640px; margin: 0 auto 72px;
  transition: opacity 0.3s;
  padding: 0 12px;
}
.stage-caption b { color: var(--accent); }

/* ---------- Platforms strip ---------- */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.plat {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 36px 28px;
  text-align: left;
  transition: background 0.25s, color 0.25s, transform 0.3s;
}
.plat:last-child { border-right: none; }
.plat:nth-child(odd) { rotate: 0; }
.plat:nth-child(even) { rotate: 0; margin-top: 0; }
@media (hover: hover) {
  .plat:hover { background: var(--text); transform: none; }
  .plat:hover h3, .plat:hover .p-icon { color: #0a0c12; }
  .plat:hover p { color: #4a5058; }
}
.plat, .plat h3, .plat p, .plat .p-icon { transition: background 0.25s, color 0.25s, border-color 0.3s, transform 0.3s; }
.plat .p-icon { display: flex; justify-content: flex-start; margin-bottom: 16px; color: var(--text); }
.plat h3 { font-size: 17px; margin-bottom: 6px; }
.plat p { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }

/* ---------- Per-client screenshot gallery ---------- */
.gallery { margin-top: 72px; }
.gal-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.gal-tab {
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-dim); cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.gal-tab svg { opacity: 0.8; }
.gal-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); }
.gal-tab.on { background: var(--text); color: #0a0c12; border-color: transparent; }
.gal-tab.on svg { opacity: 1; }

/* All three panels share one grid cell, so the page below never moves
   when you switch tabs. The tallest panel sets the height once. */
.gal-panels { display: grid; }
.gal-panel {
  grid-area: 1 / 1; align-self: center;
  /* Grid items default to min-width:auto, which lets the rail push the panel
     out to the full width of the screenshots instead of scrolling. */
  min-width: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.34s ease, transform 0.34s ease, visibility 0s linear 0.34s;
}
.gal-panel.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.34s ease, transform 0.34s ease, visibility 0s;
}

.gal-rail {
  display: flex; gap: 26px;
  overflow-x: auto; overflow-y: hidden;
  /* The page sets scroll-behavior: smooth globally. The rail opts out so a
     bar drag tracks the pointer instead of chasing an animation behind it. */
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  padding: 14px 2px 6px;
  scrollbar-width: none;
}
.gal-rail::-webkit-scrollbar { display: none; }
/* Snapping only earns its keep where one shot fills most of the screen.
   At desktop widths it just yanks the row as you let go. */
@media (max-width: 600px) {
  .gal-rail { scroll-snap-type: x proximity; }
  .gal-rail.dragging { scroll-snap-type: none; }
}

/* Our own scroll bar, so it belongs to the page instead of the browser */
.gal-bar {
  position: relative; height: 6px;
  width: min(440px, 70%); margin: 14px auto 0;
  cursor: pointer; touch-action: none;
}
.gal-bar::before {
  content: ""; position: absolute; inset: 2px 0; border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.13) 14%,
    rgba(255, 255, 255, 0.13) 86%,
    rgba(255, 255, 255, 0));
}
.gal-bar i {
  position: absolute; top: 0; left: 0; height: 6px; width: 30%;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.5), #fff 50%, rgba(255, 255, 255, 0.5));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.2s;
}
.gal-bar:hover i, .gal-bar.dragging i { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
.gal-bar.dragging { cursor: grabbing; }
.shot {
  flex: 0 0 auto; scroll-snap-align: start;
  margin: 0; text-align: center;
}
/* Aspect ratios are declared so the row reserves its height before the
   images decode, and the section never reflows underneath itself */
.shot img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.shot-phone img { aspect-ratio: 1170 / 2532; }
.shot-desktop img { aspect-ratio: 1282 / 822; }
.shot-tv img { aspect-ratio: 16 / 9; }
.shot figcaption {
  color: var(--text-dim); font-size: 13px; margin-top: 14px;
  line-height: 1.45;
}
.shot figcaption b { color: var(--text); font-weight: 600; }

.shot-phone { width: 205px; }
.shot-phone .shot-frame {
  border-radius: 26px; padding: 6px;
  background: linear-gradient(160deg, #191d29, #0b0e16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.62);
}
.shot-phone .shot-frame img { border-radius: 21px; }

.shot-desktop { width: min(560px, 78vw); }
.shot-desktop .shot-frame { filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.66)); }

.shot-tv { width: min(560px, 78vw); }
.shot-tv .shot-frame {
  background: #05070b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 10px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 70px rgba(255, 255, 255, 0.035);
}
.shot-tv .shot-frame img { border-radius: 5px; }

.gal-hint {
  text-align: center; color: var(--text-faint); font-size: 12.5px;
  margin: 6px 0 0;
}

/* ---------- Open source strip ---------- */
.oss {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
#oss h2 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  transition: text-decoration-color 0.25s;
}
#oss h2 a:hover { text-decoration-color: var(--text); }
/* inline-block keeps the arrow out from under the heading's underline */
#oss h2 a .ext {
  display: inline-block; font-size: 0.42em; font-weight: 600;
  vertical-align: 0.9em; margin-left: 0.12em;
}
.plans { display: flex; flex-direction: column; gap: 48px; position: relative; }
.plan {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
  position: relative;
}
.plan-name { font-weight: 800; font-size: 21px; margin-bottom: 4px; }
.plan-price { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.plan ul { list-style: none; }
.plan li { padding-left: 24px; position: relative; color: var(--text-dim); font-size: 14.5px; margin-bottom: 8px; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.plan-hot {
  background: var(--text); color: #0a0c12; border-color: transparent;
  rotate: -0.6deg;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.plan-hot .plan-price, .plan-hot li { color: #495059; }
.plan-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; background: #0a0c12; color: #fff;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.plan-cta {
  display: inline-flex; margin-top: 18px; padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.plan-cta:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.plan-cta.cta-dark {
  background: #0a0c12; color: #fff; border-color: transparent;
}
.plan-cta.cta-dark:hover { background: #1d2330; }

.oss h2 { margin-bottom: 18px; }
.oss p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 14px; }
.oss ul { list-style: none; margin: 22px 0 0; }
.oss li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--text-dim); font-size: 15.5px; }
.oss li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Paid clients / checkout (lives on download.html) ---------- */
#licenses {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 48%, transparent);
  overflow: hidden;
}
.checkout-intro {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: -28px auto 42px; color: var(--text-dim); font-size: 14px;
  text-align: center; flex-wrap: wrap;
}
.checkout-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: stretch;
}
.checkout-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 410px; padding: 34px 30px 30px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.checkout-card::before {
  content: ""; position: absolute; width: 260px; height: 260px;
  right: -130px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 67%);
  pointer-events: none;
}
.checkout-card.bundle {
  background: var(--text); color: #0a0c12; border-color: transparent;
  box-shadow: 0 28px 70px rgba(0,0,0,0.42);
}
.checkout-card.bundle::before {
  background: radial-gradient(circle, rgba(10,12,18,0.12), transparent 67%);
}
@media (hover: hover) {
  .checkout-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.25); }
}
.checkout-label {
  color: var(--text-faint); font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.checkout-card.bundle .checkout-label { color: #626973; }
.checkout-card h3 { font-size: 25px; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 10px; }
.checkout-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin-bottom: 24px;
}
.checkout-price .amount {
  font-size: 34px; font-weight: 800; letter-spacing: -0.035em;
  line-height: 1; color: var(--text);
}
.checkout-price .once { font-size: 13.5px; color: var(--text-faint); }
.checkout-price .save {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 12, 18, 0.1); color: #0a0c12;
}
.checkout-card.bundle .checkout-price .amount { color: #0a0c12; }
.checkout-card.bundle .checkout-price .once { color: #626973; }
.checkout-card ul { list-style: none; margin-bottom: 28px; }
.checkout-card li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  color: var(--text-dim); font-size: 14.5px;
}
.checkout-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.checkout-card.bundle li { color: #464e58; }
.checkout-card.bundle li::before { color: #0a0c12; }
.checkout-action { margin-top: auto; }
.checkout-button {
  width: 100%; justify-content: center; padding: 13px 18px;
  border-radius: 12px; background: var(--text); color: #0a0c12;
  border: 1px solid transparent; font-size: 14.5px; font-weight: 750;
  font-family: inherit;
}
.checkout-card:not(.bundle) .checkout-button {
  background: rgba(255,255,255,0.06); color: var(--text);
  border-color: rgba(255,255,255,0.16);
}
.checkout-card.bundle .checkout-button { background: #0a0c12; color: #fff; }
.checkout-meta {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: 30px; color: var(--text-faint); font-size: 12.5px; text-align: center;
}
.checkout-meta span { display: inline-flex; align-items: center; gap: 7px; }
.checkout-meta span::before { content: "✓"; color: var(--text-dim); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details {
  border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; background: var(--bg-card);
  overflow: hidden;
}
summary {
  cursor: pointer; padding: 20px 24px;
  font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- Final CTA ---------- */
.final {
  text-align: center; padding: 130px 24px 120px;
  position: relative; overflow: hidden;
}
.final-glow {
  position: absolute; bottom: -320px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 620px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06), transparent 65%);
  pointer-events: none;
}
.giant {
  position: absolute; right: -0.15em; bottom: -0.18em; z-index: 0;
  font-size: clamp(140px, 26vw, 320px); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09);
  pointer-events: none; user-select: none;
}
.final img, .final h2, .final p, .final .store-badges, .final .final-ctas { position: relative; z-index: 1; }
.final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.final img { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.final h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
.final p { color: var(--text-dim); font-size: 18px; max-width: 520px; margin: 0 auto 38px; }
.store-badges {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.store-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 13px;
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text); text-decoration: none; text-align: left;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.store-badge:nth-child(1) { rotate: -1deg; }
.store-badge:nth-child(2) { rotate: 0.8deg; }
.store-badge:nth-child(3) { rotate: -0.6deg; }
.store-badge:nth-child(4) { rotate: 1.1deg; }
.store-badge:not(.soon):hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px); rotate: 0deg;
}
.store-badge svg { flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge small { font-size: 11px; color: var(--text-dim); }
.store-badge b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* No store listing to point at yet, so the badges sit here as placeholders */
.store-badge.soon {
  cursor: default;
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.07);
  border-style: dashed;
  color: var(--text-faint);
}
.store-badge.soon svg { opacity: 0.45; }
.store-badge.soon small { color: rgba(255, 255, 255, 0.26); }
.soon-tag {
  font-style: normal; font-size: 10px; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px; padding: 4px 8px;
}
.final .store-note {
  max-width: 560px; margin: 28px auto 0;
  font-size: 14px; color: var(--text-faint);
}
.final .store-note a {
  color: var(--text-dim);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.final .store-note a:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-weight: 600; }
.foot-brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--text-faint); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--text-faint); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: 0.08s; }
html.js .reveal.d2 { transition-delay: 0.16s; }
html.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .dot, .nav-eq i, .phone-stage::before, .cx-eq i { animation: none; }
  html.js .hero-copy > *, html.js .phone-stage { animation: none; }
  .gal-panels, .gal-panel { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .feat.a { grid-column: span 12; grid-row: auto; rotate: 0; }
  .feat.b, .feat.c { grid-column: span 6; rotate: 0; }
  .feat.d, .feat.e, .feat.f { grid-column: span 4; rotate: 0; margin-top: 0; }
  .sec-head.split { grid-template-columns: 1fr; gap: 8px 0; }
  .sec-head.split .sec-copy { justify-self: start; text-align: left; }
  .sec-index { font-size: 72px; }
}
@media (max-width: 940px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-aside { min-height: auto; justify-content: center; }
  .phone-stage { margin-right: 0; margin-bottom: 0; transform: rotate(2deg); }
  h1 { max-width: none; font-size: clamp(42px, 11vw, 64px); }
  .steps::before { left: 20px; }
  .step { grid-template-columns: 1fr; gap: 12px; padding-left: 48px; }
  .step:nth-child(odd) .step-body,
  .step:nth-child(even) .step-body {
    justify-self: stretch; max-width: none; rotate: 0; grid-column: 1; grid-row: auto;
  }
  .step:nth-child(odd) .step-marker,
  .step:nth-child(even) .step-marker {
    grid-column: 1; grid-row: auto; justify-self: start; text-align: left;
    padding: 0; flex-direction: row; align-items: baseline; gap: 14px;
  }
  .step-marker::after {
    left: -33.5px !important; right: auto !important;
    top: 22px; transform: none;
  }
  .step-num { font-size: 36px; margin-bottom: 0; }
  .connect-panel { grid-template-columns: 1fr; padding: 48px 28px; gap: 40px; rotate: 0deg; }
  /* Keep the overlapping cluster on tablet/phone — just scale it */
  #platforms { padding-bottom: 64px; }
  .stage {
    height: clamp(280px, 62vw, 440px);
    margin: 8px auto 40px;
    max-width: none;
    padding-bottom: 6%;
  }
  .stage-tv {
    left: 0; top: 10%;
    width: 66%;
    rotate: -1.2deg;
  }
  .stage-desktop {
    right: -1%; top: 2%;
    width: 54%;
    rotate: 2deg;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.65));
  }
  .stage-phone {
    left: 36%; bottom: -2%;
    width: 20%;
    min-width: 86px;
    max-width: 140px;
    rotate: -3.5deg;
  }
  .tv-frame { padding: 9px; border-radius: 12px; }
  .tv-frame .swap { border-radius: 5px; }
  .mini-phone { border-radius: 18px; padding: 5px; }
  .mini-phone .swap { border-radius: 14px; }
  .stage-ctrl { gap: 16px; margin-bottom: 14px; }
  .arrow { width: 48px; height: 48px; }
  .dots { gap: 12px; }
  .dot-btn {
    width: 12px; height: 12px;
    /* expand hit area without growing the visible dot */
    box-shadow: 0 0 0 10px transparent;
  }
  .stage-caption {
    font-size: 14.5px;
    margin: 0 auto 44px;
    line-height: 1.45;
  }
  .plat-grid { grid-template-columns: 1fr 1fr; }
  .plat {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 22px;
  }
  .plat:nth-child(2n) { border-right: none; }
  .plat:nth-child(n+3) { border-bottom: none; }
  .gallery { margin-top: 56px; }
  .gal-rail { gap: 18px; }
  .gal-bar { width: min(380px, 76%); }
  .shot-desktop, .shot-tv { width: min(500px, 84vw); }
  .plat .p-icon { margin-bottom: 12px; }
  .plat .p-icon svg { width: 26px; height: 26px; }
  .plat h3 { font-size: 16px; }
  .plat p { font-size: 13px; }
  .oss { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .checkout-card { min-height: 0; }
  .checkout-card.bundle { rotate: 0deg; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat.a, .feat.b, .feat.c, .feat.d, .feat.e, .feat.f { grid-column: auto; }
  header { padding-top: 110px; min-height: auto; }
  section { padding: 72px 0; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: flex-start; rotate: 0 !important; }
  .connect-panel { padding: 36px 22px; }
  .cx-demo { padding: 18px 16px 14px; }
  /* On a phone the art and the tags leave the text too little room, so the
     "Playing on ..." pill spills out of the card and the rows wrap ragged. */
  .cx-now { gap: 12px; padding: 12px; }
  .cx-art { width: 54px; height: 54px; border-radius: 9px; padding-bottom: 8px; }
  .cx-trackline { gap: 5px 8px; }
  .cx-live { white-space: normal; font-size: 10px; padding: 3px 8px; }
  .cx-device { gap: 10px; padding: 11px 13px; }
  .cx-device .d-icon { width: 22px; }
  .cx-dmeta b, .cx-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cx-tag { font-size: 10px; padding: 4px 9px; }
  .connect-showcase { margin-top: 64px; }
  .showcase-bridge { font-size: 15px; }
  .checkout-card { padding: 28px 24px 24px; }
  .checkout-intro { margin-top: -20px; }
  #platforms { padding-bottom: 48px; }
  .stage {
    height: min(78vw, 360px);
    margin: 4px auto 32px;
    padding-bottom: 8%;
  }
  .stage-tv {
    left: -2%; top: 12%;
    width: 72%;
    rotate: -1deg;
  }
  .stage-desktop {
    right: -5%; top: 4%;
    width: 60%;
    rotate: 1.8deg;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
  }
  .stage-phone {
    left: 32%; bottom: 0;
    width: 26%;
    min-width: 78px;
    max-width: 112px;
    rotate: -3deg;
  }
  .tv-frame {
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
  .mini-phone {
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  }
  .mini-phone .swap { border-radius: 11px; }
  .stage-ctrl { gap: 14px; }
  .arrow { width: 46px; height: 46px; font-size: 16px; }
  .stage-caption {
    font-size: 13.5px;
    margin: 0 auto 36px;
    max-width: 34ch;
  }
  .gallery { margin-top: 44px; }
  .gal-tabs { gap: 6px; margin-bottom: 22px; }
  .gal-tab { font-size: 13px; padding: 8px 15px; gap: 7px; }
  .gal-tab svg { width: 15px; height: 15px; }
  .gal-rail { gap: 16px; padding: 10px 2px 4px; }
  .gal-bar { width: min(300px, 78%); margin-top: 12px; height: 7px; }
  .gal-bar i { height: 7px; }
  .shot-phone { width: 168px; }
  .shot-phone .shot-frame { border-radius: 20px; padding: 4px; }
  .shot-phone .shot-frame img { border-radius: 16px; }
  .shot-desktop, .shot-tv { width: 86vw; }
  .shot-tv .shot-frame { padding: 7px; border-radius: 11px; }
  .shot figcaption { font-size: 12px; margin-top: 11px; }
  /* Keep 2×2 strip (not a single column) so it still feels like one panel */
  .plat {
    padding: 20px 16px;
  }
  .plat .p-icon { margin-bottom: 10px; }
  .plat .p-icon svg { width: 24px; height: 24px; }
  .plat h3 { font-size: 15px; margin-bottom: 4px; }
  .plat p { font-size: 12.5px; line-height: 1.45; }
  h2 br { display: none; }
  .wrap, .wrap-wide { padding: 0 16px; }
}
@media (max-width: 380px) {
  .stage {
    height: min(88vw, 320px);
  }
  .stage-phone {
    width: 28%;
    min-width: 70px;
    left: 30%;
  }
  .plat { padding: 18px 14px; }
  .plat p { font-size: 12px; }
}

/* ---------- Download page ---------- */
.dl-head {
  position: relative; overflow: hidden;
  padding: 150px 0 70px; text-align: center;
}
.dl-head .hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07), transparent 65%);
  pointer-events: none;
}
.dl-head .wrap { position: relative; z-index: 1; }
.dl-head h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin-bottom: 18px;
}
.dl-head h1 em { font-style: italic; color: var(--text-dim); }
.dl-head .dl-sub {
  color: var(--text-dim); font-size: 18px;
  max-width: 620px; margin: 0 auto;
}

/* The three-step explainer: download, install, activate */
.dl-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; max-width: 900px; margin: 44px auto 0;
  text-align: left;
}
.dl-step {
  position: relative; padding: 22px 22px 20px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 18px;
}
.dl-step b {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.dl-step p { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.dl-step p strong { color: var(--text); font-weight: 600; }

section.dl-sec { padding: 76px 0; }
.dl-sec .sec-head { margin-bottom: 38px; }

.dl-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: stretch;
}
.dl-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 26px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.dl-card::before {
  content: ""; position: absolute; width: 240px; height: 240px;
  right: -130px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 67%);
  pointer-events: none;
}
@media (hover: hover) {
  .dl-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); }
}
/* Highlights the platform the visitor is actually on */
.dl-card.is-you { border-color: rgba(255,255,255,0.3); }
.dl-you-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 9px;
}
.dl-card .dl-icon { margin-bottom: 16px; color: var(--text); opacity: 0.9; }
.dl-card h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 6px; }
.dl-req { color: var(--text-faint); font-size: 13px; margin-bottom: 22px; }
.dl-card .dl-action { margin-top: auto; }
.dl-card .btn { width: 100%; justify-content: center; }
.dl-size {
  display: block; text-align: center;
  color: var(--text-faint); font-size: 12px; margin-top: 10px;
}
.dl-alt {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-dim);
}
.dl-alt a { color: var(--text-dim); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); }
.dl-alt a:hover { color: var(--text); }

.dl-sums { margin-top: 12px; }
.dl-sums summary {
  cursor: pointer; list-style: none;
  font-size: 12.5px; color: var(--text-faint);
  transition: color 0.2s;
}
.dl-sums summary::-webkit-details-marker { display: none; }
.dl-sums summary::before { content: "+ "; font-weight: 700; }
.dl-sums[open] summary::before { content: "– "; }
.dl-sums summary:hover { color: var(--text-dim); }
.dl-sums code {
  display: block; margin-top: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; line-height: 1.55; color: var(--text-faint);
  word-break: break-all;
}
.dl-sums code b { display: block; color: var(--text-dim); font-weight: 600; margin-top: 7px; }
.dl-sums code b:first-child { margin-top: 0; }

.dl-note {
  margin-top: 26px; color: var(--text-faint); font-size: 14px;
  max-width: 760px;
}
.dl-note a { color: var(--text-dim); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); }
.dl-note a:hover { color: var(--text); }

/* Free server / CLI row */
.dl-server {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 34px 34px 32px;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 24px;
}
.dl-server h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.dl-server p { color: var(--text-dim); font-size: 15px; max-width: 620px; }
.dl-server .dl-server-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-code {
  margin-top: 16px; padding: 12px 14px;
  background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; color: var(--text-dim); overflow-x: auto;
}

/* Licence band */
.dl-lic {
  text-align: center; padding: 48px 34px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 24px;
}
.dl-lic h3 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.03em; margin-bottom: 12px; }
.dl-lic p { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto 26px; }
.dl-lic-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 940px) {
  .dl-steps { grid-template-columns: 1fr; max-width: 560px; }
  .dl-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .dl-server { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dl-head { padding: 120px 0 50px; }
  section.dl-sec { padding: 56px 0; }
  .dl-server { padding: 26px 22px 24px; }
  .dl-lic { padding: 36px 22px; }
}

/* ---------- Prices in the closing band (full cards live on download.html) ---------- */
.final-prices {
  position: relative; z-index: 1;
  list-style: none;
  display: flex; flex-wrap: wrap;
  margin: 0 auto 34px; max-width: 700px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
}
/* Price above label, so a two-line label never knocks a price off the
   shared baseline the way "Server, CLI & phone" did. */
.final-prices li {
  flex: 1 1 0; min-width: 140px;
  display: flex; flex-direction: column-reverse; align-items: center;
  gap: 7px; padding: 20px 16px 17px;
  box-shadow: inset 1px 0 0 var(--line);
}
.final-prices li:first-child { box-shadow: none; }
.final-prices li span {
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700; text-align: center;
  line-height: 1.35;
}
.final-prices li b {
  font-size: 25px; font-weight: 800; letter-spacing: -0.035em;
  color: var(--text); line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* The palette is monochrome (--accent is the same white as --text), so the
   free tier is set apart by lifting its surface, not by colouring the price. */
.final-prices li.is-free { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 700px) {
  .final-prices { max-width: 330px; }
  .final-prices li { flex: 1 1 50%; min-width: 0; padding: 17px 12px 15px; }
  .final-prices li b { font-size: 21px; }
  .final-prices li:nth-child(odd) { box-shadow: none; }
  .final-prices li:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--line); }
  .final-prices li:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
}

/* ---------- Cross-document page transitions ---------- */
/* Chromium and Safari animate the navigation; everywhere else this is inert
   and the page simply loads as before. */
@view-transition { navigation: auto; }

/* The nav is identical on both pages, so it holds still while the body swaps. */
nav { view-transition-name: site-nav; }

::view-transition-old(root) { animation: vt-out 150ms ease both; }
::view-transition-new(root) { animation: vt-in 260ms ease both; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
