/* ============================================================
   Drumbug — Landing Page
   A stunning, full-screen marketing page shown before the app.
   Uses the existing dark theme + neon game-mode aesthetic.
   ============================================================ */

/* ---------- Landing shell ---------- */
#landingPage {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #070b18;
  color: #eaf6ff;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: landingFadeIn .5s ease-out;
}
@keyframes landingFadeIn { from { opacity: 0; } to { opacity: 1; } }

#landingPage.hidden { display: none !important; }

.landing-scroll {
  position: relative;
  z-index: 2;
}

/* ---------- Animated background ---------- */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% 5%, rgba(56, 189, 248, .14), transparent 70%),
    radial-gradient(800px 500px at 85% 30%, rgba(244, 114, 182, .12), transparent 70%),
    radial-gradient(700px 500px at 50% 95%, rgba(168, 139, 250, .10), transparent 70%),
    #070b18;
}
.landing-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(56, 189, 248, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: landingGrid 30s linear infinite;
}
@keyframes landingGrid { to { background-position: 48px 48px, 0 0; } }

/* Floating drum emojis in hero */
.landing-float-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: orbFloat 12s ease-in-out infinite;
}
.landing-orb.o1 { width: 300px; height: 300px; background: #38bdf8; top: 10%; left: 8%; animation-delay: 0s; }
.landing-orb.o2 { width: 260px; height: 260px; background: #f472b6; top: 50%; right: 10%; animation-delay: 3s; }
.landing-orb.o3 { width: 200px; height: 200px; background: #a78bfa; bottom: 15%; left: 40%; animation-delay: 6s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}

/* ---------- Top nav ---------- */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 11, 24, .7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, .12);
  transition: background .3s ease, border-color .3s ease;
}
.landing-nav.scrolled {
  background: rgba(7, 11, 24, .92);
  border-bottom-color: rgba(56, 189, 248, .25);
}
.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
}
.landing-nav-brand .brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, .6));
}
.landing-nav-brand .gl { color: #38bdf8; text-shadow: 0 0 20px rgba(56, 189, 248, .5); }
.landing-nav-brand .gl2 { color: #f472b6; text-shadow: 0 0 20px rgba(244, 114, 182, .5); }
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-links a {
  color: #9fb8d8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.landing-nav-links a:hover { color: #7dd3fc; }
.landing-nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* close button — back to the app without choosing a mode */
.landing-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(148, 197, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: #9fb8d8;
  font-size: 13px;
  cursor: pointer;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.landing-close:hover {
  background: rgba(125, 211, 252, .18);
  color: #fff;
  border-color: #7dd3fc;
  box-shadow: 0 0 12px rgba(56, 189, 248, .3);
}
@media (max-width: 768px) {
  .landing-close { top: 12px; right: 12px; }
}
.landing-btn {
  font-family: inherit;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .04em;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.landing-btn.primary {
  padding: 13px 32px;
  font-size: 16px;
  color: #06121f;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8 55%, #0ea5e9);
  box-shadow: 0 4px 0 #0369a1, 0 12px 30px rgba(14, 165, 233, .4);
}
.landing-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0369a1, 0 16px 40px rgba(14, 165, 233, .55);
}
.landing-btn.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #0369a1; }
.landing-btn.ghost {
  padding: 12px 24px;
  font-size: 15px;
  color: #cfe8ff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 197, 255, .3);
}
.landing-btn.ghost:hover {
  background: rgba(125, 211, 252, .14);
  border-color: #7dd3fc;
}
.landing-btn.pink {
  padding: 13px 32px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 4px 0 #be185d, 0 12px 30px rgba(244, 114, 182, .4);
}
.landing-btn.pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #be185d, 0 16px 40px rgba(244, 114, 182, .55);
}
.landing-btn.small { padding: 9px 20px; font-size: 14px; }

@media (max-width: 768px) {
  .landing-nav { padding: 12px 16px; }
  .landing-nav-links { display: none; }
}

/* ---------- Hero ---------- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.landing-hero-drums {
  font-size: 52px;
  letter-spacing: 18px;
  margin-bottom: 24px;
}
.landing-hero-drums span {
  display: inline-block;
  animation: drumFloat 2.6s ease-in-out infinite;
}
.landing-hero-drums span:nth-child(2) { animation-delay: .35s; }
.landing-hero-drums span:nth-child(3) { animation-delay: .7s; }
@keyframes drumFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.landing-hero-logo-img {
  width: clamp(160px, 28vw, 320px);
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, .4)) drop-shadow(0 0 16px rgba(244, 114, 182, .3));
}
.landing-hero-logo {
  font-size: clamp(56px, 11vw, 110px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: 16px;
}
.landing-hero-logo .gl {
  color: #38bdf8;
  text-shadow: 0 0 40px rgba(56, 189, 248, .8), 0 4px 0 rgba(0, 0, 0, .35);
}
.landing-hero-logo .gl2 {
  color: #f472b6;
  text-shadow: 0 0 40px rgba(244, 114, 182, .8), 0 4px 0 rgba(0, 0, 0, .35);
}
.landing-hero-tag {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: .04em;
  color: #eaf6ff;
  margin-bottom: 8px;
}
.landing-hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: #8fb3d8;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.landing-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .35);
}
.landing-hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fcd34d;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Scroll hint */
.landing-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #6f8db0;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; } 50% { transform: translateX(-50%) translateY(8px); opacity: 1; } }

/* ---------- Section frame ---------- */
.landing-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.landing-section-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 10px;
}
.landing-section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}
.landing-section-title .accent { color: #7dd3fc; }
.landing-section-title .accent2 { color: #f472b6; }
.landing-section-sub {
  font-size: 16px;
  color: #8fb3d8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Feature cards ---------- */
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.landing-feature {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(148, 197, 255, .15);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.landing-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--feat-color, #38bdf8);
  opacity: 0;
  transition: opacity .25s ease;
}
.landing-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, .4);
  box-shadow: 0 16px 40px rgba(2, 8, 23, .4);
}
.landing-feature:hover::before { opacity: 1; }
.landing-feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 0 12px var(--feat-glow, rgba(56, 189, 248, .4)));
}
.landing-feature h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #eaf6ff;
}
.landing-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: #9fb8d8;
}
.landing-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.landing-feature-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .25);
  color: #7dd3fc;
}

/* ---------- How it works ---------- */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.landing-step {
  text-align: center;
  position: relative;
  padding: 24px 20px;
}
.landing-step-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #06121f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 6px 20px rgba(56, 189, 248, .3);
}
.landing-step:nth-child(2) .landing-step-num {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 6px 20px rgba(244, 114, 182, .3);
}
.landing-step:nth-child(3) .landing-step-num {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 6px 20px rgba(252, 211, 77, .3);
}
.landing-step:nth-child(4) .landing-step-num {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  box-shadow: 0 6px 20px rgba(168, 139, 250, .3);
}
.landing-step h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.landing-step p {
  font-size: 14px;
  color: #8fb3d8;
  line-height: 1.55;
}

/* ---------- Styles showcase ---------- */
.landing-styles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.landing-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid rgba(148, 197, 255, .15);
  cursor: default;
  transition: all .2s ease;
  min-width: 120px;
}
.landing-style:hover {
  transform: translateY(-4px);
  border-color: var(--sc, #38bdf8);
  box-shadow: 0 10px 30px -8px var(--sc, #38bdf8);
  background: color-mix(in srgb, var(--sc, #38bdf8) 10%, rgba(255, 255, 255, .04));
}
.landing-style-emoji { font-size: 32px; }
.landing-style-label { font-size: 14px; font-weight: 800; color: #eaf6ff; }

/* ---------- Coaches showcase ---------- */
.landing-coaches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.landing-coach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid rgba(148, 197, 255, .12);
  transition: all .2s ease;
  text-align: center;
}
.landing-coach:hover {
  transform: translateY(-3px);
  border-color: var(--cc, #f472b6);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc, #f472b6) 25%, transparent),
              0 10px 26px -10px var(--cc, #f472b6);
}
.landing-coach-emoji { font-size: 36px; line-height: 1.2; }
.landing-coach-name { font-size: 16px; font-weight: 800; color: #eaf6ff; }
.landing-coach-vibe { font-size: 12px; color: #8fb3d8; }

/* ---------- Pricing ---------- */
.landing-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.landing-plan {
  position: relative;
  padding: 32px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1.5px solid rgba(148, 197, 255, .15);
  transition: transform .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.landing-plan:hover {
  transform: translateY(-4px);
}
.landing-plan.featured {
  border-color: rgba(56, 189, 248, .5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .2), 0 20px 50px rgba(2, 8, 23, .4);
  background: linear-gradient(180deg, rgba(56, 189, 248, .12), rgba(244, 114, 182, .05));
}
.landing-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #06121f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  white-space: nowrap;
}
.landing-plan-name {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}
.landing-plan-price {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 4px;
  color: #eaf6ff;
}
.landing-plan-price .per {
  font-size: 15px;
  font-weight: 600;
  color: #8fb3d8;
}
.landing-plan-desc {
  font-size: 14px;
  color: #9fb8d8;
  margin-bottom: 20px;
  line-height: 1.55;
}
.landing-plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}
.landing-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #cfe8ff;
  border-bottom: 1px solid rgba(148, 197, 255, .08);
}
.landing-plan-features li:last-child { border-bottom: none; }
.landing-plan-features li .check { color: #4ade80; font-weight: 900; flex: none; }
.landing-plan-features li .cross { color: #6f8db0; flex: none; }
.landing-plan-features li.no { color: #6f8db0; }

/* ---------- Final CTA ---------- */
.landing-cta-final {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.landing-cta-final h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.2;
}
.landing-cta-final p {
  font-size: 17px;
  color: #9fb8d8;
  margin-bottom: 32px;
  line-height: 1.6;
}
.landing-cta-final .landing-hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.landing-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(148, 197, 255, .1);
  font-size: 13px;
  color: #6f8db0;
}
.landing-footer a { color: #7dd3fc; text-decoration: none; }

/* ---------- Scroll reveal ---------- */
.landing-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.landing-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Demo preview strip ---------- */
.landing-demo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}
.landing-demo-card {
  padding: 20px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 197, 255, .15);
  text-align: center;
  min-width: 140px;
}
.landing-demo-card .demo-emoji { font-size: 28px; margin-bottom: 8px; }
.landing-demo-card .demo-value { font-size: 28px; font-weight: 900; color: #fcd34d; }
.landing-demo-card .demo-label { font-size: 12px; color: #8fb3d8; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .landing-hero { min-height: 100vh; padding: 100px 16px 60px; }
  .landing-section { padding: 60px 16px; }
  .landing-cta-final { padding: 60px 16px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-pricing { grid-template-columns: 1fr; }
  .landing-hero-cta { flex-direction: column; }
  .landing-hero-cta .landing-btn { width: 100%; }
  .landing-nav-cta .landing-btn.ghost { display: none; }
}

/* ---------- Transition out ---------- */
#landingPage.fading-out {
  animation: landingFadeOut .4s ease-in forwards;
}
@keyframes landingFadeOut { to { opacity: 0; pointer-events: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .landing-bg-grid { animation: none; }
  .landing-orb { animation: none; }
  .landing-hero-drums span { animation: none; }
  .landing-hero-badge .pulse-dot { animation: none; }
  .landing-scroll-hint { animation: none; }
  .landing-reveal { opacity: 1; transform: none; transition: none; }
  #landingPage { animation: none; }
}
