/* ==========================================================================
   AETHER // High-End Product Showcase
   Award-Winning Agency Aesthetic (Awwwards / FWA / Studio Style)
   ========================================================================== */

/* --- DESIGN TOKENS & DYNAMIC THEME VARIABLES --- */
:root {
  /* Color Theme: Obsidian Void (Default) */
  --bg-primary: #050608;
  --bg-secondary: #0b0d14;
  --bg-card: rgba(15, 18, 28, 0.65);
  --bg-card-hover: rgba(22, 27, 42, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Dynamic Accent Colors (Switchable in real time) */
  --accent-primary: #8b5cf6;       /* Electric Ultraviolet */
  --accent-text: #a78bfa;          /* High-contrast Accent Text */
  --accent-secondary: #ec4899;     /* Cyber Fuchsia */
  --accent-tertiary: #06b6d4;      /* Quantum Cyan */
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
  --accent-gradient-text: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #8b5cf6 100%);

  /* Neutrals & Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #8b9bb4;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(139, 92, 246, 0.4);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Physics & Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.25s var(--ease-out-expo);
  --transition-smooth: 0.5s var(--ease-out-expo);
  --transition-slow: 0.85s var(--ease-out-expo);

  /* Layout */
  --container-max: 1440px;
  --section-pad: clamp(80px, 12vw, 160px);
}

/* Theme presets: applied dynamically by JavaScript */
[data-theme="fuchsia"] {
  --accent-primary: #f43f5e;
  --accent-text: #fda4af;
  --accent-secondary: #a855f7;
  --accent-tertiary: #fb7185;
  --accent-glow: rgba(244, 63, 94, 0.4);
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
  --accent-gradient-text: linear-gradient(135deg, #ffffff 0%, #fda4af 50%, #f43f5e 100%);
  --border-glow: rgba(244, 63, 94, 0.45);
}

[data-theme="azure"] {
  --accent-primary: #00f5d4;
  --accent-text: #2dd4bf;
  --accent-secondary: #00bbf9;
  --accent-tertiary: #7b2cbf;
  --accent-glow: rgba(0, 245, 212, 0.4);
  --accent-gradient: linear-gradient(135deg, #00f5d4 0%, #00bbf9 50%, #4361ee 100%);
  --accent-gradient-text: linear-gradient(135deg, #ffffff 0%, #99f6e4 50%, #00f5d4 100%);
  --border-glow: rgba(0, 245, 212, 0.45);
}

[data-theme="gold"] {
  --accent-primary: #fbbf24;
  --accent-text: #fcd34d;
  --accent-secondary: #f59e0b;
  --accent-tertiary: #d97706;
  --accent-glow: rgba(251, 191, 36, 0.35);
  --accent-gradient: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #d97706 100%);
  --accent-gradient-text: linear-gradient(135deg, #ffffff 0%, #fde68a 50%, #f59e0b 100%);
  --border-glow: rgba(251, 191, 36, 0.45);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

picture {
  display: contents;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Hide native scrollbar for luxury feel */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --- NOISE GRAIN & AMBIENT GLOW ORBS --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-light-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.28;
  transition: background 1s ease, transform 1s ease;
  will-change: transform;
}

.ambient-orb-1 {
  width: 650px;
  height: 650px;
  background: var(--accent-primary);
  top: -150px;
  right: -100px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 750px;
  height: 750px;
  background: var(--accent-secondary);
  bottom: 20%;
  left: -200px;
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  width: 500px;
  height: 500px;
  background: var(--accent-tertiary);
  top: 45%;
  right: 10%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* Mouse spotlight follower */
.mouse-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

/* --- CUSTOM MAGNETIC CURSOR --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo), border-color 0.35s, background-color 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- PRELOADER INTRO SCREEN --- */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #040507;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4rem);
  transition: transform 1s var(--ease-in-out);
}

.preloader.completed {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preloader-brand span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-primary);
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.preloader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-counter {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 800;
  line-height: 0.9;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.preloader-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.preloader-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preloader-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.preloader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 15px var(--accent-primary);
  transition: width 0.1s linear;
}

.preloader-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- NAVIGATION HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.4s ease, background-color 0.4s ease;
}

.site-header.scrolled {
  padding: 1rem 0;
  background: rgba(6, 7, 10, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: clamp(0.5rem, 1.5vw, 1.5rem);
}

.logo-symbol {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-symbol::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-primary);
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--accent-text);
  border: 1px solid var(--border-glow);
  letter-spacing: 0.05em;
}

.nav-container > nav {
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.6rem);
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 0.88vw, 0.9rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: clamp(0.5rem, 1.5vw, 1.5rem);
}


/* Primary Glass Button */
.btn-primary-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 0 35px var(--accent-glow);
}

.btn-primary-glow:hover::before {
  left: 100%;
}

.btn-pill-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Highlighted Configs Players Nav Button */
.btn-configs-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(236, 72, 153, 0.26));
  border: 1px solid rgba(167, 139, 250, 0.72);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 22px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-configs-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.55s ease;
}

.btn-configs-nav:hover,
.btn-configs-nav.active {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.52), rgba(236, 72, 153, 0.42));
  border-color: #ffffff;
  box-shadow: 0 0 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-configs-nav:hover::before {
  left: 100%;
}

.btn-configs-nav svg {
  flex-shrink: 0;
  color: #e9d5ff;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 72% 40%, var(--accent-glow) 0%, transparent 56%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  z-index: 10;
}

/* Three.js 3D WebGL Canvas Layer */
.hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#webgl-canvas.ready {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  pointer-events: none; /* Let canvas capture rotation by default, re-enable for buttons */
}

.hero-content * {
  pointer-events: auto;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-meta-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseLogo 2s infinite ease-in-out;
}

.hero-meta-badge span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 1100px;
  margin-bottom: 2rem;
}

.hero-title .title-line {
  display: block;
  overflow: hidden;
}

.hero-title .char-reveal {
  display: inline-block;
}

.hero-title .gradient-text {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.75rem;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Finish Color Switcher HUD */
.finish-selector-card {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.finish-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.finish-label .active-name {
  color: var(--accent-text);
  font-weight: 700;
}

.finish-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finish-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
  outline: none;
}

.finish-swatch::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: inherit;
}

.finish-swatch.active {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 16px var(--accent-primary);
}

.finish-swatch:hover:not(.active) {
  transform: scale(1.08);
}

.swatch-obsidian { background: #181920; }
.swatch-fuchsia { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.swatch-azure { background: linear-gradient(135deg, #00f5d4, #00bbf9); }
.swatch-gold { background: linear-gradient(135deg, #fbbf24, #d97706); }

/* Bottom HUD Floating Bar */
.hero-hud-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-top: 2rem;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-item .hud-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hud-item .hud-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hud-item .hud-value span {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent-text);
}

.hud-item .hud-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 3D Interaction Hint overlay */
.hero-drag-hint {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: 25%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: floatHint 3s infinite ease-in-out;
}

.hint-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px dashed var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

.hint-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- KINETIC MARQUEE BANNER --- */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d0f18 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.marquee-text.highlight {
  color: #ffffff;
  -webkit-text-stroke: 0px transparent;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marquee-separator {
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-primary);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- PHILOSOPHY & MANIFESTO (STICKY EDITORIAL) --- */
.section-wrapper {
  position: relative;
  padding: var(--section-pad) 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
  z-index: 10;
}

.section-header {
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.philosophy-sticky-content {
  position: sticky;
  top: 140px;
}

.philosophy-text-lead {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.45;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 2rem;
}

.philosophy-text-lead .highlight {
  color: var(--accent-text);
  font-weight: 600;
  text-shadow: 0 0 25px var(--accent-glow);
}

.philosophy-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.philosophy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.glass-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.philosophy-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.visual-card-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.visual-card-frame:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
}

.visual-card-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform 0.8s var(--ease-out-expo);
}

.visual-card-frame:hover img {
  transform: scale(1.04);
}

.visual-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(5,6,8,0.92) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.visual-card-caption .caption-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* --- INTERACTIVE ANATOMY & HOTSPOTS SECTION --- */
.anatomy-stage {
  position: relative;
  width: 100%;
  min-height: 680px;
  border-radius: 32px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at center, #121522 0%, #06070a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.8), 0 30px 80px rgba(0,0,0,0.6);
  margin-top: 2rem;
}

.stage-glow-backdrop {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.22;
  transition: background 1s ease;
}

.stage-product-image {
  position: relative;
  max-width: 820px;
  width: 90%;
  height: auto;
  z-index: 2;
  image-rendering: auto;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.8));
  user-select: none;
  pointer-events: none;
}

/* Hotspot Pins */
.hotspot-pin {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.hotspot-button {
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hotspot-button::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  opacity: 0.6;
  animation: pulsePin 2.2s infinite ease-out;
}

.hotspot-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hotspot-pin:hover .hotspot-button,
.hotspot-pin.active .hotspot-button {
  transform: scale(1.2);
  background: var(--accent-primary);
  border-color: #ffffff;
  box-shadow: 0 0 30px var(--accent-primary);
}

.hotspot-pin:hover .hotspot-inner-dot,
.hotspot-pin.active .hotspot-inner-dot {
  transform: scale(0.8);
  background: #000;
}

@keyframes pulsePin {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Tooltip card for hotspots */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  padding: 1.25rem;
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
  z-index: 20;
}

.hotspot-pin:hover .hotspot-tooltip,
.hotspot-pin.active .hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tooltip-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.tooltip-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Hotspot Coordinates */
.pin-1 { top: 32%; left: 34%; }
.pin-2 { top: 58%; left: 45%; }
.pin-3 { top: 40%; left: 68%; }
.pin-4 { top: 72%; left: 62%; }

/* --- INTERACTIVE 3D ARTIFACT SANDBOX --- */
.sandbox-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}

.sandbox-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.sandbox-canvas-wrapper {
  position: relative;
  height: 480px;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(30, 36, 56, 0.4) 0%, rgba(5, 7, 12, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

#sandbox-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sandbox-canvas-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.sandbox-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sandbox-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.sandbox-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.control-label span:last-child {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Custom Range Slider */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.sandbox-btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mode-toggle-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-toggle-btn.active,
.mode-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.wave-canvas {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 2.5rem 0;
  cursor: crosshair;
}

.synth-triggers {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tone-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tone-button:hover {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* --- BENTO VISUAL GALLERY --- */
.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.bento-card-large {
  grid-column: span 8;
  height: 520px;
}

.bento-card-tall {
  grid-column: span 4;
  height: 520px;
}

.bento-card-medium {
  grid-column: span 6;
  height: 440px;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 0.8s var(--ease-out-expo);
}

.bento-card:hover .bento-img {
  transform: scale(1.06);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 10, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  pointer-events: none;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* --- TECHNICAL SPECIFICATIONS MATRIX --- */
.specs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.spec-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

.spec-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spec-tile:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.spec-tile:hover::before {
  opacity: 1;
}

.spec-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  display: block;
}

.spec-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.spec-value-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.spec-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- COLLECTOR'S EDITION RESERVATION --- */
.reservation-banner {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.25) 0%, rgba(10, 12, 18, 0.95) 70%);
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 80px rgba(139, 92, 246, 0.15);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.reservation-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.reservation-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}

.reservation-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.allocation-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
}

.allocation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.allocation-count {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.allocation-count span {
  font-size: 1.2rem;
  color: var(--text-dim);
}

.allocation-meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.allocation-meter-fill {
  height: 100%;
  width: 82%;
  background: var(--accent-gradient);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-primary);
}

.btn-reserve-vip {
  width: 100%;
  padding: 16px;
  border-radius: 100px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255,255,255,0.25);
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-reserve-vip:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 15px 40px var(--accent-glow);
}

/* --- FOOTER --- */
.site-footer {
  position: relative;
  background: #030406;
  border-top: 1px solid var(--border-subtle);
  padding: 6rem 0 3rem 0;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-massive-text {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 3rem;
  user-select: none;
  transition: all 0.5s ease;
}

.footer-massive-text:hover {
  -webkit-text-stroke: 1px var(--accent-primary);
  text-shadow: 0 0 60px var(--accent-glow);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1180px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-sticky-content {
    position: static;
  }
  .sandbox-layout {
    grid-template-columns: 1fr;
  }
  .reservation-banner {
    grid-template-columns: 1fr;
  }
  .bento-card-large, .bento-card-tall, .bento-card-medium {
    grid-column: span 12;
    height: 380px;
  }
  .hero-drag-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header,
  .site-header.scrolled {
    padding: 0.75rem 0;
  }
  .nav-container {
    padding: 0 14px;
    gap: 8px;
    min-width: 0;
  }
  .nav-container > nav,
  .nav-links {
    display: none; /* In mobile, clean layout */
  }
  .brand-logo {
    margin-right: auto;
    gap: 8px;
    min-width: 0;
  }
  .logo-symbol {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }
  .nav-actions {
    margin-left: 0;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .btn-github-nav {
    display: none;
  }
  .btn-configs-nav {
    padding: 7px 11px;
    font-size: 0.76rem;
    gap: 5px;
  }
  .btn-primary-glow {
    padding: 7px 12px;
    font-size: 0.76rem;
  }
  .lang-toggle-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
    gap: 5px;
  }
  .bento-card-large, .bento-card-tall, .bento-card-medium {
    height: auto;
    min-height: 280px;
  }
  .credits-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
  .credit-card {
    padding: 1.5rem 1.25rem;
  }
  .hero-hud-bar {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cursor-dot, .cursor-ring, .mouse-spotlight {
    display: none; /* Disable custom cursor on mobile */
  }
  .btn-hero-opensource, .btn-hero-kofi, .btn-hero-discord {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px;
    gap: 6px;
  }
  .logo-badge {
    display: none;
  }
  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }
  .nav-actions {
    gap: 5px;
  }
  .btn-configs-nav {
    padding: 6px 9px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .btn-configs-nav svg {
    width: 13px;
    height: 13px;
  }
  .btn-primary-glow {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
  .btn-primary-glow .btn-pill-icon {
    display: none;
  }
  .lang-toggle-btn {
    padding: 6px 8px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .lang-globe-icon {
    width: 13px;
    height: 13px;
  }
  .btn-hero-opensource, .btn-hero-kofi, .btn-hero-discord {
    padding: 13px 20px;
    font-size: 0.92rem;
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .mouse-spotlight {
    display: none;
  }
}

/* ===== PERFORMANCE OVERRIDES ===== */
.noise-overlay { display: none; }
.ambient-orb { animation: none !important; opacity: 0.18; background: radial-gradient(circle, var(--accent-primary) 0%, transparent 65%) !important; }
.ambient-orb-2 { background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 65%) !important; }
.ambient-orb-3 { background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 65%) !important; }
.stage-glow-backdrop { background: radial-gradient(circle, var(--accent-primary) 0%, transparent 65%); opacity: 0.25; }
.mouse-spotlight { left: 0; top: 0; will-change: transform; }
.cursor-dot, .cursor-ring { will-change: transform; }
.site-header.scrolled { background: rgba(6,7,10,0.92); }
.hero-title { font-size: clamp(2.4rem, 6vw, 6.2rem); max-width: 1300px; }
.marquee-track { will-change: transform; }

/* ===== ACLIENT ADAPTATION ===== */
.stage-frame { position: relative; width: min(92%, 960px); margin: 3rem auto; z-index: 2; }
.stage-frame .stage-product-image { width: 100%; max-width: none; border-radius: 14px; border: 1px solid var(--border-subtle); display: block; }
.anatomy-stage { padding: 1rem 0; }
code { font-family: var(--font-mono); font-size: 0.9em; color: var(--accent-text); }
.synth-triggers { max-width: 100%; }
.tone-button.active { background: var(--accent-primary); color: #000; border-color: var(--accent-primary); }
.visual-card-frame img { height: auto; max-height: 520px; object-fit: cover; }

.mod-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mod-list li { position: relative; padding-left: 1.5rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.mod-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 8px var(--accent-primary); }
.mod-list strong { color: #fff; font-weight: 600; }

/* ===== LOGO / GAMESKIN ===== */
.logo-symbol img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; z-index: 1; }
.logo-symbol::before { display: none; }
.logo-symbol { width: 40px; height: 40px; border: none; background: none; }
.preloader-logo { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.gameskin-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.gameskin-text { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-top: 1.25rem; max-width: 440px; }
.gameskin-features-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.feature-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.feature-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}
.feature-card-item:hover::before { opacity: 1; }
.feature-card-header { margin-bottom: 0.5rem; }
.feature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  margin-bottom: 0.35rem;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.gameskin-frame { max-width: 520px; width: 100%; justify-self: center; }
.gameskin-frame img {
  height: auto;
  width: 100%;
  max-height: none;
  object-fit: contain;
  image-rendering: auto;
  filter: none;
  transform: none;
}
.gameskin-frame:hover img {
  transform: none;
  filter: none;
}
a.btn-reserve-vip { text-decoration: none; }
@media (max-width: 1024px) { .gameskin-grid { grid-template-columns: 1fr; } }

/* ===== LANGUAGE SELECTOR DROPDOWN ===== */
.lang-dropdown { position: relative; display: inline-flex; }
.lang-toggle-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; transition: all var(--transition-fast);
}
.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover);
  box-shadow: 0 0 15px var(--accent-glow);
}
.lang-globe-icon { color: var(--accent-primary); }
.lang-chevron-icon { transition: transform 0.25s ease; }
.lang-toggle-btn[aria-expanded="true"] .lang-chevron-icon { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 155px;
  background: rgba(13, 15, 24, 0.96); border: 1px solid var(--border-glow);
  border-radius: 14px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  padding: 6px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
  z-index: 1000;
}
.lang-menu.active {
  opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
}

.lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; width: 100%; text-align: left; transition: all 0.15s ease;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.08); color: #fff;
}
.lang-option.active {
  color: #fff; background: rgba(139, 92, 246, 0.18); font-weight: 600;
}
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-name { flex: 1; }
.lang-check { font-size: 0.8rem; color: var(--accent-primary); opacity: 0; }
.lang-option.active .lang-check { opacity: 1; }

/* ===== GITHUB BUTTON ===== */
.btn-github-nav {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main); transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-github-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}
.btn-github-nav svg { display: block; }

/* ===== CREDITS SECTION ===== */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.credit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.credit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.credit-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.credit-card:hover::before {
  opacity: 1;
}

.credit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.credit-author {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.credit-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-text);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.credit-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex-grow: 1;
}

/* ===== HERO OPEN SOURCE BUTTON ===== */
.btn-hero-opensource {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1.5px solid var(--border-glow);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 30px var(--accent-glow), 0 10px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-hero-opensource::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.7s ease;
}

.btn-hero-opensource:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 45px var(--accent-glow), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.btn-hero-opensource:hover::before {
  left: 100%;
}

.btn-hero-opensource .btn-github-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.btn-hero-opensource:hover .btn-github-icon {
  transform: rotate(-10deg) scale(1.1);
}

.btn-hero-opensource .btn-arrow-icon {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.btn-hero-opensource:hover .btn-arrow-icon {
  transform: translate(3px, -3px);
  color: #ffffff;
}

/* ===== HERO KO-FI BUTTON ===== */
.btn-hero-kofi {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(255, 94, 91, 0.16), rgba(255, 94, 91, 0.04));
  border: 1.5px solid rgba(255, 94, 91, 0.4);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-hero-kofi::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 94, 91, 0.35), transparent);
  transition: left 0.7s ease;
}

.btn-hero-kofi:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #ff5e5b;
  background: linear-gradient(135deg, rgba(255, 94, 91, 0.28), rgba(255, 94, 91, 0.1));
  box-shadow: 0 0 45px rgba(255, 94, 91, 0.45), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.btn-hero-kofi:hover::before {
  left: 100%;
}

.btn-hero-kofi .btn-kofi-icon {
  width: 22px;
  height: 22px;
  fill: #ff5e5b;
  transition: transform 0.3s ease;
}

.btn-hero-kofi:hover .btn-kofi-icon {
  transform: rotate(-10deg) scale(1.15);
}

.btn-hero-kofi .btn-arrow-icon {
  transition: transform 0.3s ease;
  color: #ff5e5b;
}

.btn-hero-kofi:hover .btn-arrow-icon {
  transform: translate(3px, -3px);
  color: #ffffff;
}


/* ===== HERO DISCORD BUTTON ===== */
.btn-hero-discord {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(88, 101, 242, 0.04));
  border: 1.5px solid rgba(88, 101, 242, 0.4);
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-hero-discord::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.35), transparent);
  transition: left 0.7s ease;
}

.btn-hero-discord:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #5865f2;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.12));
  box-shadow: 0 0 45px rgba(88, 101, 242, 0.45), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.btn-hero-discord:hover::before {
  left: 100%;
}

.btn-hero-discord .btn-discord-icon {
  width: 22px;
  height: 22px;
  fill: #5865f2;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.btn-hero-discord:hover .btn-discord-icon {
  transform: scale(1.15) rotate(-6deg);
  fill: #ffffff;
}

.btn-hero-discord .btn-arrow-icon {
  transition: transform 0.3s ease;
  color: #5865f2;
}

.btn-hero-discord:hover .btn-arrow-icon {
  transform: translate(3px, -3px);
  color: #ffffff;
}

/* ===== FINAL MOBILE OVERRIDES (HIGHEST CASCADE PRIORITY) ===== */
@media (max-width: 768px) {
  .site-header,
  .site-header.scrolled {
    padding: 0.75rem 0;
  }
  .nav-container {
    padding: 0 14px;
    gap: 8px;
    min-width: 0;
  }
  .nav-container > nav,
  .nav-links {
    display: none;
  }
  .brand-logo {
    margin-right: auto;
    gap: 8px;
    flex-shrink: 0;
  }
  .logo-symbol {
    width: 30px;
    height: 30px;
  }
  .logo-text {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }
  .nav-actions {
    margin-left: 0;
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-github-nav {
    display: none;
  }
  .btn-configs-nav,
  .btn-primary-glow {
    padding: 7px 11px;
    font-size: 0.76rem;
    flex-shrink: 0;
  }
  .lang-toggle-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
    gap: 5px;
    flex-shrink: 0;
  }
  .hero-section {
    padding-top: 86px;
    padding-bottom: 48px;
  }
  .hero-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 10px;
    gap: 6px;
  }
  .brand-logo {
    gap: 6px;
  }
  .logo-symbol {
    width: 28px;
    height: 28px;
  }
  .logo-badge {
    display: none;
  }
  .logo-text {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
  .nav-actions {
    gap: 4px;
  }
  .btn-configs-nav {
    padding: 6px 8px;
    font-size: 0.68rem;
    gap: 4px;
  }
  .btn-configs-nav svg {
    display: none;
  }
  .btn-primary-glow {
    padding: 6px 9px;
    font-size: 0.68rem;
  }
  .btn-primary-glow .btn-pill-icon {
    display: none;
  }
  .lang-toggle-btn {
    padding: 6px 7px;
    font-size: 0.68rem;
    gap: 3px;
  }
  .lang-globe-icon {
    display: none;
  }
  .hero-title {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
    line-height: 1.02;
  }
  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 6px 12px;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .btn-hero-opensource,
  .btn-hero-kofi,
  .btn-hero-discord {
    padding: 13px 18px;
    font-size: 0.92rem;
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}
