:root {
  --bg: #05060c;
  --bg-elev: #0c0d14;
  --accent: #7c5cfc;
  --accent-light: #9b7ffe;
  --text: #f8f6ff;
  --muted: rgba(248, 246, 255, 0.55);
  --dim: rgba(248, 246, 255, 0.32);
  --border: rgba(255, 255, 255, 0.18);
  --blue: #5aa0ff;
  --red: #ff4d6d;
  --warm: #ff783c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --max: 960px;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  --glass-blur: blur(28px) saturate(180%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }

/* Shared iOS glass surface */
.glass,
.dm-card,
.song-card,
.board-artifact,
.out-card,
.output-preview,
.final-inner,
.modal-panel,
.type-chip,
.ask-compose,
.ask-chips button,
.marquee-track span,
.ig-bubble.in,
.ig-share-preview,
.send-pill,
.playlist-tracks li,
.out-rows li,
.nav,
.btn.ghost {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: rgba(255, 255, 255, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

/* Logo: keep natural aspect (527×613), no crop */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 46px;
  padding: 3px;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 92, 252, 0.25);
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.brand-mark.sm { width: 28px; height: 32px; border-radius: 8px; padding: 2px; }
.brand-mark.lg {
  width: 52px; height: 60px; border-radius: 14px; padding: 4px;
  margin: 0 auto 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, #9b7aff 0%, #7c5cfc 45%, #5a3fd4 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 92, 252, 0.35);
}
.btn.ghost {
  color: var(--text);
}
.btn.ghost.soon {
  color: rgba(248, 246, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn.block { width: 100%; }
.waitlist-trigger {
  background: linear-gradient(135deg, #9b7aff 0%, #7c5cfc 45%, #5a3fd4 100%);
  color: #fff;
}

/* —— Fixed bottom burst (app ExploreBottomGlow / homescreen) —— */
.bottom-burst {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(62vh, 520px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.burst {
  position: absolute;
  inset: 0;
  transform: translate(0, 4px) scale(1);
  opacity: 1;
}
.burst.purple {
  background: radial-gradient(
    ellipse 70% 85% at 50% 105%,
    rgba(124, 92, 252, 0.72) 0%,
    rgba(155, 122, 255, 0.45) 28%,
    rgba(124, 92, 252, 0.18) 52%,
    transparent 72%
  );
}
.burst.blue {
  background: radial-gradient(
    ellipse 55% 70% at 78% 100%,
    rgba(90, 160, 255, 0.55) 0%,
    rgba(90, 180, 255, 0.28) 40%,
    transparent 70%
  );
}
.burst.warm {
  background: radial-gradient(
    ellipse 50% 65% at 22% 100%,
    rgba(255, 100, 50, 0.48) 0%,
    rgba(255, 77, 109, 0.28) 35%,
    transparent 68%
  );
}

/* —— Overview stage —— */
.overview-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 0 1.5rem;
  overflow: hidden;
  background: #05060c;
}

.galaxy-zone {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: min(42vh, 380px);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.galaxy-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.overview-dock {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  width: min(640px, calc(100% - 24px));
  margin: 0.25rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.overview-copy {
  text-align: center;
  padding: 0 0.25rem;
}
.problem {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.overview-copy h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 3.8vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.22;
}
.solution {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Phone: map fills the mid band; prompt docks below without covering it */
@media (max-width: 719px) {
  .overview-stage {
    padding-bottom: 0;
  }
  .galaxy-zone {
    position: absolute;
    left: 0;
    right: 0;
    top: 4.25rem;
    bottom: 14.5rem;
    flex: none;
    min-height: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    z-index: 1;
  }
  .overview-dock {
    position: absolute;
    left: 50%;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(640px, calc(100% - 20px));
    margin: 0;
    gap: 0.65rem;
    z-index: 5;
    pointer-events: none;
  }
  .overview-dock .ask-bubble,
  .overview-dock .cta-row,
  .overview-dock .btn {
    pointer-events: auto;
  }
  .overview-copy .solution,
  .overview-copy .problem {
    display: none;
  }
  .overview-copy h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.25rem, 6.5vw, 1.55rem);
    text-shadow: 0 2px 24px rgba(5, 6, 12, 0.85);
  }
  .overview-copy .cta-row {
    margin-bottom: 0.1rem;
  }
  .ask-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .ask-chips::-webkit-scrollbar { display: none; }
  .ask-chips button { flex: 0 0 auto; }
}

/* Glowing Ask bubble · vault overview prompt */
.ask-bubble {
  position: relative;
  z-index: 6;
  width: 100%;
}
.ask-bubble-glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(
    120deg,
    rgba(124, 92, 252, 0.15),
    rgba(180, 140, 255, 0.65),
    rgba(90, 180, 255, 0.35),
    rgba(255, 77, 109, 0.25),
    rgba(124, 92, 252, 0.15)
  );
  filter: blur(0.5px);
  opacity: 0.9;
  z-index: 0;
}
.ask-compose {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 16px 48px rgba(80, 50, 180, 0.28),
    0 4px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.ask-compose::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(124, 92, 252, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(90, 160, 255, 0.18) 0%, transparent 50%);
  opacity: 0.92;
  pointer-events: none;
}
.ask-sparkle {
  position: absolute;
  top: 12px; right: 16px;
  color: rgba(180, 150, 255, 0.55);
  font-size: 14px;
  opacity: 0.7;
  z-index: 2;
}
.ask-live {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  min-height: 1.4em;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}
.ask-live:empty::before {
  content: "Ask anything…";
  color: var(--dim);
}
.ask-send {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-width: 72px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #9b7aff 0%, #7c5cfc 45%, #5a3fd4 100%);
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.ask-chips button {
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ask-chips button:hover,
.ask-chips button.is-on {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
}

/* —— Content bands —— */
.band {
  position: relative;
  z-index: 1;
  padding: 4.5rem 1.25rem;
  border-top: 1px solid var(--border);
}
.band-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.band h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 28rem;
}
.lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}
@media (max-width: 719px) {
  .lead,
  .dm-step > p,
  .song-step > p,
  .final-inner p,
  .out-hint {
    font-size: 0.92rem;
  }
  .band h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    max-width: 20rem;
  }
}

.why {
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(255, 77, 109, 0.08), transparent 55%),
    var(--bg);
}

/* —— Save marquee —— */
.save-marquee {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 1.75rem;
  border-block: 1px solid var(--border);
  background: rgba(124, 92, 252, 0.06);
  overflow: hidden;
}
.marquee-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row + .marquee-row { margin-top: 0.65rem; }
.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee-left 42s linear infinite;
}
.marquee-row--alt .marquee-track {
  animation-name: marquee-right;
  animation-duration: 48s;
}
.marquee-track span {
  flex-shrink: 0;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  white-space: nowrap;
}
.marquee-row--alt .marquee-track span {
  color: rgba(248, 246, 255, 0.78);
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* —— Instagram DM → board (horizontal) —— */
.dm-band { padding-bottom: 3.5rem; }
.dm-band .band-inner { margin-bottom: 1.75rem; }
.dm-rail {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  overflow-x: auto;
  padding: 0 1.25rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 1100px;
  margin: 0 auto;
}
.dm-rail::-webkit-scrollbar { height: 6px; }
.dm-rail::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.35);
  border-radius: 999px;
}
.dm-step {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dm-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-light);
}
.dm-step h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.dm-step > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.dm-card {
  border-radius: 18px;
  min-height: 220px;
  overflow: hidden;
}
.ig-phone { padding: 1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.ig-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ig-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.ig-header strong { display: block; font-size: 0.9rem; }
.ig-header small { color: var(--dim); font-size: 0.72rem; }
.ig-thread { display: grid; gap: 0.5rem; }
.ig-bubble {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.ig-bubble.in {
  justify-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
.ig-bubble.out {
  justify-self: end;
  background: linear-gradient(135deg, #7c5cfc, #5a3fd4);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.35);
}
.ig-share-preview {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  animation: share-in 2.8s ease-in-out infinite;
}
.ig-thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(160deg, #c4a8ff, #5aa0ff);
  flex-shrink: 0;
}
@keyframes share-in {
  0%, 100% { opacity: 0.55; transform: translateY(4px); }
  40%, 70% { opacity: 1; transform: none; }
}

.pulse-card {
  display: grid;
  place-items: center;
  position: relative;
  background: var(--glass-bg);
}
.song-card {
  border-radius: 18px;
  min-height: 220px;
  overflow: hidden;
}
.pulse-ring {
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 252, 0.45);
  animation: pulse-expand 2.2s ease-out infinite;
}
@keyframes pulse-expand {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}
.pulse-core {
  width: 64px; height: 72px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(124, 92, 252, 0.35);
  z-index: 1;
}
.pulse-core img { width: 40px; height: 46px; object-fit: contain; }
.pulse-label {
  position: absolute;
  bottom: 1.1rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent-light);
}

.board-mini { padding: 0.85rem; }
.board-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
  min-height: 188px;
}
.bmp { border-radius: 12px; }
.bmp.a { background: linear-gradient(160deg, #f7c6de, #c4a8ff); }
.bmp.b {
  background: linear-gradient(160deg, #b8f0e8, #5aa0ff);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.bmp.c { background: linear-gradient(160deg, #ffe0c2, #ffb088); min-height: 70px; }
.bmp.d { background: linear-gradient(160deg, #b8d4ff, #7c5cfc); }
.bmp.arriving {
  animation: arrive-pin 1.8s ease-in-out infinite;
}
@keyframes arrive-pin {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(90, 160, 255, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(90, 160, 255, 0); }
}

.dm-arrow {
  flex: 0 0 28px;
  display: none;
  align-items: center;
  justify-content: center;
}
.dm-arrow span {
  width: 28px; height: 2px;
  background: linear-gradient(90deg, rgba(124, 92, 252, 0.2), rgba(124, 92, 252, 0.85));
  position: relative;
  border-radius: 999px;
}
.dm-arrow span::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid rgba(196, 168, 255, 0.9);
  border-top: 2px solid rgba(196, 168, 255, 0.9);
  transform: translateY(-50%) rotate(45deg);
}

@media (min-width: 900px) {
  .dm-rail {
    overflow: visible;
    padding-inline: 1.5rem;
    gap: 1rem;
  }
  .dm-step { flex: 1 1 0; min-width: 0; }
  .dm-arrow { display: flex; }
  .song-rail {
    overflow: visible;
    padding-inline: 1.5rem;
    gap: 1rem;
  }
  .song-step { flex: 1 1 0; min-width: 0; }
}

/* —— Instagram song → playlist —— */
.song-band { padding-bottom: 3.5rem; }
.song-band .band-inner { margin-bottom: 1.75rem; }
.song-rail {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  overflow-x: auto;
  padding: 0 1.25rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 1100px;
  margin: 0 auto;
}
.song-rail::-webkit-scrollbar { height: 6px; }
.song-rail::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.35);
  border-radius: 999px;
}
.song-step {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.song-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-light);
}
.song-step h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.song-step > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.song-card {
  border-radius: 18px;
  min-height: 220px;
  overflow: hidden;
}
.reel-card { padding: 0; }
.reel-frame {
  position: relative;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 77, 109, 0.2), transparent 55%),
    radial-gradient(ellipse at 50% 70%, rgba(124, 92, 252, 0.18), transparent 50%),
    rgba(255, 255, 255, 0.04);
}
.reel-wave {
  position: absolute;
  width: 140px; height: 140px;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.4), transparent 65%);
  pointer-events: none;
}
.reel-meta {
  position: relative;
  z-index: 1;
  order: 2;
}
.reel-meta strong { display: block; font-size: 0.95rem; }
.reel-meta span { color: var(--muted); font-size: 0.8rem; }
.reel-equalizer {
  position: relative;
  z-index: 1;
  order: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 48px;
}
.reel-equalizer i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c4a8ff, #1db954);
  transform-origin: bottom center;
  animation: eq 1s ease-in-out infinite;
}
.reel-equalizer i:nth-child(1) { height: 40%; animation-delay: 0s; }
.reel-equalizer i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.reel-equalizer i:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.reel-equalizer i:nth-child(4) { height: 55%; animation-delay: 0.08s; }
.reel-equalizer i:nth-child(5) { height: 80%; animation-delay: 0.2s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.send-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  position: relative;
}
.send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.send-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
}
.send-pill--on {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(124, 92, 252, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 20px rgba(124, 92, 252, 0.3);
  animation: share-pulse 2.2s ease-in-out infinite;
}
.send-pill--on img { width: 16px; height: 18px; object-fit: contain; }
@keyframes share-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.send-fly {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1db954;
  animation: share-in 2.8s ease-in-out infinite;
}

.playlist-card { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.playlist-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.spot-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1db954;
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.45);
}
.playlist-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.playlist-tracks li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 550;
}
.playlist-tracks li span:first-child { color: var(--dim); width: 1rem; }
.playlist-tracks li.is-new {
  border-color: rgba(29, 185, 84, 0.45);
  background: rgba(29, 185, 84, 0.14);
  animation: arrive-pin 1.8s ease-in-out infinite;
}

/* Board artifact */
.type-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1.25rem;
}
.type-chip {
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
}
.type-chip.is-on {
  color: #fff;
  background: rgba(124, 92, 252, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 20px rgba(124, 92, 252, 0.35);
}

.board-artifact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 280px;
  padding: 14px;
  border-radius: 20px;
}
.board-col { display: flex; flex-direction: column; gap: 10px; }
.pin-card {
  border-radius: 14px;
  padding: 12px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  animation: pin-in 0.45s ease both;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
@keyframes pin-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.pin-card .badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.pin-card .title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.pin-card.tall { min-height: 140px; }
.pin-card.mid { min-height: 110px; }

/* Outputs */
.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.5rem 0 1rem;
}
.out-card {
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  color: var(--text);
  display: grid;
  gap: 0.2rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.out-card:hover { transform: translateY(-2px); }
.out-card.is-on {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(124, 92, 252, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px rgba(80, 50, 180, 0.28);
}
.out-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.out-card strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.out-hint { font-size: 0.85rem; color: var(--muted); }

.output-preview {
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  min-height: 160px;
}
.output-preview h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.out-rows { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.out-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  animation: pin-in 0.4s ease both;
}
.out-rows li span:last-child { color: var(--muted); }
.out-rows li:nth-child(2) { animation-delay: 0.06s; }
.out-rows li:nth-child(3) { animation-delay: 0.12s; }
.out-rows li:nth-child(4) { animation-delay: 0.18s; }

.final {
  border-top: 1px solid var(--border);
  padding-bottom: 4rem;
}
.final-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 25% 100%, rgba(255, 77, 109, 0.12), transparent 50%),
    radial-gradient(ellipse at 75% 100%, rgba(90, 160, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 92, 252, 0.16), transparent 55%),
    var(--glass-bg-strong);
}
.final-inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  max-width: none;
}
.final-inner p { margin: 0 0 1.35rem; color: var(--muted); }

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text);
}
.site-footer p { margin: 0.35rem 0; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  animation: modal-in 0.35s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.85rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}
.modal-panel h2 { margin: 0 0 0.4rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.modal-lead { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.92rem; }
#waitlistForm { display: grid; gap: 0.85rem; }
#waitlistForm label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 650; color: var(--muted); }
#waitlistForm label em { font-style: normal; font-weight: 500; color: var(--dim); }
#waitlistForm input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
#waitlistForm input:focus {
  outline: none;
  border-color: rgba(124, 92, 252, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2);
}
.hp { position: absolute !important; left: -9999px !important; height: 0 !important; overflow: hidden !important; }
.form-error { margin: 0; color: #ff6b6b; font-size: 0.85rem; }
.form-fine { margin: 0; text-align: center; font-size: 0.75rem; color: var(--dim); }
.modal-success { text-align: center; }
.modal-success h3 { margin: 0.5rem 0; font-size: 1.3rem; }
.modal-success p { margin: 0 0 1.25rem; color: var(--muted); }
.success-burst {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.55), transparent 70%);
}

/* Legal pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.prose h1 { font-size: 1.85rem; letter-spacing: -0.02em; margin-top: 0; }
.prose h2 { font-size: 1.1rem; margin-top: 2rem; }
.prose h3 { font-size: 0.95rem; margin-top: 1.25rem; color: var(--text); }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25rem; }
.prose code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 720px) {
  .nav { padding: 0.95rem 2rem; }
  .galaxy-zone { min-height: min(48vh, 440px); }
  .overview-copy h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
  .output-grid { grid-template-columns: repeat(3, 1fr); }
  .board-artifact { min-height: 320px; padding: 16px; gap: 12px; }
}
@media (min-width: 1100px) {
  .output-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee-track { animation: none !important; transform: none !important; }
}
