/* ===========================================================
   Misco Disco — Landing Page Styles
   =========================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ===========================================================
   THEME TOKENS
   =========================================================== */
:root,
[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --surface-3: #e3e7f0;
  --text-primary: #141826;
  --text-secondary: #5a607a;
  --text-muted: #8a90a8;
  --border: #e4e7ef;
  --border-strong: #d2d7e4;
  --accent: #6c5ce7;
  --accent-2: #00b894;
  --accent-3: #e84393;
  --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00b894 100%);
  --gradient-accent: linear-gradient(135deg, #6c5ce7, #e84393);
  --shadow-sm: 0 2px 8px rgba(20,24,38,0.06);
  --shadow-md: 0 10px 30px rgba(20,24,38,0.08);
  --shadow-lg: 0 24px 60px rgba(20,24,38,0.12);
  --glow: 0 0 40px rgba(108,92,231,0.25);
  --focus: #6c5ce7;
  --card-bg: #ffffff;
  --hero-overlay: linear-gradient(180deg, rgba(246,247,251,0.4) 0%, rgba(246,247,251,0.9) 100%);
}

[data-theme="dark"] {
  --bg: #0a0b14;
  --surface: #12131f;
  --surface-2: #181a28;
  --surface-3: #20222f;
  --text-primary: #f0f2fa;
  --text-secondary: #a3a8c2;
  --text-muted: #6b7090;
  --border: #232636;
  --border-strong: #2e3247;
  --accent: #a29bfe;
  --accent-2: #55efc4;
  --accent-3: #fd79a8;
  --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 45%, #fd79a8 100%);
  --gradient-accent: linear-gradient(135deg, #a29bfe, #fd79a8);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 12px 36px rgba(0,0,0,0.4);
  --shadow-lg: 0 28px 70px rgba(0,0,0,0.55);
  --glow: 0 0 60px rgba(162,155,254,0.3);
  --focus: #a29bfe;
  --card-bg: #12131f;
  --hero-overlay: linear-gradient(180deg, rgba(10,11,20,0.2) 0%, rgba(10,11,20,0.85) 100%);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--glow); }

.btn-secondary {
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }

.btn-youtube {
  background: #ff0033; color: #fff;
  padding: 10px 18px; font-size: 0.88rem; box-shadow: 0 6px 20px rgba(255,0,51,0.3);
}
.btn-youtube:hover { transform: translateY(-2px); background: #e6002e; box-shadow: 0 10px 28px rgba(255,0,51,0.45); }

.btn-cta {
  background: #ff0033; color: #fff; font-size: 1.05rem; padding: 16px 34px;
  box-shadow: 0 10px 30px rgba(255,0,51,0.4);
}
.btn-cta:hover { transform: translateY(-3px); background: #e6002e; box-shadow: 0 18px 44px rgba(255,0,51,0.55); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 1.5px; }
.brand-name { font-size: 1.15rem; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark .eq { width: 4px; border-radius: 2px; background: var(--accent); }
.eq-sm { height: 8px; } .eq-md { height: 14px; } .eq-lg { height: 20px; }
.brand-mark .eq:nth-child(1) { animation: eq 1.1s ease-in-out infinite; }
.brand-mark .eq:nth-child(2) { animation: eq 1.3s ease-in-out infinite 0.15s; }
.brand-mark .eq:nth-child(3) { animation: eq 0.9s ease-in-out infinite 0.3s; }
.brand-mark .eq:nth-child(4) { animation: eq 1.2s ease-in-out infinite 0.1s; }
.brand-mark .eq:nth-child(5) { animation: eq 1s ease-in-out infinite 0.25s; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 0.95rem;
  color: var(--text-secondary); transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-link.active-nav { color: var(--accent); }
.nav-cta { margin-left: 8px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Theme switcher */
.theme-switcher {
  position: relative; display: flex; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px; border-radius: 999px;
}
.theme-btn { width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--text-secondary); transition: color 0.2s; z-index: 1; }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun-rays { stroke-width: 1.8; }
.theme-btn:hover { color: var(--text-primary); }
.theme-btn.active { color: #fff; }
.theme-indicator {
  position: absolute; top: 4px; left: 4px; width: 34px; height: 30px;
  background: var(--gradient-accent); border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; width: 24px; margin: 0 auto; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }

.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb-1 { width: 480px; height: 480px; background: var(--accent); top: -120px; left: -120px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-3); bottom: -140px; right: -100px; animation: float 16s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: var(--accent-2); top: 40%; right: 30%; opacity: 0.3; animation: float 18s ease-in-out infinite; }

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.25; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-waveform { position: absolute; left: 0; right: 0; bottom: 12%; height: 120px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 5%; opacity: 0.5; }
.hero-waveform .wbar { width: 3px; background: var(--gradient-accent); border-radius: 2px; animation: wavebar 1.4s ease-in-out infinite; }

.hero-particles { position: absolute; inset: 0; }
.hero-particles .particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.5; animation: floatUp linear infinite; }

.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 18px; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 800; letter-spacing: 2px; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
  text-shadow: 0 0 60px rgba(108,92,231,0.15);
}
.hero-tagline { font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 600; color: var(--text-primary); margin-bottom: 18px; }
.hero-text { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary); max-width: 640px; margin: 0 auto 16px; }
.hero-sub { font-size: 0.98rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-equalizer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 0 5%;
  z-index: 1; opacity: 0.35;
}
.hero-equalizer span { width: 8px; background: var(--gradient-accent); border-radius: 4px 4px 0 0; animation: eqbar 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }

/* ===========================================================
   SECTIONS / HEADINGS
   =========================================================== */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--text-secondary); }

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: 1.05rem; }
.about-text .section-title { margin-bottom: 22px; }
.about-highlight { font-size: 1.15rem !important; font-weight: 600; color: var(--text-primary); font-style: italic; padding-left: 18px; border-left: 3px solid var(--accent); }
.about-visual { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-visual img { aspect-ratio: 3/2; object-fit: cover; transition: transform 0.6s ease; }
.about-visual:hover img { transform: scale(1.05); }
.about-visual-glow { position: absolute; inset: 0; background: var(--gradient); opacity: 0.12; pointer-events: none; mix-blend-mode: screen; }

/* ===========================================================
   CARD GRID
   =========================================================== */
.card-grid { display: grid; gap: 24px; }
.music-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.features-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); margin-bottom: 18px; position: relative;
  transition: background 0.3s, transform 0.3s;
}
.card:hover .card-icon { background: var(--gradient); transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.card:hover .card-icon svg { stroke: #fff; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Feature cards */
.feature-card { display: flex; flex-direction: column; }
.feature-card .feature-body { flex: 1; }
.feature-card h3 { font-size: 1.3rem; }
.feature-card p { margin-bottom: 22px; }
.feature-link { align-self: flex-start; }

/* Features note */
.features-note {
  display: inline-flex; align-items: center; gap: 12px; margin: 48px auto 0;
  padding: 12px 24px; border-radius: 999px; background: var(--surface-2);
  border: 1px dashed var(--border-strong); color: var(--text-secondary);
  font-size: 0.95rem; font-weight: 500;
}
.display-center-wrap { text-align: center; }
.section .features-note { display: flex; width: fit-content; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-2); animation: pulse 1.8s ease-out infinite; }

/* ===========================================================
   CTA
   =========================================================== */
.cta { padding: 80px 0; }
.cta-inner {
  position: relative; text-align: center; padding: 80px 40px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.cta-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; }
.cta-orb-1 { width: 300px; height: 300px; background: var(--accent); top: -80px; left: -60px; animation: float 12s ease-in-out infinite; }
.cta-orb-2 { width: 280px; height: 280px; background: var(--accent-3); bottom: -100px; right: -60px; animation: float 14s ease-in-out infinite reverse; }
.cta-title { position: relative; z-index: 1; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.cta-text { position: relative; z-index: 1; color: var(--text-secondary); font-size: 1.05rem; max-width: 540px; margin: 0 auto 30px; }
.cta .btn-cta { position: relative; z-index: 1; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 40px; }
.footer-tagline { color: var(--text-secondary); margin-top: 12px; font-size: 0.95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-secondary); transition: color 0.2s; width: fit-content; }
.footer-nav a:hover { color: var(--accent); }
.footer-youtube { display: flex; justify-content: flex-end; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom p { color: var(--text-muted); font-size: 0.88rem; text-align: center; }

/* ===========================================================
   BACK TO TOP
   =========================================================== */
.to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.05); }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ===========================================================
   REVEAL ANIMATION
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ===========================================================
   KEYFRAMES
   =========================================================== */
@keyframes eq { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@keyframes eqbar { 0%,100% { height: 20%; } 50% { height: 100%; } }
@keyframes wavebar { 0%,100% { height: 20%; } 50% { height: 90%; } }
@keyframes float { 0%,100% { transform: translate(0,0); } 33% { transform: translate(40px,-30px); } 66% { transform: translate(-30px,20px); } }
@keyframes floatUp { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(-100vh); opacity: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-orb, .cta-orb, .particle { display: none; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-youtube { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 5% 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 12px; border-radius: 10px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; align-self: stretch; justify-content: center; }
  .section { padding: 70px 0; }
}

@media (max-width: 560px) {
  .header-inner { height: 62px; }
  .brand-name { font-size: 1rem; letter-spacing: 1px; }
  .theme-switcher { padding: 3px; }
  .theme-btn { width: 30px; height: 26px; }
  .theme-indicator { width: 30px; height: 26px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; max-width: 320px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-youtube { justify-content: flex-start; }
  .cta-inner { padding: 56px 22px; }
  .music-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .to-top { bottom: 18px; right: 18px; }
}

@media (max-width: 420px) {
  .hero { min-height: 100vh; padding-top: 100px; }
}
