:root {
  color-scheme: dark;
  --sb-bg: #050403;
  --sb-ink: #fff7e8;
  --sb-soft: rgba(255, 247, 232, .72);
  --sb-muted: rgba(255, 247, 232, .54);
  --sb-line: rgba(255, 247, 232, .17);
  --sb-gold: #f2b94b;
  --sb-cyan: #44d7ff;
  --sb-fire: #ff4e36;
  --sb-mint: #8ff0a4;
  --sb-violet: #c896ff;
  --sb-panel: rgba(6, 6, 6, .72);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--sb-bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--sb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 247, 232, .034) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 247, 232, .03) 1px, transparent 1px),
    radial-gradient(circle at 14% 12%, rgba(242, 185, 75, .18), transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(68, 215, 255, .14), transparent 32%),
    linear-gradient(180deg, #050403 0%, #130706 50%, #050403 100%);
  background-size: 74px 74px, 74px 74px, auto, auto, auto;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  opacity: .18;
  background-image: url("../media/hero-night.webp");
  background-position: center top;
  background-size: cover;
  filter: saturate(1.08) contrast(1.12);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .92), transparent 72%);
}

body::after {
  opacity: .16;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 20%, transparent 28%, rgba(0, 0, 0, .62) 75%, #000 100%);
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 247, 232, .16);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--sb-ink);
  background: rgba(0, 0, 0, .36);
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

form {
  display: grid;
  gap: 10px;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sb-cyan);
  outline-offset: 3px;
}

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

.supaboy-page {
  position: relative;
  isolation: isolate;
}

.supaboy-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px clamp(14px, 3vw, 38px);
  border-bottom: 1px solid var(--sb-line);
  background: rgba(3, 3, 3, .86);
  backdrop-filter: blur(18px);
}

.sb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 1000;
  letter-spacing: 0;
}

.sb-brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #080604;
  background: linear-gradient(135deg, #fff7d4, var(--sb-gold), var(--sb-cyan));
  box-shadow: 0 0 24px rgba(242, 185, 75, .22);
}

.supaboy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.sb-button,
.supaboy-nav a,
.supaboy-nav button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 247, 232, .18);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--sb-ink);
  background: rgba(255, 255, 255, .055);
  font-weight: 900;
  line-height: 1;
}

.sb-button.primary,
.supaboy-nav .primary,
.supaboy-nav button.is-active {
  color: #090604;
  border-color: transparent;
  background: linear-gradient(90deg, #fff5c8, var(--sb-gold) 50%, var(--sb-cyan));
}

.sb-button[disabled],
.sb-button.disabled {
  opacity: .58;
  cursor: not-allowed;
}

.supaboy-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 38px) 76px;
  display: grid;
  gap: 16px;
}

.supaboy-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .66fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .38) 48%, rgba(0, 0, 0, .7)),
    var(--hero-image, url("../media/hero-night.webp")) center / cover;
}

.supaboy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 18%, rgba(242, 185, 75, .22), transparent 24%),
    radial-gradient(circle at 76% 42%, rgba(68, 215, 255, .18), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .06) 55%, rgba(0, 0, 0, .74));
}

.supaboy-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy,
.stage-panel {
  min-width: 0;
}

.hero-copy {
  display: grid;
  align-content: end;
  justify-items: start;
}

.sb-eyebrow,
.micro {
  margin: 0;
  color: var(--sb-gold);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.welcome-title {
  max-width: 860px;
  margin: 12px 0 16px;
  font-size: clamp(62px, 10vw, 150px);
  line-height: .78;
  letter-spacing: 0;
}

.welcome-title {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .92;
}

.hero-copy .welcome-title {
  max-width: 720px;
  font-size: clamp(42px, 5.25vw, 78px);
  line-height: .95;
}

.welcome-title span {
  display: block;
}

.welcome-title .wordmark-line {
  text-wrap: balance;
  word-spacing: .05em;
}

.sb-lede,
.lede {
  max-width: 760px;
  margin: 0;
  color: var(--sb-soft);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions,
.product-actions,
.card-actions,
.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.stage-panel {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  border: 1px solid rgba(255, 247, 232, .18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(3, 3, 3, .62);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
}

.stage-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.stage-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, .66)),
    radial-gradient(circle at 60% 28%, transparent 20%, rgba(0, 0, 0, .24));
}

.stage-caption {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--sb-line);
}

.stage-caption strong {
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: .96;
}

.stage-caption p {
  margin: 0;
  color: var(--sb-soft);
  line-height: 1.45;
}

.stage-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.stage-switcher button {
  min-width: 0;
  border: 1px solid rgba(255, 247, 232, .16);
  border-radius: 8px;
  padding: 10px 8px;
  color: var(--sb-ink);
  background: rgba(255, 255, 255, .055);
  font-weight: 950;
}

.stage-switcher button.is-active {
  color: #080604;
  border-color: transparent;
  background: linear-gradient(90deg, var(--sb-gold), var(--sb-cyan));
}

.metric-grid,
.product-metrics,
.workflow-grid,
.media-grid,
.record-grid,
.product-grid {
  display: grid;
  gap: 12px;
}

.metric-grid,
.product-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.world-card,
.record-card,
.media-card,
.product-card,
.workflow-card,
.receipt-card {
  min-width: 0;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  background: rgba(3, 3, 3, .62);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .22);
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  color: var(--sb-gold);
  font-size: clamp(32px, 4vw, 58px);
  line-height: .92;
  overflow-wrap: anywhere;
}

.metric-card.id-card strong {
  font-size: clamp(28px, 3.1vw, 42px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

.metric-card span {
  color: var(--sb-soft);
  font-weight: 850;
}

.pack-hero {
  min-height: min(700px, calc(100vh - 92px));
}

.app-grid,
.song-walkthrough-grid,
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.app-card,
.song-step-card,
.handoff-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: space-between;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 40%),
    rgba(3, 3, 3, .62);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .2);
}

.app-card h3,
.song-step-card h3,
.handoff-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
}

.app-card p,
.song-step-card p,
.handoff-card p {
  margin: 0;
  color: var(--sb-soft);
  line-height: 1.45;
}

.song-step-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #090604;
  background: linear-gradient(135deg, var(--sb-gold), var(--sb-cyan));
  font-weight: 1000;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 100%;
  border: 1px solid rgba(255, 247, 232, .18);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--sb-gold);
  background: rgba(0, 0, 0, .44);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.email-draft {
  white-space: pre-wrap;
  border: 1px solid rgba(255, 247, 232, .14);
  border-radius: 8px;
  padding: 16px;
  color: var(--sb-soft);
  background: rgba(0, 0, 0, .36);
  line-height: 1.5;
}

.section-band {
  display: grid;
  gap: 18px;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 34%),
    rgba(0, 0, 0, .42);
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 900px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 86px);
  line-height: .9;
}

.section-head p {
  margin: 0;
  color: var(--sb-soft);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.45;
}

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

.record-card,
.media-card,
.product-card,
.workflow-card,
.receipt-card,
.world-card {
  padding: 16px;
}

.record-card {
  display: grid;
  align-content: space-between;
  min-height: 214px;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(242, 185, 75, .12), transparent 52%),
    rgba(0, 0, 0, .5);
}

.record-card span {
  color: var(--sb-gold);
  font-weight: 1000;
}

.record-card h3,
.product-card h3,
.workflow-card h3,
.world-card h3 {
  margin: 0;
  font-size: clamp(23px, 2.8vw, 42px);
  line-height: .96;
}

.record-card p,
.product-card p,
.workflow-card p,
.world-card p,
.receipt-card p {
  margin: 0;
  color: var(--sb-soft);
  line-height: 1.44;
}

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

.media-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  color: var(--sb-ink);
  text-align: left;
  background: #090806;
}

.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.media-card:hover img {
  transform: scale(1.04);
}

.media-card span,
.media-card strong {
  position: relative;
  z-index: 1;
}

.media-card span {
  display: inline-flex;
  color: #080604;
  border-radius: 8px;
  padding: 6px 8px;
  background: linear-gradient(90deg, var(--sb-gold), var(--sb-cyan));
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.media-card strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  font-size: 28px;
  line-height: .95;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .9);
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .74));
}

.product-hero {
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
}

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

.product-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(68, 215, 255, .10), transparent 42%),
    rgba(0, 0, 0, .54);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / .72;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  object-fit: cover;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(242, 185, 75, .34);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--sb-gold);
  background: rgba(242, 185, 75, .08);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.product-room-layout {
  display: grid;
  grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
  gap: 14px;
}

.product-roster,
.product-detail {
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .56);
  padding: 16px;
}

.product-roster {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-roster button {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 247, 232, .15);
  border-radius: 8px;
  padding: 12px;
  color: var(--sb-ink);
  background: rgba(255, 255, 255, .045);
  text-align: left;
}

.product-roster button.is-active {
  color: #080604;
  background: linear-gradient(90deg, var(--sb-gold), var(--sb-cyan));
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
  gap: 18px;
  align-items: stretch;
}

.product-detail h2 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .9;
  overflow-wrap: anywhere;
}

.product-detail img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  object-fit: cover;
}

.product-status-line {
  display: block;
  margin-top: 12px;
  color: var(--sb-gold);
  font-weight: 900;
}

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

.workflow-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
}

.workflow-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #080604;
  background: linear-gradient(135deg, var(--sb-gold), var(--sb-cyan));
  font-weight: 1000;
}

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

.receipt-card strong {
  display: block;
  margin: 8px 0;
  color: var(--sb-gold);
  font-size: clamp(26px, 3vw, 46px);
  line-height: .98;
  overflow-wrap: anywhere;
}

.world-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.world-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  margin: 0;
  display: grid;
  gap: 10px;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 150px);
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  object-fit: contain;
  background: #050403;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--sb-soft);
}

.lightbox-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  color: var(--sb-ink);
  background: rgba(255, 255, 255, .08);
  font-weight: 1000;
}

.visualizer-frame {
  height: min(680px, 82vh);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--sb-line);
  border-radius: 8px;
  background: #000;
}

.visualizer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.supaboy-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 0;
  color: var(--sb-muted);
  font-size: 13px;
}

.supaboy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(68, 215, 255, .34);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--sb-ink);
  background: rgba(3, 3, 3, .9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .38), 0 0 24px rgba(68, 215, 255, .12);
  font-weight: 900;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

.supaboy-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1160px) {
  .supaboy-hero,
  .product-hero,
  .product-detail,
  .product-room-layout {
    grid-template-columns: 1fr;
  }

  .record-grid,
  .workflow-grid,
  .app-grid,
  .song-walkthrough-grid,
  .handoff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid,
  .product-grid,
  .metric-grid,
  .product-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .supaboy-topbar {
    grid-template-columns: 1fr;
  }

  .supaboy-nav {
    justify-content: flex-start;
  }

  .supaboy-nav a,
  .supaboy-nav button,
  .sb-button {
    min-height: 38px;
    padding: 9px 10px;
  }

  .supaboy-hero {
    min-height: auto;
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(56px, 19vw, 88px);
    line-height: .82;
  }

  .welcome-title {
    font-size: clamp(39px, 12vw, 66px);
  }

  .stage-switcher,
  .metric-grid,
  .product-metrics,
  .record-grid,
  .workflow-grid,
  .media-grid,
  .product-grid,
  .receipt-grid,
  .world-grid,
  .app-grid,
  .song-walkthrough-grid,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  .stage-panel {
    grid-template-rows: minmax(280px, auto) auto;
  }

  .media-card {
    min-height: 260px;
  }

  .product-detail img {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
