:root {
  --bg-deep: #0b1026;
  --bg-card: #151d3b;
  --bg-card-hover: #1c274d;
  --bg-stage: #111833;
  --text-main: #f8FAFC;
  --text-muted: #94A3B8;
  --accent-gold: #FBBF24;
  --accent-gold-hover: #F59E0B;
  --accent-sky: #38BDF8;
  --accent-emerald: #34D399;
  --accent-rose: #FB7185;
  --accent-violet: #A78BFA;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.14), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(251, 191, 36, 0.12), transparent 35%),
    radial-gradient(circle at 50% 60%, rgba(167, 139, 250, 0.10), transparent 45%),
    var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 38, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transform: scale(1.22);
  filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.45));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #0b1026;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-gold), #F59E0B);
  color: #0b1026;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-sky);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin: 0 auto 22px;
}

.hero h1 .highlight {
  white-space: nowrap;
  background: linear-gradient(135deg, #FDE68A, #FBBF24, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .line-break {
  display: block;
}

.hero-sub {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.platform-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.platform-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Interactive Demo Playground */
.playground-section {
  padding: 28px 0 64px;
}

.playground-card {
  background: linear-gradient(180deg, rgba(21, 29, 59, 0.95), rgba(14, 20, 44, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.playground-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mode-tabs {
  display: inline-flex;
  background: rgba(11, 16, 38, 0.75);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: var(--accent-sky);
  color: #0b1026;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timbre-picker {
  display: inline-flex;
  gap: 6px;
  background: rgba(11, 16, 38, 0.7);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.timbre-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.timbre-btn.active {
  background: var(--accent-gold);
  transform: scale(1.06);
}

/* 12-Pitchlings Choir Grid */
.choir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.creature-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 2px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 22px 12px 9px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.creature-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--creature-color, rgba(255, 255, 255, 0.28));
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.55);
}

.creature-tile.singing {
  transform: translateY(-6px) scale(1.03);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 36px -4px var(--creature-color, #38BDF8);
}

.creature-halo {
  width: 146px;
  height: 146px;
  margin: 2px auto 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.creature-halo::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--creature-color, #38BDF8) 0%, transparent 72%);
  opacity: 0.42;
  filter: blur(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.creature-tile:hover .creature-halo::before {
  opacity: 0.62;
  transform: scale(1.12);
}

.creature-tile.singing .creature-halo::before {
  opacity: 0.88;
  transform: scale(1.26);
}

@keyframes gentleBob {
  0%, 100% { transform: scale(1.25) translateY(0px); }
  50% { transform: scale(1.25) translateY(-4px); }
}

.creature-sprite {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transform: scale(1.25) translateY(0px);
  animation: gentleBob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.38));
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.creature-tile:nth-child(2n) .creature-sprite {
  animation-delay: -1.1s;
}
.creature-tile:nth-child(3n) .creature-sprite {
  animation-delay: -2.2s;
}

.creature-tile:hover .creature-sprite {
  transform: scale(1.30) translateY(-2px);
}

.creature-tile.singing .creature-sprite {
  animation: none;
  transform: scale(1.33) translateY(-2px);
}

.creature-name {
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.15;
  margin-top: 2px;
  color: var(--text-main);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 3;
}

.creature-note-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 14px;
  line-height: 1.25;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  position: relative;
  z-index: 3;
}

/* Hide-and-Seek Mini-Game Stage */
.game-stage {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
}

.game-stage.active {
  display: flex;
}

.cloud-stage-btn {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.45);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.26) 0%, rgba(56, 189, 248, 0.14) 65%, rgba(17, 24, 51, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 18px;
}

.cloud-stage-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 55px rgba(251, 191, 36, 0.42);
}

.cloud-stage-btn .cloud-icon {
  font-size: 3.4rem;
  line-height: 1;
}

.cloud-stage-btn .cloud-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 6px;
}

.game-prompt {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 22px;
  text-align: center;
  min-height: 1.8em;
}

.game-lineup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 780px;
}

.game-lineup .creature-tile {
  width: 225px;
  padding: 24px 16px 12px;
}

.game-lineup .creature-note-badge {
  font-size: 1rem;
  padding: 6px 16px;
}

.game-lineup .creature-halo {
  width: 168px;
  height: 168px;
}

.game-lineup .creature-sprite {
  width: 160px;
  height: 160px;
}

.creature-tile.wrong-shake {
  animation: gentleShake 0.45s ease;
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Science & Honesty Split */
.honest-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), rgba(167, 139, 250, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 36px;
}

.honest-box h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--accent-sky);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.trust-pill {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--accent-emerald);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Founding Cohort Signup */
.signup-card {
  background: linear-gradient(160deg, #172247 0%, #0f1734 100%);
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin: 26px auto 0;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-input, .form-select {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 16, 38, 0.85);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.signup-status {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-sky);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .choir-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .playground-card {
    padding: 20px 12px;
  }
  .choir-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .creature-halo {
    width: 124px;
    height: 124px;
  }
  .creature-sprite {
    width: 118px;
    height: 118px;
  }
}
