:root {
  color-scheme: dark;
  --bg: #05060d;
  --panel: rgba(12, 14, 26, 0.92);
  --card: rgba(16, 19, 35, 0.85);
  --text: #f5f6ff;
  --muted: #b6b9d7;
  --primary: #f65e94;
  --primary-strong: #ff8db6;
  --accent: #6ff2ff;
  --border: rgba(255, 255, 255, 0.08);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(111, 242, 255, 0.12), transparent 35%),
    radial-gradient(circle at 20% 20%, rgba(246, 94, 148, 0.2), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.content {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

body.standalone main {
  padding-top: 5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 13, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 0.3rem;
}

.menu-button span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(246, 94, 148, 0.35);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.ghost {
  border-color: transparent;
  color: var(--text);
  padding-inline: 1rem;
}

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

.hero {
  padding: 7rem 0 4rem;
}

.hero .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0.5rem 0 1rem;
}

.hero-text .subhead {
  color: var(--muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-pillars {
  display: grid;
  gap: 1.2rem;
}

.hero-pillars div {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.hero-pillars p {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.carousel {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 20px 70px rgba(3, 4, 8, 0.6);
}

.carousel-window {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  padding-right: 1rem;
}

.slide-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slide-meta {
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.slide-desc {
  color: var(--muted);
}

.carousel-controls {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.ghost.square {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.carousel-dots button.active {
  background: var(--primary);
}

.floating-review {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
  color: var(--muted);
}

.panel {
  padding: 4rem 0;
}

.page-hero {
  padding: 6rem 0 2rem;
}

.page-hero .subhead {
  color: var(--muted);
  max-width: 60ch;
}

.page-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.help-grid ul {
  padding-left: 1rem;
  color: var(--muted);
}

.placeholder {
  text-align: center;
  color: var(--muted);
}

.policy article + article {
  margin-top: 2rem;
}

.policy ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin: 0.5rem auto;
  max-width: 52ch;
}

.section-header p {
  color: var(--muted);
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.rails .rail-block + .rail-block {
  margin-top: 3rem;
}

.rail-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.rail-header span {
  color: var(--muted);
}

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.show-card {
  min-width: 220px;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  scroll-snap-align: start;
}

.show-card .tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.show-card small {
  color: var(--muted);
}

.show-card.ghosted {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.schedule-card {
  min-width: 160px;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--panel);
  color: var(--muted);
}

.schedule-card.active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(111, 242, 255, 0.15);
}

.collections {
  background: rgba(255, 255, 255, 0.02);
}

.collection-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.collection-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-width: 260px;
  border: 1px solid var(--border);
  flex: 1;
}

.collection-bg {
  position: absolute;
  inset: 0;
}

.gradient-a {
  background: linear-gradient(135deg, #f65e94, #ffb5d2);
}

.gradient-b {
  background: linear-gradient(135deg, #6ff2ff, #3b6ef6);
}

.gradient-c {
  background: linear-gradient(135deg, #f6d16f, #ff8b3d);
}

.collection-copy {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(5, 6, 13, 0) 0%, rgba(5, 6, 13, 0.8) 70%);
  min-height: 220px;
}

.collection-card .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(5, 6, 13, 0.6);
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--panel);
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.genres {
  color: var(--muted);
}

.favorite {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.favorite.active {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.synopsis {
  color: var(--muted);
}

.ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ratings strong {
  font-size: 1.5rem;
}

.key-economy {
  margin-top: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 1rem;
}

.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.episodes h4 {
  margin-top: 0;
}

.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.episode-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-top: 0.4rem;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary-strong));
}

.continue-card {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.device-pills {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.device-pills span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.companion-grid article {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.chip {
  display: inline-block;
  margin-top: 0.4rem;
  margin-right: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

.community-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.coming-soon {
  display: grid;
  gap: 1rem;
}

.coming-soon article {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.community-cta {
  border-radius: 20px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(246, 94, 148, 0.15), rgba(111, 242, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.store {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.store.apple {
  background: rgba(255, 255, 255, 0.05);
}

.store.google {
  background: rgba(246, 94, 148, 0.12);
}

.store.web {
  background: rgba(111, 242, 255, 0.12);
}

.waitlist {
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--panel);
}

.waitlist label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 0.8rem;
}

input[type="email"] {
  flex: 1;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-feedback {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.site-footer .content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 40%;
    background: rgba(5, 6, 13, 0.95);
    flex-direction: column;
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .menu-button {
    display: flex;
  }

  .hero {
    padding-top: 6rem;
  }

  .rail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .input-row {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header .content {
    padding-inline: 1rem;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
  }
}
