/* =========================
   NCG PLATFORM SPACE
   uses platform-core.css variables
========================= */

.space-body {
  min-height: 100vh;

  background:
    radial-gradient(circle at 16% 14%, rgba(255,225,68,0.08), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(255,255,255,0.07), transparent 34%),
    linear-gradient(180deg, #162f45 0%, #10283c 100%);

  color: var(--paper);
}


/* =========================
   MAIN SPACE
========================= */

.module-space {
  position: relative;

  min-height: 100vh;

  padding:
    34px
    34px
    130px;

  overflow-x: hidden;
}


/* =========================
   TOP BAR
========================= */

.space-topbar {
  position: relative;
  z-index: 20;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.space-logo {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background: rgba(255,255,255,0.08);
  color: var(--yellow);

  font-size: 22px;
  font-weight: 800;

  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
}

.space-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.space-link,
.space-login {
  color: rgba(255,255,255,0.75);
  text-decoration: none;

  padding: 12px 18px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(18px);
}

.space-login {
  background: var(--yellow);
  color: var(--dark);
}


/* =========================
   INTRO
========================= */

.space-intro {
  position: relative;
  z-index: 10;

  max-width: 720px;

  margin:
    76px
    auto
    80px;

  text-align: center;
}

.space-kicker {
  display: inline-flex;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(255,225,68,0.9);
  color: var(--dark);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.space-intro h1 {
  margin: 26px 0 22px;

  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.86;

  letter-spacing: -0.07em;

  color: var(--paper);
}

.space-intro p {
  max-width: 560px;

  margin:
    0
    auto;

  font-size: 18px;
  line-height: 1.8;

  color: rgba(255,255,255,0.68);
}


/* =========================
   SECTION SYSTEM
========================= */

.space-section {
  position: relative;

  width: 100%;

  margin-bottom: 88px;
}

.space-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 22px;

  margin-bottom: 34px;
}

.space-section-label {
  display: inline-flex;

  padding: 10px 16px;

  border-radius: 999px;

  background: rgba(255,225,68,0.9);
  color: var(--dark);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.space-section-head h2 {
  margin:
    18px
    0
    0;

  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 0.9;

  letter-spacing: -0.06em;

  color: var(--paper);
}

.space-section-head p {
  max-width: 620px;

  margin: 0;

  font-size: 18px;
  line-height: 1.75;

  color: rgba(255,255,255,0.62);
}


/* =========================
   ROWS / NETFLIX SCROLL
========================= */

.space-row {
  display: flex;
  align-items: stretch;
  gap: 28px;

  width: 100%;

  padding:
    16px
    0
    26px;
}

.scroll-row {
  overflow-x: auto;
  overflow-y: visible;

  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,225,68,0.7) rgba(255,255,255,0.08);
}

.scroll-row::-webkit-scrollbar {
  height: 10px;
}

.scroll-row::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: rgba(255,225,68,0.75);
  border-radius: 999px;
}


/* =========================
   MODULE CARD
========================= */

.space-module {
  flex:
    0
    0
    340px;

  min-height: 500px;

  padding: 24px;

  border-radius:
  34px 42px 42px 42px /
  42px 42px 52px 44px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255,253,239,0.96),
      rgba(245,242,232,0.92)
    );

  color: var(--dark);

  border: 1px solid rgba(255,255,255,0.32);

  box-shadow:
    0 24px 70px rgba(0,0,0,0.24),
    0 0 0 1px rgba(255,225,68,0.08);

  backdrop-filter: blur(18px);

  scroll-snap-align: start;

  display: flex;
  flex-direction: column;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.space-module:hover {
  transform: translateY(-8px);
  box-shadow:
    0 34px 90px rgba(0,0,0,0.32),
    0 0 0 1px rgba(255,225,68,0.16);
}

.space-module-image {
  overflow: hidden;

  margin:
    -24px
    -24px
    22px;

  border-radius:
    30px 30px 34px 34px /
    42px 42px 54px 54px;
}

.space-module-image img {
  width: 100%;
  height: 170px;

  object-fit: cover;
}

.space-module-badge,
.space-module-top span {
  display: inline-flex;

  width: fit-content;

  padding: 8px 12px;
  border-radius: 999px;

  background: var(--yellow);
  color: var(--dark);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.space-module-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;

  margin-bottom: 20px;
}

.space-module-top strong {
  font-size: 13px;
  color: var(--navy);
  text-transform: uppercase;
}

.space-module h3 {
  margin: 14px 0 16px;

  font-size: 34px;
  line-height: 0.92;

  letter-spacing: -0.06em;
}

.space-module p {
  margin: 0 0 20px;

  font-size: 15px;
  line-height: 1.75;

  color: rgba(17,17,17,0.68);
}

.space-module ul {
  list-style: none;

  padding: 0;
  margin:
    0
    0
    24px;

  display: flex;
  flex-direction: column;
  gap: 9px;
}

.space-module li {
  font-size: 14px;
  color: rgba(17,17,17,0.72);
}

.space-module li::before {
  content: "✓ ";
  font-weight: 800;
  color: var(--navy);
}

.space-module-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;

  min-height: 46px;

  margin-top: auto;

  padding: 0 22px;

  border-radius: 999px;

  background: var(--yellow);
  color: var(--dark);

  text-decoration: none;

  font-size: 15px;
  font-weight: 800;

  box-shadow:
    0 12px 28px rgba(255,225,68,0.28);
}

.space-module-btn.secondary {
  background: var(--navy);
  color: var(--paper);
  box-shadow:
    0 12px 28px rgba(22,47,69,0.18);
}

.space-module-btn.disabled {
  pointer-events: none;
  opacity: 0.55;
  background: rgba(0,0,0,0.12);
  color: rgba(17,17,17,0.72);
  box-shadow: none;
}


/* =========================
   FREE CARD
========================= */

.module-free {
  flex-basis: 380px;

  background:
    linear-gradient(
      180deg,
      rgba(22,47,69,0.98),
      rgba(13,32,49,0.96)
    );

  color: var(--paper);

  box-shadow:
    0 28px 90px rgba(0,0,0,0.36),
    0 0 0 2px rgba(255,225,68,0.22);
}

.module-free h3,
.module-free p,
.module-free li {
  color: var(--paper);
}

.module-free p,
.module-free li {
  color: rgba(255,255,255,0.72);
}

.module-free li::before {
  color: var(--yellow);
}


/* =========================
   SPECIAL STATES
========================= */

.module-soon {
  opacity: 0.68;
}

.module-bundle {
  background:
    linear-gradient(
      180deg,
      rgba(255,225,68,0.98),
      rgba(255,240,135,0.94)
    );
}

.bundle-price {
  margin-bottom: 24px;

  font-size: 52px;
  line-height: 1;

  font-weight: 800;
  letter-spacing: -0.06em;

  color: var(--navy);
}


/* =========================
   DOCK
========================= */

.space-dock {
  position: fixed;
  z-index: 30;

  left: 50%;
  bottom: 28px;

  transform: translateX(-50%);

  display: flex;
  gap: 14px;

  padding: 14px;

  border-radius: 22px;

  background: rgba(17,17,17,0.56);
  border: 1px solid rgba(255,255,255,0.1);

  backdrop-filter: blur(20px);

  box-shadow:
    0 24px 70px rgba(0,0,0,0.32);
}

.dock-item {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  color: rgba(255,255,255,0.7);
  text-decoration: none;

  font-size: 22px;

  transition: 0.22s ease;
}

.dock-item:hover,
.dock-item.active {
  background: var(--yellow);
  color: var(--dark);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .space-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .space-section-head p {
    max-width: 620px;
  }

}


@media (max-width: 768px) {

  .module-space {
    padding:
      22px
      22px
      120px;
  }

  .space-topbar {
    align-items: flex-start;
  }

  .space-top-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .space-link,
  .space-login {
    font-size: 12px;
    padding: 10px 14px;
  }

  .space-intro {
    margin:
      60px
      auto
      70px;
  }

  .space-intro h1 {
    font-size: clamp(56px, 18vw, 86px);
  }

  .space-module {
    flex-basis: 82vw;
    min-height: 480px;
  }

  .module-free {
    flex-basis: 82vw;
  }

  .space-dock {
    bottom: 18px;
  }

  .dock-item {
    width: 48px;
    height: 48px;
  }

}

/* =========================
   WAITLIST — uses existing module system
========================= */

#lista .space-module {
  min-height: auto;
  max-width: 720px;
}

#lista form {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 34px;
}

#lista form input[type="email"] {
  width: 100%;
  min-height: 54px;

  padding: 0 22px;

  border: none;
  border-radius: 999px;

  background: rgba(255,255,255,0.94);
  color: var(--dark);

  font-family: inherit;
  font-size: 16px;
  font-weight: 600;

  outline: none;
}

#lista form input[type="email"]::placeholder {
  color: rgba(17,17,17,0.42);
}

#lista form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255,225,68,0.38);
}

#lista form .space-module-btn {
  min-height: 54px;
  border: none;
  white-space: nowrap;
}

#lista .space-module > p:last-child {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.56);
}

@media (max-width: 768px) {

  #lista form {
    flex-direction: column;
    align-items: stretch;
  }

  #lista form .space-module-btn {
    width: 100%;
  }

}

/* =========================
   SONG MODULES / PIECES
========================= */

.song-modules-section {
  position: relative;
}

.song-section-label {
  background: rgba(244, 197, 66, 0.95);
  color: #162f45;
}

.song-module {
  border: 1px solid rgba(244, 197, 66, 0.38);
  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(244, 197, 66, 0.12);
}

.song-module-top span {
  background: rgba(244, 197, 66, 0.95);
  color: #121211;
}

.song-module-btn {
  background: #f4c542;
  color: #162f45;
}

.song-module-btn:hover {
  background: #ffd95a;
  color: #10293d;
}

@media (max-width: 768px) {
  .module-space {
    padding: 20px 18px 96px;
  }

  .space-topbar {
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .space-logo {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 18px;
    min-width: 0;
  }

  .space-top-actions {
    min-width: 0;
    justify-content: flex-end;
    gap: 8px;
  }

  .space-link,
  .space-login {
    padding: 9px 12px;
    font-size: 11.5px;
    line-height: 1.15;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .space-intro {
    margin: 46px auto 52px;
  }

  .space-kicker {
    padding: 9px 15px;
    font-size: 10px;
    letter-spacing: 0.10em;
  }

  .space-intro h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 13vw, 62px);
    line-height: 0.9;
    letter-spacing: -0.065em;
  }

  .space-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .space-intro p {
    font-size: 16px;
    line-height: 1.62;
    max-width: 100%;
  }

  .space-section {
    margin-bottom: 64px;
  }

  .space-section-head {
    gap: 16px;
    margin-bottom: 24px;
  }

  .space-section-label {
    padding: 8px 13px;
    font-size: 10px;
    letter-spacing: 0.10em;
  }

  .space-section-head h2 {
    margin-top: 14px;
    font-size: clamp(30px, 9vw, 44px);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .space-section-head p {
    font-size: 15.5px;
    line-height: 1.62;
  }

  .space-row {
    gap: 20px;
    padding: 10px 0 20px;
  }

  .space-module,
  .module-free {
    flex-basis: 84vw;
    min-height: auto;
    padding: 22px;
    border-radius:
      28px 34px 34px 34px /
      34px 34px 42px 36px;
  }

  .space-module-image {
    margin: -22px -22px 20px;
    border-radius:
      26px 26px 30px 30px /
      34px 34px 42px 42px;
  }

  .space-module-image img {
    height: 150px;
  }

  .space-module-badge,
  .space-module-top span {
    padding: 7px 11px;
    font-size: 9.5px;
  }

  .space-module-top {
    margin-bottom: 16px;
  }

  .space-module h3 {
    margin: 12px 0 14px;
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 0.96;
  }

  .space-module p {
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.62;
  }

  .space-module ul {
    gap: 8px;
    margin-bottom: 22px;
  }

  .space-module li {
    font-size: 14px;
    line-height: 1.45;
  }

  .space-module-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }

  .space-dock {
    bottom: 14px;
    padding: 10px;
    gap: 10px;
    border-radius: 18px;
  }

  .dock-item {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .module-space {
    padding: 18px 16px 88px;
  }

  .space-topbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .space-top-actions {
    width: 100%;
    justify-content: center;
  }

  .space-login {
    width: min(100%, 260px);
  }

  .space-intro {
    margin: 38px auto 46px;
  }

  .space-intro h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .space-intro h2 {
    font-size: clamp(23px, 6.6vw, 32px);
  }

  .space-intro p {
    font-size: 15px;
    line-height: 1.58;
  }

  .space-section {
    margin-bottom: 56px;
  }

  .space-section-head h2 {
    font-size: clamp(28px, 8.5vw, 40px);
  }

  .space-section-head p {
    font-size: 15px;
  }

  .space-module,
  .module-free {
    flex-basis: 86vw;
    padding: 20px;
  }

  .space-module-image {
    margin: -20px -20px 18px;
  }

  .space-module-image img {
    height: 140px;
  }

  .space-module h3 {
    font-size: clamp(27px, 8vw, 36px);
  }
}

@media (max-width: 1024px) {
  .space-topbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .space-logo {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 19px;
    min-width: 0;
  }

  .space-top-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .space-login {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.15;
    max-width: min(100%, 280px);
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .space-intro {
    margin: 58px auto 66px;
  }

  .space-kicker {
    margin-bottom: 6px;
  }

  .space-intro h1 {
    margin: 28px 0 22px;
  }

  .space-intro h2 {
    margin-bottom: 24px;
  }

  .space-intro p {
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 420px) {
  .space-intro {
    margin: 50px auto 58px;
  }

  .space-intro h1 {
    margin: 24px 0 20px;
  }

  .space-intro h2 {
    margin-bottom: 22px;
  }

  .space-intro p {
    max-width: 94%;
  }
}

.space-device-note {
  position: relative;
  z-index: 10;

  width: 100%;
  max-width: 860px;

  margin: -28px auto 72px;
}

.space-device-note-inner {
  padding: 26px 30px;

  border-radius:
    28px 38px 34px 42px /
    38px 28px 44px 34px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 225, 68, 0.96),
      rgba(255, 212, 59, 0.88)
    );

  color: #111;

  border:
    1px solid rgba(255,255,255,0.28);

  box-shadow:
    0 24px 70px rgba(0,0,0,0.20),
    0 0 0 1px rgba(255,225,68,0.18);

  text-align: left;
}

.space-device-note-label {
  display: inline-flex;

  margin-bottom: 14px;

  padding: 7px 12px;

  border-radius: 999px;

  background: rgba(22,47,69,0.96);
  color: rgba(255,255,255,0.92);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.space-device-note h2 {
  max-width: 720px;

  margin: 0 0 12px;

  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;

  color: rgba(15,23,42,0.94);
}

.space-device-note p {
  max-width: 720px;

  margin: 0;

  font-size: 15.5px;
  line-height: 1.6;

  color: rgba(15,23,42,0.72);
}

@media (max-width: 768px) {
  .space-device-note {
    margin: -18px auto 52px;
  }

  .space-device-note-inner {
    padding: 22px 20px;
    border-radius:
      24px 32px 28px 34px /
      32px 24px 36px 28px;
  }

  .space-device-note h2 {
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.05;
  }

  .space-device-note p {
    font-size: 14.5px;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .space-device-note {
    margin: -12px auto 46px;
  }

  .space-device-note-inner {
    padding: 20px 18px;
  }
}
