/* ==========================================================================
   Sonata — Core Design System & Styling
   Inspired by lilac.su & luavmp.xyz aesthetics
   ========================================================================== */

:root {
  --font-sans: 'Google Sans Flex', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Colors */
  --bg-dark: #07080d;
  --bg-pitch: #040508;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-dim: rgba(255, 255, 255, 0.45);
  --accent-purple: #c084fc;
  --accent-violet: #a855f7;
  --accent-neon: #d8b4fe;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --accent-seafoam: #c084fc;
  --accent-teal: #a855f7;
  --accent-lavender: #c084fc;
  --discord-blurple: #5865F2;
  --glass-bg: rgba(10, 13, 22, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(192, 132, 252, 0.35);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: transparent;
}

::selection {
  background: rgba(120, 200, 186, 0.35);
  color: #fff;
}

/* ==========================================================================
   WebGL Liquid Marble Canvas
   ========================================================================== */
.shader-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: #06090e;
}

/* ==========================================================================
   Floating Navigation Bar (Luxury Glass Pill)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-24px);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

.navbar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

.brand-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 0%, #D0D7DE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease-smooth);
}

.btn-nav-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

/* ==========================================================================
   Hero Stage: Discrete 2-Phase Experience (Horizontal Slide -> Downward Scroll)
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  perspective: 1400px;
}

html.scroll-locked, body.scroll-locked {
  overflow: hidden !important;
  height: 100vh !important;
}

.stage-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Panel 1: Opening Hero */
.panel-intro {
  z-index: 20;
  background: transparent;
  padding: 2rem;
  text-align: center;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease, visibility 0.75s;
}

/* Panel 2: Lilac.su Showcase */
.panel-showcase {
  z-index: 10;
  transform: translate3d(35%, 0, 0) scale(1.04);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease, visibility 0.75s;
}

/* Active State: When user slides over to Showcase */
.hero-stage.showcase-active .panel-intro {
  transform: translate3d(-35%, 0, 0) scale(0.94);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  visibility: hidden;
}

.hero-stage.showcase-active .panel-showcase {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
  visibility: visible;
}

.intro-inner {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.intro-headline {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #ffffff;
  margin: 0;
}

.silver-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 50%, #8899A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  display: inline-block;
  font-weight: 600;
}

.intro-sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.discord-inline-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.discord-inline-link:hover {
  text-decoration-color: #ffffff;
  color: var(--accent-seafoam);
}

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-intro-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  color: #fff;
  background: var(--discord-blurple);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.btn-intro-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(88, 101, 242, 0.45);
  background: #4752c4;
}

.btn-intro-slide {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease-smooth);
}

.btn-intro-slide:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.scroll-indicator {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: #ffffff;
  border-radius: 2px;
  animation: mouse-scroll 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes mouse-scroll {
  0% { opacity: 1; transform: translate(-50%, 0); }
  60% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Panel 2: Lilac.su Showcase (Hero + 5 Cards 3D Lineup)
   ========================================================================== */
.panel-showcase {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 1rem;
  overflow: hidden;
  height: 100vh;
  box-sizing: border-box;
}

.showcase-content {
  width: 100%;
  max-width: 1250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* Hero Header matching lilac.su */
.hero-header {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-sans);
  color: #ffffff;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  white-space: nowrap;
  font-size: clamp(0.8rem, 1.15vw, 1.05rem);
  font-weight: 400;
  line-height: 1.2;
  transform: translateY(-3px);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-header {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }
  .hero-tagline {
    text-align: center;
    white-space: normal;
    transform: none;
  }
/* ==========================================================================
   Theme Switcher Dropdown (Right Above the UI)
   ========================================================================== */
.theme-select-container {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  z-index: 50;
  position: relative;
}

.theme-select-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.theme-dropdown {
  position: relative;
}

.theme-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(12, 16, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.25s var(--ease-smooth);
}

.theme-dropdown-btn:hover,
.theme-dropdown.open .theme-dropdown-btn {
  background: rgba(18, 24, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.theme-current-name {
  color: #ffffff;
  font-weight: 500;
}

.dropdown-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.theme-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.theme-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.dot-default {
  background: #c084fc;
  color: #c084fc;
}

.dot-ice {
  background: #38bdf8;
  color: #38bdf8;
}

.dot-coffee {
  background: #f59e0b;
  color: #f59e0b;
}

.dot-catppuccin {
  background: #c4b5fd;
  color: #c4b5fd;
}

.dot-monokai {
  background: #facc15;
  color: #facc15;
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background: rgba(10, 14, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.4rem;
  min-width: 190px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-glow);
  z-index: 100;
  transition: transform 0.25s var(--ease-spring), opacity 0.2s ease, visibility 0.25s;
}

.theme-dropdown.open .theme-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.theme-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.theme-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.theme-dropdown-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Theme Variant Overrides */
body[data-theme="ice"] {
  --accent-purple: #38bdf8;
  --accent-violet: #0284c7;
  --accent-neon: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --accent-seafoam: #38bdf8;
}

body[data-theme="coffee"] {
  --accent-purple: #f59e0b;
  --accent-violet: #d97706;
  --accent-neon: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --accent-seafoam: #f59e0b;
}

body[data-theme="catppuccin"] {
  --accent-purple: #c4b5fd;
  --accent-violet: #a78bfa;
  --accent-neon: #ddd6fe;
  --accent-glow: rgba(196, 181, 253, 0.35);
  --accent-seafoam: #c4b5fd;
}

body[data-theme="monokai"] {
  --accent-purple: #facc15;
  --accent-violet: #eab308;
  --accent-neon: #fde047;
  --accent-glow: rgba(250, 204, 21, 0.35);
  --accent-seafoam: #facc15;
}

body[data-theme="default"] {
  --accent-purple: #c084fc;
  --accent-violet: #a855f7;
  --accent-neon: #d8b4fe;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --accent-seafoam: #c084fc;
}

/* ==========================================================================
   3D Fanned Cards Lineup (The 5 Assets!)
   ========================================================================== */
.cards-lineup-stage {
  width: 100%;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
}

.cards-lineup {
  position: relative;
  width: 100%;
  max-width: 1050px;
  height: clamp(290px, 44vh, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.lineup-card {
  position: absolute;
  width: clamp(260px, 36vw, 460px);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease, opacity 0.5s ease;
  will-change: transform, filter, opacity;
  user-select: none;
}

.card-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #080a11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.08);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(168, 85, 247, 0.05) 100%);
  z-index: 2;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13px;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   Continuous 3D Fanned Carousel Slots (Rotating All 5 Cards Cleanly)
   ========================================================================== */

/* Slot Left 2 (Far Left) */
.lineup-card.slot-left-2 {
  transform: translate3d(-370px, 16px, -35px) scale(0.79) rotateY(16deg) rotateZ(-2.8deg);
  z-index: 2;
  filter: brightness(0.68) blur(0.5px);
  opacity: 0.78;
  pointer-events: auto;
}

/* Slot Left 1 (Mid Left) */
.lineup-card.slot-left-1 {
  transform: translate3d(-185px, 8px, 15px) scale(0.89) rotateY(8deg) rotateZ(-1.4deg);
  z-index: 6;
  filter: brightness(0.86);
  opacity: 0.94;
  pointer-events: auto;
}

/* Slot Center (Active Front) */
.lineup-card.slot-center,
.lineup-card.active-center {
  transform: translate3d(0px, 0px, 75px) scale(1.0) rotateY(0deg) rotateZ(0deg);
  z-index: 10;
  filter: brightness(1.02);
  opacity: 1;
  pointer-events: auto;
}

.lineup-card.slot-center .card-inner,
.lineup-card.active-center .card-inner {
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.9), 0 0 45px rgba(168, 85, 247, 0.35);
}

/* Slot Right 1 (Mid Right) */
.lineup-card.slot-right-1 {
  transform: translate3d(185px, 8px, 15px) scale(0.89) rotateY(-8deg) rotateZ(1.4deg);
  z-index: 6;
  filter: brightness(0.86);
  opacity: 0.94;
  pointer-events: auto;
}

/* Slot Right 2 (Far Right) */
.lineup-card.slot-right-2 {
  transform: translate3d(370px, 16px, -35px) scale(0.79) rotateY(-16deg) rotateZ(2.8deg);
  z-index: 2;
  filter: brightness(0.68) blur(0.5px);
  opacity: 0.78;
  pointer-events: auto;
}

/* Hover effects */
.lineup-card:hover {
  filter: brightness(1.1) !important;
  opacity: 1 !important;
}

.lineup-card:hover .card-inner {
  border-color: rgba(216, 180, 254, 0.6);
  transform: scale(1.025);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.95), 0 0 40px rgba(168, 85, 247, 0.45);
}

/* Lineup Tabs Switcher */
.lineup-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 13, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  margin-top: 1.25rem;
  z-index: 25;
}

.tab-pill {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tab-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(147, 51, 234, 0.25) 100%);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.lineup-hint {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Responsive Lineup */
@media (max-width: 1024px) {
  .cards-lineup {
    height: 380px;
  }
  .lineup-card.slot-left-2 {
    transform: translate3d(-290px, 16px, -35px) scale(0.72) rotateY(15deg);
  }
  .lineup-card.slot-left-1 {
    transform: translate3d(-145px, 8px, 15px) scale(0.84) rotateY(7deg);
  }
  .lineup-card.slot-right-1 {
    transform: translate3d(145px, 8px, 15px) scale(0.84) rotateY(-7deg);
  }
  .lineup-card.slot-right-2 {
    transform: translate3d(290px, 16px, -35px) scale(0.72) rotateY(-15deg);
  }
}

@media (max-width: 768px) {
  .cards-lineup {
    height: 330px;
  }
  .lineup-card {
    width: clamp(270px, 78vw, 400px);
  }
  .lineup-card.slot-left-2 {
    transform: translate3d(-160px, 16px, -35px) scale(0.64) rotateY(12deg);
    opacity: 0.35;
  }
  .lineup-card.slot-left-1 {
    transform: translate3d(-80px, 8px, 10px) scale(0.78) rotateY(6deg);
    opacity: 0.75;
  }
  .lineup-card.slot-right-1 {
    transform: translate3d(80px, 8px, 10px) scale(0.78) rotateY(-6deg);
    opacity: 0.75;
  }
  .lineup-card.slot-right-2 {
    transform: translate3d(160px, 16px, -35px) scale(0.64) rotateY(-12deg);
    opacity: 0.35;
  }
  .lineup-hint {
    display: none;
  }
}

/* ==========================================================================
   Section 3: Features (Editorial Typography Reveal like lilac.su)
   ========================================================================== */
.features-section {
  position: relative;
  z-index: 30;
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.features-heading {
  font-family: var(--font-serif);
  color: #ffffff;
  letter-spacing: -0.015em;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.features-heading .feature-line {
  display: block;
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.features-heading .feature-line.active {
  opacity: 1;
  transform: translateY(0);
}

.features-heading .italic-line {
  font-style: italic;
  color: var(--accent-seafoam);
}

.features-sub {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.85rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto;
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.features-sub.active {
  opacity: 1;
  transform: translateY(0);
}

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

.feature-card {
  background: rgba(10, 15, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-seafoam);
  margin-bottom: 1.25rem;
}

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Section 4: Script Loader & CTA Box (lilac.su style)
   ========================================================================== */
.cta-section {
  position: relative;
  z-index: 30;
  min-height: 80vh;
  padding: 6rem 2rem 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-container {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.cta-subheading {
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ==========================================================================
   Pricing Card ($5 Lifetime Access)
   ========================================================================== */
.pricing-card {
  background: rgba(8, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  max-width: 580px;
  margin: 0 auto;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 45px rgba(168, 85, 247, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.6), transparent);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8), 0 0 55px rgba(168, 85, 247, 0.22);
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-tier-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-neon);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.pricing-amount-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.pricing-currency {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  transform: translateY(-12px);
}

.pricing-number {
  font-size: clamp(4rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

.pricing-perks {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0.5rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
}

.perk-item svg {
  color: var(--accent-seafoam);
  flex-shrink: 0;
}

.pricing-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-purchase-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--discord-blurple);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
  transition: all 0.25s var(--ease-smooth);
}

.btn-purchase-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.5);
}

.pricing-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.pricing-hint a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-discord-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cta-discord-link .discord-svg {
  color: var(--discord-blurple);
}

@media (max-width: 600px) {
  .cta-script-box {
    flex-direction: column;
    align-items: stretch;
  }
  .script-code {
    text-align: center;
    white-space: normal;
    word-break: break-all;
  }
  .cta-copy-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 30;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 2rem;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.825rem;
  color: var(--text-dim);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-weight: 600;
  color: #ffffff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Lightbox Modal (Full View of Menu Assets)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  background: #0d1117;
}

.lightbox-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}
