/* ============================================
   IslandGamingOtaku — Global Stylesheet
   Tropical Night + Gaming + Anime Theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Background palette — deep ocean tones */
  --bg-primary: #0a1620;
  --bg-secondary: #0f1e2b;
  --bg-tertiary: #15293a;
  --bg-card: rgba(21, 41, 58, 0.6);
  --bg-card-hover: rgba(21, 41, 58, 0.85);
  --bg-nav: rgba(10, 22, 32, 0.85);
  --bg-nav-solid: rgba(10, 22, 32, 0.97);
  --bg-base: #0a1620;
  --bg-elevated: #0f1e2b;

  /* Primary — Ocean cyan/turquoise (from the logo's water) */
  --primary: #29B6F6;
  --primary-light: #4DD0E1;
  --primary-dark: #0288D1;

  /* Secondary — Tropical green (from palm tree) */
  --secondary: #4CAF50;
  --secondary-light: #66BB6A;
  --secondary-dark: #2E7D32;

  /* Accents - Vibrant button colors from the logo */
  --accent-yellow: #FFD54F;
  --accent-red: #FF6B6B;
  --accent-sand: #FFE082;
  --accent-trunk: #795548;

  /* Legacy aliases (kept for backwards compatibility) — now mapped to tropical palette */
  --emerald: #4CAF50;
  --emerald-dark: #2E7D32;
  --emerald-darker: #1B5E20;

  --ocean: #29B6F6;
  --ocean-dark: #0288D1;
  --ocean-darker: #01579B;

  --gold: #FFD54F;
  --gold-dark: #FFA000;

  --cyan-light: #4DD0E1;
  --cyan: #29B6F6;

  /* Legacy color aliases for rarity system (kept untouched for rarity LEDs) */
  --purple: #a855f7;
  --blue: #0ea5e9;
  --red: #FF6B6B;
  --pink: #e040fb;

  /* Tropical Gradients */
  --gradient-primary: linear-gradient(135deg, #29B6F6, #4DD0E1);
  --gradient-emerald: linear-gradient(135deg, #4CAF50, #2E7D32);
  --gradient-ocean: linear-gradient(135deg, #29B6F6, #0288D1);
  --gradient-tropical: linear-gradient(135deg, #29B6F6 0%, #4DD0E1 35%, #66BB6A 70%, #FFD54F 100%);
  --gradient-sunset: linear-gradient(135deg, #29B6F6 0%, #4CAF50 50%, #FFE082 100%);
  --gradient-accent: linear-gradient(135deg, #FFD54F, #FFA000);
  --gradient-coral: linear-gradient(135deg, #FF6B6B, #FF8A65);
  --gradient-purple: linear-gradient(135deg, #a855f7, #6366f1);
  --gradient-hero: linear-gradient(135deg, #0a1620 0%, #0f1e2b 40%, #15293a 70%, #0a1620 100%);

  /* Text */
  --text-primary: #f0f7ff;
  --text-secondary: #a4c2d6;
  --text-muted: #8aa6ba;

  /* Borders */
  --border-subtle: rgba(41, 182, 246, 0.1);
  --border-glow: rgba(41, 182, 246, 0.3);

  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 6rem 1.5rem;
  --container-max: 1200px;
  --nav-height: 70px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  /* Thème "anime coloré" : halos vifs (violet / magenta / cyan / corail / or)
     sur une base sombre → le texte clair reste parfaitement lisible. */
  background-image:
    radial-gradient(1100px 720px at 10% -8%, rgba(168, 85, 247, 0.30), transparent 60%),
    radial-gradient(1000px 680px at 92% 2%, rgba(224, 64, 251, 0.24), transparent 58%),
    radial-gradient(950px 650px at 50% 112%, rgba(41, 182, 246, 0.22), transparent 60%),
    radial-gradient(760px 560px at 96% 78%, rgba(255, 107, 107, 0.16), transparent 60%),
    radial-gradient(700px 520px at 4% 72%, rgba(255, 213, 79, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Utility Classes ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary-light), var(--accent-yellow), var(--primary));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.gradient-text-ocean {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary-light), var(--primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

.gradient-text-coral {
  background: linear-gradient(135deg, var(--accent-red), #FF8A65, var(--accent-yellow), var(--accent-red));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

/* ---------- Scroll Reveal — Dramatic Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: transparent;
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base),
              backdrop-filter var(--transition-base),
              border-color var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-nav-solid);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .logo-island {
  font-size: 1.3rem;
}

.nav-logo .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(41, 182, 246, 0.35));
  transition: transform var(--transition-base), filter var(--transition-base);
}

.nav-logo:hover .logo-img {
  transform: scale(1.06) rotate(-3deg);
  filter: drop-shadow(0 0 14px rgba(77, 208, 225, 0.55));
}

.nav-logo .logo-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.nav-logo > span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
  background: transparent; /* laisse transparaître les halos colorés du body */
}

/* ── Animated cyberpunk grid background ── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 64, 251, 0.09) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(55deg);
  transform-origin: center 80%;
  animation: gridMove 25s linear infinite;
  will-change: background-position;
}

/* PERF: second grid layer removed. The hero already renders .hero-retro-floor
   (an animated perspective grid), so a second concurrent perspective-grid
   layer animating background-position was redundant and paint-heavy. The
   remaining .hero-grid::before keeps a single subtle grid. */

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 60px, 60px 0; }
}

/* ── Scanline overlay ── */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.09) 2px,
    rgba(0, 0, 0, 0.09) 4px
  );
  animation: scanlineFlicker 8s ease-in-out infinite;
}

@keyframes scanlineFlicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

/* ── Animated gradient blobs behind hero — tropical sunset over ocean ── */
.hero::before {
  content: '';
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(224, 64, 251, 0.30) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 18% 65%, rgba(168, 85, 247, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 52% 42% at 82% 55%, rgba(41, 182, 246, 0.24) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 50% 12%, rgba(255, 138, 101, 0.18) 0%, transparent 60%);
  animation: heroMesh 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
  z-index: 0;
}

/* PERF: previously re-declared the whole multi-radial-gradient 'background'
   on every keyframe, forcing a full-area repaint each frame (cannot be
   GPU-composited). Now drifts the static gradient layer via transform/opacity
   only, which the compositor handles on the GPU with no per-frame repaint.
   Scale stays >= 1.05 so the small translate never exposes the layer edges
   (works for both the inset:-12% hero layer and the inset:0 product heroes). */
@keyframes heroMesh {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 1;
  }
  50% {
    transform: translate3d(1.5%, -1.5%, 0) scale(1.09);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(-1.5%, 1%, 0) scale(1.06);
    opacity: 0.92;
  }
}

/* Bottom fade to next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-secondary), transparent);
  z-index: 0;
  pointer-events: none;
}

/* ── Floating geometric shapes (hexagons, triangles) ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Floating dots that rise upward */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleRise linear infinite;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  box-shadow: 0 0 6px var(--primary-light);
  left: 10%;
  bottom: -10px;
  animation-duration: 12s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 3px;
  height: 3px;
  background: var(--secondary-light);
  box-shadow: 0 0 5px var(--secondary-light);
  left: 30%;
  bottom: -10px;
  animation-duration: 15s;
  animation-delay: -3s;
}

.particle:nth-child(3) {
  width: 5px;
  height: 5px;
  background: var(--primary);
  box-shadow: 0 0 7px var(--primary);
  left: 50%;
  bottom: -10px;
  animation-duration: 10s;
  animation-delay: -6s;
}

/* PERF: trimmed from 5 to 3 concurrent rising particles. The 4th and 5th are
   hidden (HTML left intact) to cut the number of simultaneous infinite
   animations in the hero. */
.particle:nth-child(4),
.particle:nth-child(5) {
  display: none;
}

@keyframes particleRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

/* ── Floating hexagons ── */
.hero-hex {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero-hex::before {
  content: '';
  display: block;
  width: 60px;
  height: 35px;
  background: transparent;
  border: 1px solid rgba(77, 208, 225, 0.18);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: hexFloat 20s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(77, 208, 225, 0.12);
}

.hero-hex:nth-child(1) { top: 15%; left: 8%; }
.hero-hex:nth-child(1)::before {
  width: 50px; height: 29px;
  border-color: rgba(41, 182, 246, 0.16);
  animation-delay: 0s;
  animation-duration: 18s;
}

.hero-hex:nth-child(2) { top: 25%; right: 12%; }
.hero-hex:nth-child(2)::before {
  width: 70px; height: 40px;
  border-color: rgba(102, 187, 106, 0.14);
  animation-delay: -5s;
  animation-duration: 22s;
}

.hero-hex:nth-child(3) { bottom: 30%; left: 15%; }
.hero-hex:nth-child(3)::before {
  width: 40px; height: 23px;
  border-color: rgba(255, 213, 79, 0.14);
  animation-delay: -10s;
  animation-duration: 25s;
}

.hero-hex:nth-child(4) { bottom: 20%; right: 20%; }
.hero-hex:nth-child(4)::before {
  width: 55px; height: 32px;
  border-color: rgba(255, 107, 107, 0.1);
  animation-delay: -3s;
  animation-duration: 20s;
}

@keyframes hexFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translate(20px, -30px) rotate(60deg);
    opacity: 0.7;
  }
  50% {
    transform: translate(-15px, -50px) rotate(120deg);
    opacity: 0.3;
  }
  75% {
    transform: translate(25px, -20px) rotate(180deg);
    opacity: 0.6;
  }
}

/* ── Floating triangles ── */
.hero-tri {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero-tri::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid rgba(41, 182, 246, 0.12);
  animation: triFloat 15s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(77, 208, 225, 0.18));
}

.hero-tri:nth-child(1) { top: 20%; left: 25%; }
.hero-tri:nth-child(1)::before {
  border-bottom-color: rgba(41, 182, 246, 0.1);
  animation-delay: -2s;
}

.hero-tri:nth-child(2) { top: 60%; right: 8%; }
.hero-tri:nth-child(2)::before {
  border-left-width: 20px;
  border-right-width: 20px;
  border-bottom-width: 35px;
  border-bottom-color: rgba(255, 213, 79, 0.08);
  animation-delay: -7s;
  animation-duration: 18s;
}

.hero-tri:nth-child(3) { bottom: 35%; left: 60%; }
.hero-tri:nth-child(3)::before {
  border-left-width: 10px;
  border-right-width: 10px;
  border-bottom-width: 17px;
  border-bottom-color: rgba(102, 187, 106, 0.1);
  animation-delay: -12s;
  animation-duration: 22s;
}

@keyframes triFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.5;
  }
  33% {
    transform: translate(-20px, -40px) rotate(120deg);
    opacity: 0.8;
  }
  66% {
    transform: translate(15px, -60px) rotate(240deg);
    opacity: 0.3;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: heroContentIn 1.2s ease-out;
}

@keyframes heroContentIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(41, 182, 246, 0.15);
  border: 1px solid rgba(77, 208, 225, 0.35);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(41, 182, 246, 0.25);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(41, 182, 246, 0);
  }
}

/* ── Hero brand logo (homepage main logo) ── */
.hero-brand-logo {
  display: block;
  width: clamp(140px, 18vw, 200px);
  height: clamp(140px, 18vw, 200px);
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter:
    drop-shadow(0 0 30px rgba(41, 182, 246, 0.35))
    drop-shadow(0 0 60px rgba(77, 208, 225, 0.2));
  animation: heroLogoFloat 5s ease-in-out infinite, heroLogoGlow 4s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}

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

@keyframes heroLogoGlow {
  0% {
    filter:
      drop-shadow(0 0 30px rgba(41, 182, 246, 0.35))
      drop-shadow(0 0 60px rgba(77, 208, 225, 0.2));
  }
  100% {
    filter:
      drop-shadow(0 0 45px rgba(77, 208, 225, 0.55))
      drop-shadow(0 0 90px rgba(102, 187, 106, 0.25));
  }
}

/* Typing cursor uses primary tropical cyan */

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  font-weight: 400;
  /* Réserve la hauteur d'une ligne : le mot qui s'efface/se réécrit
     (animation "typing") ne fait plus sauter le contenu en dessous. */
  min-height: 1.6em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--primary-light);
  box-shadow: 0 0 6px var(--primary-light);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(41, 182, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Softer, wider light band at low opacity for a subtle shimmer */
  background: linear-gradient(135deg, transparent 20%, rgba(255,255,255,0.12) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btnShine 1s ease-in-out forwards;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(41, 182, 246, 0.45), 0 0 20px rgba(77, 208, 225, 0.2);
}

/* Coral CTA — for emphasis */
.btn-coral {
  background: var(--gradient-coral);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-coral:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(255, 107, 107, 0.45), 0 0 20px rgba(255, 138, 101, 0.2);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(77, 208, 225, 0.25);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(77, 208, 225, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary:hover {
  border-color: rgba(77, 208, 225, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(77, 208, 225, 0.18);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Animated Section Divider ---------- */
.section-divider {
  position: relative;
  height: 2px;
  margin: 0;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--secondary-light), var(--accent-yellow), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

@keyframes dividerGlow {
  0% { background-position: 0% 50%; opacity: 0.5; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.5; }
}

/* ---------- Products Grid ---------- */
.products-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--secondary-light), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

/* Animated gradient blobs in background */
.products-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 10% 20%, rgba(41, 182, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 90% 80%, rgba(102, 187, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: blobMove 15s ease-in-out infinite alternate;
}

/* PERF: was re-declaring radial-gradient 'background' each frame (repaints a
   large area). Now drifts the static gradient layer via transform/opacity,
   which is GPU-composited. Scale >= 1.06 covers edges during the translate. */
@keyframes blobMove {
  0% {
    transform: translate3d(0, 0, 0) scale(1.06);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(2%, 2.5%, 0) scale(1.12);
    opacity: 1;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Glow overlay */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* Shimmer / light sweep effect */
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: rgba(77, 208, 225, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(41, 182, 246, 0.1);
}

.glass-card:hover::after {
  animation: cardShimmer 1s ease-in-out forwards;
}

@keyframes cardShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Glow variants — tropical logo-inspired button colors */

/* Coral (red/pink) — like the logo's red button — used for WaifuCatch */
.glass-card.glow-coral::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 107, 0.15) 0%, transparent 70%);
}
.glass-card.glow-coral:hover {
  border-color: rgba(255, 107, 107, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 107, 0.15);
}

/* Cyan — like the logo's cyan button — used for FreeDeck */
.glass-card.glow-ocean::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(77, 208, 225, 0.15) 0%, transparent 70%);
}
.glass-card.glow-ocean:hover {
  border-color: rgba(77, 208, 225, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(77, 208, 225, 0.15);
}

/* Green (tropical) — like the logo's palm + green button — used for NinForge */
.glass-card.glow-tropical::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(102, 187, 106, 0.15) 0%, transparent 70%);
}
.glass-card.glow-tropical:hover {
  border-color: rgba(102, 187, 106, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 187, 106, 0.15);
}

/* Yellow — like the logo's yellow button — used for PDFLife */
.glass-card.glow-gold::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 213, 79, 0.15) 0%, transparent 70%);
}
.glass-card.glow-gold:hover {
  border-color: rgba(255, 213, 79, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 213, 79, 0.15);
}

/* Legacy aliases — keep working for any remaining usage */
.glass-card.glow-emerald::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(102, 187, 106, 0.15) 0%, transparent 70%);
}
.glass-card.glow-emerald:hover {
  border-color: rgba(102, 187, 106, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 187, 106, 0.15);
}

.glass-card.glow-purple::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(102, 187, 106, 0.15) 0%, transparent 70%);
}
.glass-card.glow-purple:hover {
  border-color: rgba(102, 187, 106, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 187, 106, 0.15);
}

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

/* Product card specifics */
.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.product-icon.emerald { background: var(--gradient-emerald); }
.product-icon.ocean {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 0 15px rgba(77, 208, 225, 0.35);
}
.product-icon.gold {
  background: linear-gradient(135deg, var(--accent-yellow), #FFA000);
  box-shadow: 0 0 15px rgba(255, 213, 79, 0.35);
}
.product-icon.coral {
  background: var(--gradient-coral);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.35);
}
.product-icon.purple { background: var(--gradient-purple); }
.product-icon.ninforge {
  background: linear-gradient(135deg, #4CAF50, var(--secondary-light));
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
  image-rendering: pixelated;
}

.product-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-card-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.product-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(77, 208, 225, 0.18);
  color: var(--primary-light);
  width: fit-content;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(77, 208, 225, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(77, 208, 225, 0.15);
  border-color: rgba(77, 208, 225, 0.35);
  color: var(--primary-light);
}

.product-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: color var(--transition-base);
}
.product-link .pl-arrow {
  display: inline-block;
  transition: transform var(--transition-base);
}

.product-link:hover {
  color: var(--secondary-light);
  text-shadow: 0 0 10px rgba(102, 187, 106, 0.4);
}
.product-link:hover .pl-arrow { transform: translateX(5px); }

/* Bouton "Mon Dex" — identité violette, plus visible que le secondaire */
.btn-dex {
  background: linear-gradient(135deg, #b14dff, #7c3aed);
  color: #fff;
  border: 1px solid rgba(177, 77, 255, 0.6);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}
.btn-dex:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 34px rgba(124, 58, 237, 0.65);
}

/* Badge color variants */
.product-badge.badge-ocean {
  background: rgba(77, 208, 225, 0.18);
  color: var(--primary-light);
}

.product-badge.badge-coral {
  background: rgba(255, 107, 107, 0.18);
  color: #FF8A80;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.product-badge.badge-gold {
  background: rgba(255, 213, 79, 0.18);
  color: var(--accent-yellow);
}

.product-badge.badge-free {
  background: rgba(102, 187, 106, 0.22);
  color: #81C784;
  border: 1px solid rgba(102, 187, 106, 0.35);
}

.product-badge.badge-tropical {
  background: rgba(102, 187, 106, 0.2);
  color: #81C784;
  border: 1px solid rgba(102, 187, 106, 0.4);
}

.product-badge.badge-purple {
  background: rgba(102, 187, 106, 0.2);
  color: #81C784;
  border: 1px solid rgba(102, 187, 106, 0.4);
}

/* ---------- Clickable product card wrappers ---------- */
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  outline: none;
}

.product-card-link:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
}

/* ---------- Accessibilite clavier : anneau de focus global ---------- */
/* Indicateur de focus visible (uniquement au clavier) pour tous les
   elements interactifs, dans le theme vert/bleu tropical. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-coral:focus-visible,
.nav-links a:focus-visible,
.carousel-arrow:focus-visible,
.contact-card:focus-visible,
.footer-links a:focus-visible,
.konami-close:focus-visible,
.copy-code-btn:focus-visible,
.signup-form button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.product-card-link .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-link .product-link {
  margin-top: auto;
  align-self: flex-start;
  cursor: pointer;
}

.product-card-link:hover .product-link {
  gap: 0.7rem;
  color: var(--secondary-light);
  text-shadow: 0 0 10px rgba(102, 187, 106, 0.4);
}

.product-card-link:hover .product-card {
  transform: translateY(-8px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: rgba(77, 208, 225, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(41, 182, 246, 0.1);
}

.product-card-link:hover .glow-coral {
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 107, 0.18);
}

.product-card-link:hover .glow-ocean {
  border-color: rgba(77, 208, 225, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(77, 208, 225, 0.18);
}

.product-card-link:hover .glow-tropical {
  border-color: rgba(102, 187, 106, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 187, 106, 0.18);
}

.product-card-link:hover .glow-gold {
  border-color: rgba(255, 213, 79, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 213, 79, 0.18);
}

.product-card-link:hover .glow-emerald {
  border-color: rgba(102, 187, 106, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 187, 106, 0.18);
}

.product-card-link:hover .glow-purple {
  border-color: rgba(102, 187, 106, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 187, 106, 0.18);
}

.product-card-link:hover .glass-card::before {
  opacity: 1;
}

.product-card-link:hover .glass-card::after {
  animation: cardShimmer 0.8s ease forwards;
}

/* ---------- About Section ---------- */
.about-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--secondary-light), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.about-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 30% at 80% 30%, rgba(77, 208, 225, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 70%, rgba(102, 187, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: blobMove 20s ease-in-out infinite alternate;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(77, 208, 225, 0.12);
  border: 1px solid rgba(77, 208, 225, 0.25);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge:hover {
  background: rgba(77, 208, 225, 0.22);
  border-color: rgba(77, 208, 225, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(77, 208, 225, 0.2);
}

/* ---------- Contact / Footer ---------- */
.contact-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary-light), var(--accent-yellow), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(77, 208, 225, 0.35);
  transform: translateY(-5px) scale(1.02);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(41, 182, 246, 0.1);
}

.contact-card .icon {
  font-size: 1.3rem;
}

.contact-card .contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-card .contact-value {
  font-weight: 600;
  color: var(--text-primary);
}

.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bg-primary);
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(77, 208, 225, 0.3));
  transition: transform var(--transition-base), filter var(--transition-base);
}

.footer-logo img:hover {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 18px rgba(102, 187, 106, 0.45));
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--primary-light);
}

/* ============================================
   WaifuCatch Product Page — Specific Styles
   ============================================ */

/* Product Hero */
.product-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(255, 107, 107, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(255, 138, 101, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(41, 182, 246, 0.08) 0%, transparent 60%);
  animation: heroMesh 12s ease-in-out infinite alternate;
  z-index: 0;
}

.product-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.product-hero .hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 107, 107, 0.28), 0 0 80px rgba(255, 138, 101, 0.15);
  animation: logoGlow 4s ease-in-out infinite alternate;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes logoGlow {
  0% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.28), 0 0 80px rgba(255, 138, 101, 0.15); }
  100% { box-shadow: 0 0 60px rgba(255, 107, 107, 0.4), 0 0 100px rgba(255, 138, 101, 0.22); }
}

.version-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(77, 208, 225, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 1.5rem;
}

/* Features Grid */
.features-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary-light), var(--accent-yellow), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.features-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 35% at 15% 80%, rgba(77, 208, 225, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 85% 20%, rgba(102, 187, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: blobMove 18s ease-in-out infinite alternate;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.feature-card {
  padding: 1.8rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* How It Works */
.how-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--secondary-light), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-primary);
  margin: 0 auto 1.2rem;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(41, 182, 246, 0.3);
}

.step-card:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(41, 182, 246, 0.5), 0 0 60px rgba(77, 208, 225, 0.2);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   Rarity Carousel — Game-Accurate Spawn Cards
   ============================================ */
.rarity-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.rarity-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), var(--accent-yellow), var(--primary-light), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.rarity-carousel-wrapper {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  /* Déborde horizontalement mais laisse les halos rayonner au-dessus/en dessous */
  overflow: visible;
  padding: 1rem 0;
}

.rarity-carousel {
  display: flex;
  gap: 2.75rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 5rem 2.5rem 5.5rem;
  scrollbar-width: none;
  justify-content: flex-start;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.rarity-carousel.dragging { cursor: grabbing; }

.rarity-carousel::-webkit-scrollbar {
  display: none;
}

/* --- IN-GAME REPLICA CARD (pixel-matches overlay-spawn.html spawn card) --- */
.ig-spawn-card,
.ig-rarity-card {
  flex: 0 0 280px;
  width: 280px;
  height: 440px;
  border-radius: 16px;
  position: relative;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.ig-spawn-card:hover,
.ig-rarity-card:hover {
  transform: translateY(-10px) scale(1.04);
  z-index: 5;
}

/* Inner card with LED border and clipping for the rounded corners.
   Matches .card-inner from overlay-spawn.html. */
.ig-card-inner {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Sparkle layer — kept strictly INSIDE the card bounds so nothing escapes
   the frame or causes horizontal scroll. Only enabled on high rarities
   (mythic / divine / celestial) where a magical aura makes sense; hidden
   everywhere else. See per-rarity overrides below. */
.ig-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 16px;
  overflow: hidden;          /* clip any drift back inside the card */
  color: #fff;
  display: none;             /* off by default; enabled on mythic+ only */
}

.ig-sparkles .spark {
  position: absolute;
  width: 12px;
  height: 12px;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 5px currentColor);
  animation: sparkleTwinkle 4.5s ease-in-out infinite;
  will-change: opacity, transform;
}

.ig-sparkles .spark::before {
  content: '✦';
  color: currentColor;
  text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
}

/* A tasteful few, anchored near the corners INSIDE the frame.
   Sparks beyond s4 are not shown (kept subtle). */
.ig-sparkles .s1 { top: 7%;  left: 8%;   animation-delay: 0s;   font-size: 13px; }
.ig-sparkles .s2 { top: 11%; right: 9%;  animation-delay: 1.1s; font-size: 10px; }
.ig-sparkles .s3 { bottom: 30%; left: 11%; animation-delay: 2.2s; font-size: 12px; }
.ig-sparkles .s4 { top: 30%; right: 12%; animation-delay: 1.7s; font-size: 11px; }
.ig-sparkles .s5,
.ig-sparkles .s6,
.ig-sparkles .s7,
.ig-sparkles .s8 { display: none; }

/* Enable subtle sparkles only on the highest rarities */
.rarity-mythic .ig-sparkles,
.rarity-divine .ig-sparkles,
.rarity-celestial .ig-sparkles { display: block; }

/* Gentle in-place twinkle (no big translation, so they stay put) */
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0;    transform: scale(0.5); }
  45%      { opacity: 0;    transform: scale(0.5); }
  60%      { opacity: 0.7;  transform: scale(1); }
  72%      { opacity: 0.35; transform: scale(0.85); }
  85%      { opacity: 0;    transform: scale(0.5); }
}

/* Rarity banner (top label, matches .card-rarity-banner from game) */
.ig-card-rarity-banner {
  position: relative;
  z-index: 2;
  padding: 6px 8px;
  border-radius: 13px 13px 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.ig-card-rarity-name {
  text-align: center;
}

.ig-card-stars {
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 8px currentColor;
}

.ig-card-drop-rate {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  border: 1px solid rgba(255,255,255,0.25);
  text-shadow: 0 0 6px currentColor;
  color: #ffd740;
  text-align: center;
  min-width: 40px;
}

/* Card art (full-size background image, matches .card-art from game).
   z-index:1 so the waifu photo sits ABOVE the rarity tint backdrop that
   lives on .ig-card-inner::before. */
.ig-card-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 13px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.ig-spawn-card:hover .ig-card-art,
.ig-rarity-card:hover .ig-card-art {
  transform: scale(1.06);
}

/* Overlay info at bottom (matches .card-overlay from game) */
.ig-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.5) 65%, rgba(0,0,0,0.2) 85%, transparent 100%);
  padding: 30px 10px 18px 10px;
}

.ig-card-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.ig-card-title {
  font-size: 11px;
  opacity: 0.6;
  font-style: italic;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 1px;
  color: #fff;
}

/* Stats row (matches .card-stats from game) */
.ig-card-stats {
  display: flex;
  justify-content: space-around;
  gap: 3px;
  margin-bottom: 4px;
}

.ig-card-stats .stat {
  text-align: center;
  padding: 3px 4px;
  border-radius: 6px;
  flex: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ig-card-stats .stat-label {
  font-size: 8px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

.ig-card-stats .stat-value {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.ig-card-stats .ig-stat-hp  { color: #4caf50; }   /* Green for HP */
.ig-card-stats .ig-stat-atk { color: #f44336; }   /* Red for ATK */
.ig-card-stats .ig-stat-def { color: #42a5f5; }   /* Blue for DEF */
.ig-card-stats .ig-stat-spd { color: #e0e0e0; }   /* Light gray for VIT */

/* Rarity-tinted gradient backdrop sits BEHIND the waifu photo.
   The photo lives on .ig-card-art's own background-image (z-index:1);
   this layer fills any transparent PNG areas / letterbox and carries the
   animated mythic+ shimmer. It MUST live on .ig-card-inner (not on
   .ig-card-art::before) — a pseudo-element's negative z-index still paints
   ABOVE its own host's background-image, which previously hid the photo. */
.ig-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

/* --- LED Border Glow per rarity (from game overlay-spawn.html) --- */

/* Common */
.rarity-common .ig-card-inner {
  border: 3px solid #546e7a;
  background: linear-gradient(180deg, rgba(84,110,122,0.15), rgba(20,20,30,0.95));
  box-shadow: 0 0 6px rgba(176,190,197,0.25), 0 0 14px rgba(176,190,197,0.1), inset 0 0 12px rgba(176,190,197,0.05);
}
.rarity-common .ig-card-inner::before { background: linear-gradient(135deg, #1a1a2e, #2d2d44, #1a1a2e); }
.rarity-common .ig-card-rarity-name { color: #b0bec5; }
.rarity-common .ig-card-name { color: #b0bec5; text-shadow: 0 0 10px rgba(176,190,197,0.3); }
.rarity-common .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(55,71,79,0.9), rgba(84,110,122,0.95), rgba(55,71,79,0.9)); color: #b0bec5; }
.rarity-common .ig-sparkles { color: #cfd8dc; }

/* Rare */
.rarity-rare .ig-card-inner {
  border: 3px solid #1e88e5;
  background: linear-gradient(180deg, rgba(30,136,229,0.2), rgba(13,71,161,0.15), rgba(10,15,30,0.95));
  box-shadow:
    0 0 12px rgba(30,136,229,0.55),
    0 0 30px rgba(30,136,229,0.3),
    0 0 55px rgba(30,136,229,0.12),
    inset 0 0 18px rgba(30,136,229,0.1);
  animation: ledPulseRare 2.5s ease-in-out infinite;
}
.rarity-rare .ig-card-inner::before { background: linear-gradient(135deg, #0a1628, #0d47a1 50%, #0a1628); }
.rarity-rare .ig-card-rarity-name { color: #90caf9; }
.rarity-rare .ig-card-name { color: #64b5f6; text-shadow: 0 0 15px rgba(100,181,246,0.4); }
.rarity-rare .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(13,71,161,0.9), rgba(30,136,229,0.95), rgba(13,71,161,0.9)); color: #90caf9; }
.rarity-rare .ig-sparkles { color: #64b5f6; }
.rarity-rare::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(30,136,229,0.35), transparent 70%);
  filter: blur(16px);
  z-index: -1;
  animation: auraPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* Epic */
.rarity-epic .ig-card-inner {
  border: 3px solid #ab47bc;
  background: linear-gradient(180deg, rgba(171,71,188,0.25), rgba(74,20,140,0.2), rgba(15,10,30,0.95));
  box-shadow:
    0 0 15px rgba(171,71,188,0.6),
    0 0 40px rgba(171,71,188,0.35),
    0 0 70px rgba(171,71,188,0.15),
    inset 0 0 24px rgba(156,39,176,0.13);
  animation: ledPulseEpic 2s ease-in-out infinite;
}
.rarity-epic .ig-card-inner::before { background: linear-gradient(135deg, #1a0a2e, #4a148c 50%, #1a0a2e); }
.rarity-epic .ig-card-rarity-name { color: #e1bee7; }
.rarity-epic .ig-card-name { color: #ce93d8; text-shadow: 0 0 15px rgba(206,147,216,0.4); }
.rarity-epic .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(74,20,140,0.9), rgba(124,67,189,0.95), rgba(74,20,140,0.9)); color: #e1bee7; }
.rarity-epic .ig-sparkles { color: #ce93d8; }
.rarity-epic::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(171,71,188,0.4), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: auraPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

/* Legendary */
.rarity-legendary .ig-card-inner {
  border: 3px solid #ffa726;
  background: linear-gradient(180deg, rgba(255,167,38,0.3), rgba(230,81,0,0.2), rgba(20,15,5,0.95));
  box-shadow:
    0 0 20px rgba(255,167,38,0.7),
    0 0 50px rgba(255,152,0,0.4),
    0 0 80px rgba(255,152,0,0.18),
    0 0 120px rgba(255,152,0,0.08),
    inset 0 0 28px rgba(255,152,0,0.15);
  animation: ledPulseLegendary 1.8s ease-in-out infinite;
}
.rarity-legendary .ig-card-inner::before { background: linear-gradient(135deg, #1a0f00, #e65100 30%, #bf360c 70%, #1a0f00); }
.rarity-legendary .ig-card-rarity-name { color: #fff8e1; }
.rarity-legendary .ig-card-name { color: #ffcc02; text-shadow: 0 0 20px rgba(255,204,2,0.5); }
.rarity-legendary .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(230,81,0,0.9), rgba(255,167,38,0.95), rgba(230,81,0,0.9)); color: #fff8e1; }
.rarity-legendary .ig-sparkles { color: #ffcc02; }
.rarity-legendary::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(255,167,38,0.5), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: auraPulse 2s ease-in-out infinite;
  pointer-events: none;
}

/* Mythic */
.rarity-mythic .ig-card-inner {
  border: 3px solid #ff5252;
  background: linear-gradient(180deg, rgba(255,82,82,0.3), rgba(211,47,47,0.2), rgba(25,5,5,0.95));
  box-shadow: 0 0 20px rgba(255,82,82,0.7), 0 0 50px rgba(255,82,82,0.35), 0 0 80px rgba(255,0,0,0.15), inset 0 0 30px rgba(255,0,0,0.12);
  animation: ledPulseMythic 1.5s ease-in-out infinite;
}
.rarity-mythic .ig-card-inner::before { background: linear-gradient(135deg, #1a0000, #b71c1c 25%, #880e4f 50%, #4a148c 75%, #1a0000); animation: rarityMythicBg 6s linear infinite; background-size: 400%; }
.rarity-mythic .ig-card-rarity-name { color: #fff; }
.rarity-mythic .ig-card-name { color: #ff5252; text-shadow: 0 0 25px rgba(255,82,82,0.6), 0 0 50px rgba(255,82,82,0.3); }
.rarity-mythic .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(211,47,47,0.9), rgba(255,82,82,0.95), rgba(211,47,47,0.9)); color: #fff; }
.rarity-mythic .ig-sparkles { color: #ff5252; }
.rarity-mythic::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(255,82,82,0.55), rgba(255,82,82,0.15) 50%, transparent 75%);
  filter: blur(22px);
  z-index: -1;
  animation: auraPulse 2s ease-in-out infinite;
  pointer-events: none;
}
.rarity-mythic::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: radial-gradient(circle, transparent 55%, rgba(255,82,82,0.3) 75%, transparent 90%);
  filter: blur(8px);
  z-index: -1;
  animation: auraPulse 1.5s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Divine */
.rarity-divine .ig-card-inner {
  border: 3px solid #e040fb;
  background: linear-gradient(180deg, rgba(224,64,251,0.3), rgba(123,31,162,0.2), rgba(20,5,25,0.95));
  box-shadow: 0 0 20px rgba(224,64,251,0.7), 0 0 50px rgba(224,64,251,0.35), 0 0 90px rgba(224,64,251,0.15), inset 0 0 35px rgba(224,64,251,0.12);
  animation: ledPulseDivine 1.2s ease-in-out infinite;
}
.rarity-divine .ig-card-inner::before { background: linear-gradient(135deg, #1a002e, #7b1fa2 25%, #e040fb 50%, #4a148c 75%, #1a002e); animation: rarityMythicBg 5s linear infinite; background-size: 400%; }
.rarity-divine .ig-card-rarity-name { color: #f3e5f5; }
.rarity-divine .ig-card-name { color: #ea80fc; text-shadow: 0 0 25px rgba(234,128,252,0.6), 0 0 50px rgba(224,64,251,0.3); }
.rarity-divine .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(123,31,162,0.95), rgba(224,64,251,0.95), rgba(123,31,162,0.95)); color: #f3e5f5; }
.rarity-divine .ig-sparkles { color: #ea80fc; }
.rarity-divine::before {
  content: '';
  position: absolute;
  inset: -26px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(224,64,251,0.6), rgba(224,64,251,0.18) 50%, transparent 75%);
  filter: blur(24px);
  z-index: -1;
  animation: auraPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
.rarity-divine::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: radial-gradient(circle, transparent 55%, rgba(224,64,251,0.35) 75%, transparent 90%);
  filter: blur(10px);
  z-index: -1;
  animation: auraPulse 1.3s ease-in-out infinite reverse;
  pointer-events: none;
}

/* Celestial */
.rarity-celestial .ig-card-inner {
  border: 3px solid #00e5ff;
  background: linear-gradient(180deg, rgba(0,229,255,0.3), rgba(0,151,167,0.2), rgba(5,15,20,0.95));
  box-shadow: 0 0 25px rgba(0,229,255,0.8), 0 0 60px rgba(0,229,255,0.4), 0 0 100px rgba(0,229,255,0.2), 0 0 140px rgba(0,229,255,0.08), inset 0 0 40px rgba(0,229,255,0.15);
  animation: ledPulseCelestial 1s ease-in-out infinite;
}
.rarity-celestial .ig-card-inner::before { background: linear-gradient(135deg, #001a2e, #006064 25%, #00e5ff 50%, #0097a7 75%, #001a2e); animation: rarityMythicBg 4s linear infinite; background-size: 400%; }
.rarity-celestial .ig-card-rarity-name { color: #fff; }
.rarity-celestial .ig-card-name { color: #84ffff; text-shadow: 0 0 30px rgba(132,255,255,0.7), 0 0 60px rgba(0,229,255,0.4); }
.rarity-celestial .ig-card-rarity-banner { background: linear-gradient(90deg, rgba(0,96,100,0.95), rgba(0,229,255,0.95), rgba(0,96,100,0.95)); color: #fff; }
.rarity-celestial .ig-sparkles { color: #84ffff; }
.rarity-celestial::before {
  content: '';
  position: absolute;
  inset: -32px;
  border-radius: 32px;
  background: radial-gradient(circle,
    rgba(255,255,255,0.4),
    rgba(0,229,255,0.55) 35%,
    rgba(0,229,255,0.18) 60%,
    transparent 80%);
  filter: blur(28px);
  z-index: -1;
  animation: auraPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.rarity-celestial::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: radial-gradient(circle, transparent 55%, rgba(132,255,255,0.45) 75%, transparent 92%);
  filter: blur(12px);
  z-index: -1;
  animation: auraPulse 1.1s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* --- Per-rarity stat boxes (exact values from game .stat) --- */
.rarity-common    .ig-card-stats .stat { background: rgba(120,144,156,0.2); border: 1px solid rgba(120,144,156,0.3); }
.rarity-rare      .ig-card-stats .stat { background: rgba(33,150,243,0.2);  border: 1px solid rgba(33,150,243,0.3); }
.rarity-epic      .ig-card-stats .stat { background: rgba(156,39,176,0.2);  border: 1px solid rgba(156,39,176,0.3); }
.rarity-legendary .ig-card-stats .stat { background: rgba(255,152,0,0.2);   border: 1px solid rgba(255,152,0,0.3); }
.rarity-mythic    .ig-card-stats .stat { background: rgba(255,82,82,0.2);   border: 1px solid rgba(255,82,82,0.3); }
.rarity-divine    .ig-card-stats .stat { background: rgba(224,64,251,0.2);  border: 1px solid rgba(224,64,251,0.3); }
.rarity-celestial .ig-card-stats .stat { background: rgba(0,229,255,0.2);   border: 1px solid rgba(0,229,255,0.3); }

/* --- LED Pulse Keyframes (from game) --- */
@keyframes ledPulseRare {
  0%, 100% { box-shadow: 0 0 8px rgba(30,136,229,0.4), 0 0 20px rgba(30,136,229,0.2); border-color: #1e88e5; }
  50% { box-shadow: 0 0 15px rgba(30,136,229,0.7), 0 0 35px rgba(30,136,229,0.35); border-color: #42a5f5; }
}

@keyframes ledPulseEpic {
  0%, 100% { box-shadow: 0 0 12px rgba(171,71,188,0.5), 0 0 30px rgba(171,71,188,0.25); border-color: #ab47bc; }
  50% { box-shadow: 0 0 20px rgba(171,71,188,0.8), 0 0 45px rgba(171,71,188,0.4); border-color: #ce93d8; }
}

@keyframes ledPulseLegendary {
  0%, 100% { box-shadow: 0 0 15px rgba(255,167,38,0.6), 0 0 40px rgba(255,152,0,0.3); border-color: #ffa726; }
  50% { box-shadow: 0 0 25px rgba(255,167,38,0.9), 0 0 60px rgba(255,152,0,0.5), 0 0 80px rgba(255,152,0,0.15); border-color: #ffcc02; }
}

@keyframes ledPulseMythic {
  0% { box-shadow: 0 0 20px rgba(255,82,82,0.7), 0 0 50px rgba(255,82,82,0.35); border-color: #ff5252; }
  33% { box-shadow: 0 0 25px rgba(233,30,99,0.7), 0 0 55px rgba(233,30,99,0.35); border-color: #e91e63; }
  66% { box-shadow: 0 0 25px rgba(255,152,0,0.7), 0 0 55px rgba(255,152,0,0.35); border-color: #ff9800; }
  100% { box-shadow: 0 0 20px rgba(255,82,82,0.7), 0 0 50px rgba(255,82,82,0.35); border-color: #ff5252; }
}

@keyframes ledPulseDivine {
  0% { box-shadow: 0 0 20px rgba(224,64,251,0.7), 0 0 50px rgba(224,64,251,0.35); border-color: #e040fb; }
  33% { box-shadow: 0 0 28px rgba(124,77,255,0.7), 0 0 60px rgba(124,77,255,0.35); border-color: #7c4dff; }
  66% { box-shadow: 0 0 28px rgba(179,136,255,0.8), 0 0 65px rgba(179,136,255,0.4); border-color: #b388ff; }
  100% { box-shadow: 0 0 20px rgba(224,64,251,0.7), 0 0 50px rgba(224,64,251,0.35); border-color: #e040fb; }
}

@keyframes ledPulseCelestial {
  0% { box-shadow: 0 0 25px rgba(0,229,255,0.8), 0 0 60px rgba(0,229,255,0.4), 0 0 100px rgba(0,229,255,0.2); border-color: #00e5ff; }
  25% { box-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 70px rgba(255,255,255,0.35), 0 0 110px rgba(255,255,255,0.15); border-color: #fff; }
  50% { box-shadow: 0 0 35px rgba(132,255,255,0.9), 0 0 75px rgba(132,255,255,0.45), 0 0 120px rgba(132,255,255,0.2); border-color: #84ffff; }
  75% { box-shadow: 0 0 30px rgba(0,229,255,0.85), 0 0 65px rgba(0,229,255,0.4); border-color: #18ffff; }
  100% { box-shadow: 0 0 25px rgba(0,229,255,0.8), 0 0 60px rgba(0,229,255,0.4), 0 0 100px rgba(0,229,255,0.2); border-color: #00e5ff; }
}

@keyframes rarityMythicBg {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Carousel navigation arrows */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-arrow:hover {
  background: rgba(77, 208, 225, 0.18);
  border-color: rgba(77, 208, 225, 0.45);
  color: var(--primary-light);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(77, 208, 225, 0.2);
}

/* Dots hidden — arrows only */
.carousel-dots {
  display: none;
}

/* Commands Table */
.commands-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.commands-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--secondary-light), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.commands-table {
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.commands-table thead th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.commands-table tbody td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.commands-table tbody td:first-child {
  font-family: 'Space Grotesk', monospace;
  font-weight: 600;
  color: var(--primary-light);
}

.commands-table tbody td:last-child {
  color: var(--text-secondary);
}

.commands-table tbody tr {
  transition: background var(--transition-fast);
}

.commands-table tbody tr:hover {
  background: rgba(77, 208, 225, 0.05);
}

/* Dashboard Preview */
.dashboard-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.dashboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), var(--primary-light), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.dashboard-preview {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.dashboard-preview p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.dashboard-mockup {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  text-align: left;
}

.dashboard-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(11, 26, 40, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-dot-red { background: var(--accent-red); }
.dashboard-dot-yellow { background: var(--accent-yellow); }
.dashboard-dot-green { background: var(--primary-light); }

.dashboard-window-title {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-body {
  display: flex;
  min-height: 280px;
}

.dashboard-sidebar {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px;
  background: rgba(11, 26, 40, 0.4);
  border-right: 1px solid var(--border-subtle);
}

.dashboard-nav-item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dashboard-nav-item.is-active {
  color: var(--text-primary);
  background: rgba(41, 182, 246, 0.14);
  border: 1px solid rgba(41, 182, 246, 0.3);
  font-weight: 600;
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(41, 182, 246, 0.06);
  border: 1px solid var(--border-subtle);
}

.dashboard-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dashboard-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
}

.dashboard-panel {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(41, 182, 246, 0.04);
  border: 1px solid var(--border-subtle);
}

.dashboard-panel-title {
  display: block;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dashboard-rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-rate-row:last-child {
  margin-bottom: 0;
}

.dashboard-rate-name {
  flex: 0 0 90px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dashboard-rate-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dashboard-rate-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.dashboard-rate-pct {
  flex: 0 0 44px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dashboard-mockup-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .dashboard-body {
    flex-direction: column;
  }

  .dashboard-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Twitch-themed Dashboard Section
   ============================================ */
.dashboard-section.twitch-themed {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(145, 70, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(119, 44, 232, 0.12) 0%, transparent 60%),
    var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.dashboard-section.twitch-themed::before {
  background: linear-gradient(90deg, transparent, #9146FF, #C589FF, #9146FF, transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.dashboard-section.twitch-themed .dashboard-mockup {
  border: 1px solid rgba(145, 70, 255, 0.35);
  box-shadow:
    0 0 30px rgba(145, 70, 255, 0.18),
    0 0 80px rgba(119, 44, 232, 0.08),
    inset 0 0 30px rgba(145, 70, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(145,70,255,0.05), rgba(119,44,232,0.02)),
    var(--bg-card);
}

.dashboard-section.twitch-themed .dashboard-nav-item.is-active {
  background: rgba(145, 70, 255, 0.18);
  border-color: rgba(145, 70, 255, 0.4);
}

.twitch-live-indicator {
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 auto 1rem;
  background: rgba(145, 70, 255, 0.12);
  border: 1px solid rgba(145, 70, 255, 0.4);
  border-radius: 999px;
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #C589FF;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  /* center the inline-flex on its own line */
  display: flex;
  width: max-content;
  max-width: 100%;
}

.twitch-live-indicator .live-label {
  text-shadow: 0 0 8px rgba(197, 137, 255, 0.6);
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px #ff0000, 0 0 20px rgba(255, 0, 0, 0.6);
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { opacity: 1;   transform: scale(1); box-shadow: 0 0 10px #ff0000, 0 0 20px rgba(255,0,0,0.6); }
  50%      { opacity: 0.7; transform: scale(1.25); box-shadow: 0 0 14px #ff0000, 0 0 28px rgba(255,0,0,0.8); }
}

.twitch-gradient {
  background: linear-gradient(135deg, #9146FF, #772CE8, #C589FF, #9146FF);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: twitchShift 3s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(145, 70, 255, 0.35));
}

@keyframes twitchShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.twitch-emoji {
  display: inline-block;
  animation: twitchEmojiBounce 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(145, 70, 255, 0.6));
}

@keyframes twitchEmojiBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(8deg); }
}

/* Download CTA */
.download-section {
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary-light), var(--accent-yellow), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(77, 208, 225, 0.08) 0%, transparent 60%);
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.download-section .hero-subtitle {
  margin-bottom: 2rem;
}

.system-req {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* System requirements detail box */
.system-req-box {
  max-width: 500px;
  margin: 2rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  text-align: left;
}

.system-req-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.system-req-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.system-req-box li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.system-req-box li:last-child {
  border-bottom: none;
}

.system-req-box li strong {
  color: var(--text-primary);
  min-width: 140px;
  flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile: < 768px */
@media (max-width: 767px) {
  :root {
    --section-padding: 4rem 1rem;
    --nav-height: 60px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-nav-solid);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-subtle);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .ig-rarity-card {
    flex: 0 0 240px;
    width: 240px;
    height: 380px;
  }
  .ig-card-name { font-size: 1.2rem; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .commands-table thead th,
  .commands-table tbody td {
    padding: 0.7rem 1rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .system-req-box li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .system-req-box li strong {
    min-width: auto;
  }

  .hero-logo,
  .hero-logo-emoji {
    width: 90px;
    height: 90px;
  }

  .hero-logo-emoji {
    font-size: 2.5rem;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop: 1440px+ */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   FreeDeck Product Page — Specific Styles
   ============================================ */

/* FreeDeck hero — cyan tropical theme (matches logo cyan button) */
.product-hero.freedeck-hero::before {
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(41, 182, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(77, 208, 225, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(102, 187, 106, 0.08) 0%, transparent 60%);
  animation: heroMesh 12s ease-in-out infinite alternate;
}

.freedeck-hero .hero-badge {
  background: rgba(77, 208, 225, 0.18);
  border-color: rgba(77, 208, 225, 0.4);
  color: var(--primary-light);
}

.freedeck-hero .hero-logo-emoji {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 0 40px rgba(41, 182, 246, 0.4), 0 0 80px rgba(77, 208, 225, 0.2);
  animation: logoGlowBlue 4s ease-in-out infinite alternate;
}

@keyframes logoGlowBlue {
  0% { box-shadow: 0 0 40px rgba(41, 182, 246, 0.4), 0 0 80px rgba(77, 208, 225, 0.2); }
  100% { box-shadow: 0 0 60px rgba(41, 182, 246, 0.55), 0 0 100px rgba(77, 208, 225, 0.3); }
}

.freedeck-hero .version-badge {
  background: rgba(77, 208, 225, 0.1);
  border-color: rgba(77, 208, 225, 0.2);
}

/* FreeDeck btn override — cyan theme */
.freedeck-hero .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 20px rgba(41, 182, 246, 0.35);
}

.freedeck-hero .btn-primary:hover {
  box-shadow: 0 8px 35px rgba(41, 182, 246, 0.5), 0 0 20px rgba(77, 208, 225, 0.25);
}

.freedeck-hero .btn-secondary {
  border-color: rgba(77, 208, 225, 0.25);
}

.freedeck-hero .btn-secondary:hover {
  border-color: rgba(77, 208, 225, 0.55);
  box-shadow: 0 4px 20px rgba(77, 208, 225, 0.2);
}

.freedeck-hero .btn-secondary::before {
  background: rgba(77, 208, 225, 0.1);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  .hamburger,
  .nav-overlay,
  .hero-particles,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
  }

  .glass-card {
    background: white;
    border: 1px solid #ddd;
    backdrop-filter: none;
  }

  .gradient-text,
  .gradient-text-ocean {
    -webkit-text-fill-color: #111;
    color: #111;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  * {
    animation: none !important;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(77, 208, 225, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 208, 225, 0.4);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(77, 208, 225, 0.3);
  color: var(--text-primary);
}

/* ============================================
   RETRO PIXEL EFFECTS
   ============================================ */

/* Pixel stars — twinkling dots across backgrounds */
.pixel-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 60px 70px, rgba(77,208,225,0.7), transparent),
    radial-gradient(2px 2px at 130px 40px, rgba(102,187,106,0.65), transparent),
    radial-gradient(2px 2px at 90px 100px, rgba(255,213,79,0.6), transparent),
    radial-gradient(2px 2px at 180px 20px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 40px 160px, rgba(255,107,107,0.55), transparent),
    radial-gradient(2px 2px at 150px 130px, rgba(41,182,246,0.55), transparent);
  background-size: 220px 220px;
  background-repeat: repeat;
  animation: pixelTwinkle 4s ease-in-out infinite;
  image-rendering: pixelated;
}

.pixel-stars-dim {
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 50px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 90px 90px, rgba(77,208,225,0.45), transparent),
    radial-gradient(1.5px 1.5px at 150px 30px, rgba(102,187,106,0.4), transparent),
    radial-gradient(1.5px 1.5px at 110px 150px, rgba(255,213,79,0.4), transparent),
    radial-gradient(1.5px 1.5px at 200px 100px, rgba(255,255,255,0.4), transparent);
  background-size: 250px 250px;
  background-repeat: repeat;
  animation: pixelTwinkle 6s ease-in-out infinite;
}

@keyframes pixelTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Retro synthwave floor grid (Outrun) */
.hero-retro-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 400px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.85), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85), transparent 85%);
}

.hero-retro-floor::before {
  content: '';
  position: absolute;
  inset: -10% -10% -10% -10%;
  background-image:
    linear-gradient(rgba(41, 182, 246, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 208, 225, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(70deg);
  transform-origin: 50% 100%;
  animation: retroFloorScroll 6s linear infinite;
  will-change: background-position;
}

@keyframes retroFloorScroll {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 50px, 0 0; }
}

/* Floating pixel sprites */
.pixel-sprites {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pixel-sprite {
  position: absolute;
  width: 6px;
  height: 6px;
  image-rendering: pixelated;
  animation: pixelFloat 14s ease-in-out infinite;
}

/* Pixel-art space invader-like shape using box-shadow stacks — tropical palette */
.pixel-sprite.ps-1 {
  top: 18%;
  left: 14%;
  background: var(--secondary-light);
  box-shadow:
    6px 0 0 var(--secondary-light),
    -6px 0 0 var(--secondary-light),
    0 6px 0 var(--secondary-light),
    12px 6px 0 var(--secondary-light),
    -12px 6px 0 var(--secondary-light),
    6px 12px 0 var(--secondary-light),
    -6px 12px 0 var(--secondary-light);
  opacity: 0.5;
  animation-delay: 0s;
}

.pixel-sprite.ps-2 {
  top: 60%;
  left: 80%;
  background: var(--primary-light);
  box-shadow:
    6px 0 0 var(--primary-light),
    -6px 0 0 var(--primary-light),
    0 6px 0 var(--primary-light),
    6px 6px 0 var(--primary-light),
    -6px 6px 0 var(--primary-light),
    12px 12px 0 var(--primary-light),
    -12px 12px 0 var(--primary-light);
  opacity: 0.45;
  animation-delay: -4s;
  animation-duration: 18s;
}

.pixel-sprite.ps-3 {
  top: 32%;
  left: 72%;
  background: var(--accent-yellow);
  box-shadow:
    6px 0 0 var(--accent-yellow),
    -6px 0 0 var(--accent-yellow),
    0 -6px 0 var(--accent-yellow),
    0 6px 0 var(--accent-yellow);
  opacity: 0.55;
  animation-delay: -8s;
  animation-duration: 16s;
}

/* PERF: trimmed from 4 to 3 floating pixel sprites. Each sprite is a 7-layer
   box-shadow animated with transform + filter brightness (paint-heavy), so the
   4th is hidden (HTML left intact). */
.pixel-sprite.ps-4 {
  display: none;
}

@keyframes pixelFloat {
  0%, 100% {
    transform: translate(0, 0);
    filter: brightness(1);
  }
  25% {
    transform: translate(20px, -30px);
    filter: brightness(1.25);
  }
  50% {
    transform: translate(-15px, -50px);
    filter: brightness(0.95);
  }
  75% {
    transform: translate(25px, -25px);
    filter: brightness(1.2);
  }
}

/* Pixelated decorative border accent (for cards / sections) */
.pixel-border {
  position: relative;
}

.pixel-border::after {
  content: '';
  position: absolute;
  inset: -4px;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 4px,
    rgba(77, 208, 225, 0.18) 4px 8px
  );
  z-index: -1;
  filter: blur(0.3px);
}

/* Note : l'intensité des scanlines (opacité 0.09) est définie directement
   dans la règle .hero-scanlines principale (voir « Scanline overlay »). */

/* Ensure section content stays on top of pixel stars */
.products-section .container,
.about-section .container,
.contact-section .container,
.features-section .container,
.how-section .container,
.rarity-section .container,
.consoles-section .container,
.download-section .download-content {
  position: relative;
  z-index: 1;
}

/* Allow rarity section to show free-radiating glows */
.rarity-section {
  overflow: visible;
}

/* Note : overflow visible + padding du carousel sont définis directement
   dans la règle .rarity-carousel-wrapper principale (voir section Rareté). */

/* ============================================
   NINFORGE — PRODUCT PAGE
   ============================================ */

/* Hero — tropical green theme (matches logo's green button + palm tree) */
.product-hero.ninforge-hero {
  position: relative;
}

.product-hero.ninforge-hero::before {
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(76, 175, 80, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(102, 187, 106, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(255, 213, 79, 0.08) 0%, transparent 60%);
  animation: heroMesh 12s ease-in-out infinite alternate;
}

/* Pixel grid pattern in ninforge hero (extra retro feel) */
.ninforge-pixel-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(76, 175, 80, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 187, 106, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.9), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.9), transparent 80%);
}

.ninforge-hero .hero-badge {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(102, 187, 106, 0.45);
  color: #81C784;
}

.ninforge-hero .gradient-text-purple {
  background: linear-gradient(135deg, #4CAF50, var(--secondary-light), var(--accent-yellow), #4CAF50);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.ninforge-hero .hero-logo-emoji {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4CAF50, var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  box-shadow: 0 0 40px rgba(76, 175, 80, 0.4), 0 0 80px rgba(102, 187, 106, 0.22);
  animation: logoGlowPurple 4s ease-in-out infinite alternate;
  image-rendering: pixelated;
  position: relative;
}

.ninforge-hero .hero-logo-emoji::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

@keyframes logoGlowPurple {
  0% { box-shadow: 0 0 40px rgba(76, 175, 80, 0.4), 0 0 80px rgba(102, 187, 106, 0.22); }
  100% { box-shadow: 0 0 60px rgba(76, 175, 80, 0.55), 0 0 100px rgba(102, 187, 106, 0.32); }
}

.ninforge-hero .version-badge {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(102, 187, 106, 0.25);
  color: #81C784;
}

.ninforge-hero .btn-primary {
  background: linear-gradient(135deg, #4CAF50, var(--secondary-light));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.ninforge-hero .btn-primary:hover {
  box-shadow: 0 8px 35px rgba(76, 175, 80, 0.55), 0 0 25px rgba(102, 187, 106, 0.3);
}

.ninforge-hero .btn-secondary {
  border-color: rgba(102, 187, 106, 0.3);
}

.ninforge-hero .btn-secondary:hover {
  border-color: rgba(102, 187, 106, 0.6);
  box-shadow: 0 4px 20px rgba(102, 187, 106, 0.22);
}

.ninforge-hero .btn-secondary::before {
  background: rgba(102, 187, 106, 0.12);
}

/* NinForge — tropical green step accent */
.ninforge-step .step-number {
  background: linear-gradient(135deg, #4CAF50, var(--secondary-light));
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.35);
}
.ninforge-step:hover .step-number {
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.6), 0 0 60px rgba(102, 187, 106, 0.25);
}

/* Supported consoles grid */
.consoles-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.consoles-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4CAF50, var(--secondary-light), var(--accent-yellow), transparent);
  background-size: 200% 100%;
  animation: dividerGlow 4s ease-in-out infinite;
}

.consoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.console-card {
  text-align: center;
  padding: 1.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 2px solid rgba(102, 187, 106, 0.22);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: pixelated;
}

.console-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 175, 80, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 187, 106, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.console-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(102, 187, 106, 0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 30px rgba(76, 175, 80, 0.2);
}

.console-card:hover::before {
  opacity: 0.7;
}

.console-icon {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
  display: block;
  position: relative;
}

.console-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  position: relative;
}

.console-card .console-short {
  font-size: 0.78rem;
  color: #81C784;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

/* NinForge signup form (visual only) */
.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex: 1 1 240px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(102, 187, 106, 0.3);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.signup-form input::placeholder {
  color: var(--text-muted);
}

.signup-form input:focus {
  border-color: rgba(102, 187, 106, 0.65);
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.15);
}

/* Anneau de focus visible au clavier pour le champ d'inscription */
.signup-form input:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.signup-form button {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #4CAF50, var(--secondary-light));
  color: var(--bg-primary);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.pricing-note {
  font-size: 1.1rem;
  color: #81C784;
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
}

/* NinForge — tropical green system req box */
.ninforge-req h4 {
  color: #81C784;
}

.ninforge-req {
  border-color: rgba(102, 187, 106, 0.25);
}

/* ============================================
   TROPICAL TOUCHES — Palm trees + wave dividers
   ============================================ */

/* Palm tree silhouette — inline SVG via background-image */
.palm-tree {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'><path d='M48 140V72c-4-2-7-6-11-9-5-4-12-6-19-5 5-4 12-6 18-4-3-5-7-9-12-12 6-1 12 1 17 5-1-6 0-13 4-18 2 6 2 13 0 19 5-3 11-5 18-4-4 4-8 7-13 9 7-1 14 2 19 6-7-1-13 0-19 3-3 2-6 5-9 7v68z' fill='%2366BB6A'/><path d='M46 75h8v65h-8z' fill='%23795548'/></svg>");
  animation: palmSway 6s ease-in-out infinite;
  transform-origin: bottom center;
}

.palm-tree.pt-1 { left: 4%; bottom: 0; width: 70px; height: 100px; opacity: 0.12; animation-delay: 0s; }
.palm-tree.pt-2 { right: 6%; bottom: 0; width: 90px; height: 130px; opacity: 0.15; animation-delay: -2s; animation-duration: 7s; }
.palm-tree.pt-3 { left: 18%; bottom: 0; width: 55px; height: 80px; opacity: 0.1; animation-delay: -3.5s; animation-duration: 8s; }

@keyframes palmSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* Wave divider — sits between sections */
.wave-divider {
  position: relative;
  width: 100%;
  height: 60px;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.wave-divider::before,
.wave-divider::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  width: 120%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 200px 60px;
  background-position: 0 50%;
}

.wave-divider::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0 30 Q25 10 50 30 T100 30 T150 30 T200 30 V60 H0 Z' fill='%234DD0E1' fill-opacity='0.18'/></svg>");
  animation: waveScroll 14s linear infinite;
}

.wave-divider::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0 35 Q25 20 50 35 T100 35 T150 35 T200 35 V60 H0 Z' fill='%2329B6F6' fill-opacity='0.12'/></svg>");
  animation: waveScroll 22s linear infinite reverse;
  background-position: 100px 50%;
}

@keyframes waveScroll {
  0% { background-position-x: 0; }
  100% { background-position-x: 200px; }
}

/* Mouvement réduit — neutralise quasiment toutes les animations et transitions
   pour l'accessibilité (troubles vestibulaires) et la performance */
@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;
  }
}

/* ============================================================
   PERF MOBILE — hero allégé sur petit écran (<= 768px)
   Sur mobile, les couches décoratives animées du hero (particules,
   hexagones, triangles, grille en perspective, scanline) + le flou
   "backdrop-filter" du menu fixe provoquent du lag au scroll.
   On retire ces couches purement décoratives et on fige le dégradé :
   le hero reste joli (rendu GPU léger) mais devient fluide.
   ============================================================ */
@media (max-width: 768px) {
  /* Fond coloré en défilement normal (le 'fixed' lag au scroll sur mobile) */
  body { background-attachment: scroll; }

  /* Couches décoratives : retirées (aucune info essentielle) */
  .hero-grid,
  .hero-scanlines,
  .hero-retro-floor,
  .particle,
  .hero-hex,
  .hero-tri {
    display: none !important;
  }

  /* Dégradé "mesh" du hero : on fige l'animation (plus de repaint/frame) */
  .hero::before,
  .product-hero::before,
  .hero-brand-logo {
    animation: none !important;
    will-change: auto !important;
  }

  /* Plus de flou derrière le menu fixe : très coûteux au scroll mobile */
  .navbar,
  .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ============================================
   PDFLIFE — PRODUCT PAGE (yellow/gold theme)
   ============================================ */

.gradient-text-gold {
  background: linear-gradient(135deg, var(--accent-yellow), #FFA000, #FFE082, var(--accent-yellow));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.product-hero.pdflife-hero::before {
  background:
    radial-gradient(ellipse 60% 60% at 30% 40%, rgba(255, 213, 79, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(255, 160, 0, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(255, 224, 130, 0.1) 0%, transparent 60%);
  animation: heroMesh 12s ease-in-out infinite alternate;
}

.pdflife-hero .hero-badge {
  background: rgba(255, 213, 79, 0.2);
  border-color: rgba(255, 213, 79, 0.45);
  color: var(--accent-yellow);
}

.pdflife-hero .hero-logo-emoji {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-yellow), #FFA000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  box-shadow: 0 0 40px rgba(255, 213, 79, 0.4), 0 0 80px rgba(255, 160, 0, 0.22);
  animation: logoGlowGold 4s ease-in-out infinite alternate;
}

@keyframes logoGlowGold {
  0% { box-shadow: 0 0 40px rgba(255, 213, 79, 0.4), 0 0 80px rgba(255, 160, 0, 0.22); }
  100% { box-shadow: 0 0 60px rgba(255, 213, 79, 0.6), 0 0 100px rgba(255, 160, 0, 0.34); }
}

.pdflife-hero .version-badge {
  background: rgba(255, 213, 79, 0.12);
  border-color: rgba(255, 213, 79, 0.3);
  color: var(--accent-yellow);
}

.pdflife-hero .btn-primary {
  background: linear-gradient(135deg, var(--accent-yellow), #FFA000);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(255, 213, 79, 0.4);
}

.pdflife-hero .btn-primary:hover {
  box-shadow: 0 8px 35px rgba(255, 213, 79, 0.55), 0 0 25px rgba(255, 160, 0, 0.3);
}

.pdflife-hero .btn-secondary {
  border-color: rgba(255, 213, 79, 0.3);
}

.pdflife-hero .btn-secondary:hover {
  border-color: rgba(255, 213, 79, 0.6);
  box-shadow: 0 4px 20px rgba(255, 213, 79, 0.22);
}

.pdflife-hero .btn-secondary::before {
  background: rgba(255, 213, 79, 0.12);
}

/* Play Store button */
.playstore-btn {
  background: linear-gradient(135deg, var(--accent-yellow), #FFA000) !important;
  color: var(--bg-primary) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(255, 213, 79, 0.4);
}

.playstore-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(255, 213, 79, 0.55), 0 0 25px rgba(255, 160, 0, 0.3);
}

.playstore-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-primary);
  color: var(--accent-yellow);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
}

.playstore-note,
.download-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

.download-warning {
  font-size: 0.82rem;
  color: #ffd54f;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
}

/* Disabled / coming-soon primary buttons (keeps each page's theme color) */
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(15%);
  box-shadow: none;
}

.btn:disabled:hover,
.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled:hover::after,
.btn-primary[disabled]:hover::after,
.btn-primary[aria-disabled="true"]:hover::after {
  animation: none;
}

.pdflife-req h4 {
  color: var(--accent-yellow);
}

.pdflife-req {
  border-color: rgba(255, 213, 79, 0.25);
}

/* ============================================
   EXTRA GAMING / ANIME / OTAKU EFFECTS
   ============================================ */

/* --- A. Tag highlight (used for Twitch Extension) --- */
.tag-highlight {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.25), rgba(100, 65, 165, 0.25)) !important;
  border: 1px solid rgba(145, 70, 255, 0.55) !important;
  color: #cbb3ff !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(145, 70, 255, 0.2);
  animation: tagPulse 2.5s ease-in-out infinite;
}

@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(145, 70, 255, 0.2); }
  50% { box-shadow: 0 0 22px rgba(145, 70, 255, 0.45); }
}

/* --- C. Sparkle effects on important elements --- */
.sparkle-effect {
  position: relative;
  display: inline-block;
}

.sparkle-effect::before,
.sparkle-effect::after {
  content: '✨';
  position: absolute;
  font-size: 12px;
  pointer-events: none;
  animation: sparkleTwinkle 2.2s ease-in-out infinite;
}

.sparkle-effect::before {
  top: -8px;
  right: -6px;
  animation-delay: 0s;
}

.sparkle-effect::after {
  bottom: -6px;
  left: -8px;
  animation-delay: 1.1s;
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* Subtle sparkles on hero brand logo */
/* .hero-brand-logo est déjà en position: relative dans sa règle principale
   (voir « Hero brand logo ») : les étincelles s'y ancrent directement. */

/* --- E. Glitch effect for text --- */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: glitchSubtle 4s infinite;
}

@keyframes glitchSubtle {
  0%, 92%, 100% {
    text-shadow:
      0.5px 0 rgba(41, 182, 246, 0.6),
      -0.5px 0 rgba(255, 107, 107, 0.6);
  }
  93% {
    text-shadow:
      3px 0 rgba(41, 182, 246, 0.7),
      -3px 0 rgba(255, 107, 107, 0.7);
    transform: translateX(-1px);
  }
  94% {
    text-shadow:
      -3px 0 rgba(41, 182, 246, 0.7),
      3px 0 rgba(255, 107, 107, 0.7);
    transform: translateX(1px);
  }
  95%, 99% {
    text-shadow:
      0.5px 0 rgba(41, 182, 246, 0.6),
      -0.5px 0 rgba(255, 107, 107, 0.6);
    transform: translateX(0);
  }
}

/* Soft glitch (used in PDFLife title) */
.glitch-soft {
  position: relative;
  display: inline-block;
  animation: glitchSoftKey 7s infinite;
}

@keyframes glitchSoftKey {
  0%, 96%, 100% { transform: translateX(0); filter: none; }
  97% { transform: translateX(-2px); filter: hue-rotate(15deg); }
  98% { transform: translateX(2px); filter: hue-rotate(-15deg); }
}

/* --- B. Anime "speed lines" effect on hover for hero CTAs --- */
.btn.btn-large {
  position: relative;
  z-index: 1;
}

.btn.btn-primary.btn-large::before {
  content: '';
  position: absolute;
  inset: -3px;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -100% 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn.btn-primary.btn-large:hover::before {
  opacity: 1;
  animation: speedSweep 1.5s linear infinite;
}

@keyframes speedSweep {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* --- F. Anime-style mini loading bars on feature card hover --- */
/* Override volontaire : la règle .feature-card principale n'a pas de
   position ; on l'ancre ici pour le pseudo-élément ::after (barre de chargement). */
.feature-card {
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 1.8rem;
  right: 1.8rem;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(77, 208, 225, 0.7),
    rgba(102, 187, 106, 0.7),
    rgba(255, 213, 79, 0.7));
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(77, 208, 225, 0.4);
  pointer-events: none;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

/* --- G. Manga-style "POP" speech bubbles floating in backgrounds (subtle) --- */
/* .features-section et .how-section sont déjà en position: relative dans
   leurs règles principales : ces pseudo-éléments s'y ancrent directement. */
.features-section .container::before {
  content: '★';
  position: absolute;
  top: 12%;
  left: 4%;
  font-size: 3.5rem;
  color: rgba(255, 213, 79, 0.08);
  pointer-events: none;
  animation: bubbleFloat 8s ease-in-out infinite;
  z-index: 0;
}

.features-section .container::after {
  content: '✦';
  position: absolute;
  bottom: 18%;
  right: 6%;
  font-size: 3rem;
  color: rgba(77, 208, 225, 0.08);
  pointer-events: none;
  animation: bubbleFloat 10s ease-in-out 2s infinite;
  z-index: 0;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(8deg); opacity: 1; }
}

/* --- D. Pixel arrow decorations (utility class) --- */
.pixel-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--accent-yellow);
  filter: drop-shadow(0 0 6px rgba(255, 213, 79, 0.6));
  animation: pixelArrowPulse 1.4s ease-in-out infinite;
  vertical-align: middle;
  margin: 0 0.4rem;
  image-rendering: pixelated;
}

@keyframes pixelArrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* --- RPG-style cursor hint on product card hover (subtle) --- */
/* Override volontaire : la règle .product-card-link principale n'a pas de
   position ; on l'ancre ici pour le pseudo-élément ::after (flèche RPG). */
.product-card-link {
  position: relative;
}

.product-card-link::after {
  content: '▶';
  position: absolute;
  top: 18px;
  right: -28px;
  color: var(--accent-yellow);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 0 12px rgba(255, 213, 79, 0.7);
  pointer-events: none;
}

.product-card-link:hover::after {
  opacity: 1;
  transform: translateX(0);
  animation: pixelArrowPulse 1s ease-in-out infinite;
}

/* ============================================
   KONAMI CODE EASTER EGG OVERLAY
   ============================================ */

.konami-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 22, 32, 0.92), rgba(0, 0, 0, 0.96));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: konamiFadeIn 0.4s ease-out;
  overflow: hidden;
}

@keyframes konamiFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.konami-card {
  background: linear-gradient(135deg, rgba(21, 41, 58, 0.95), rgba(15, 30, 43, 0.95));
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--accent-yellow), var(--accent-red), var(--primary-light), var(--secondary-light), var(--accent-yellow)) 1;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 460px;
  box-shadow:
    0 0 60px rgba(255, 213, 79, 0.4),
    0 0 120px rgba(255, 107, 107, 0.25);
  animation: konamiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

@keyframes konamiPop {
  0% { transform: scale(0) rotate(-15deg); }
  60% { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.konami-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: konamiBounce 1.2s ease-in-out infinite;
}

@keyframes konamiBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.konami-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-red), var(--primary-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}

.konami-msg {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.konami-sub {
  color: var(--accent-yellow);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 12px rgba(255, 213, 79, 0.5);
}

.konami-close {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-red));
  color: var(--bg-primary);
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.konami-close:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 213, 79, 0.5);
}

.konami-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: konamiSparkFly 1.4s ease-out forwards;
  z-index: 1;
}

@keyframes konamiSparkFly {
  0% {
    transform: scale(0) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1.4) translate(calc((var(--rand-x, 0) * 1px)), calc((var(--rand-y, 0) * 1px)));
    opacity: 0;
  }
}

/* ============================================
   KONAMI SECRET WAIFU UNLOCK (waifucatch.html)
   ============================================ */
#konami-secret-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: konamiSecretFadeIn 0.5s ease;
  overflow-y: auto;
  padding: 20px;
}
#konami-secret-overlay.active { display: flex; }

@keyframes konamiSecretFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.konami-secret-content {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  text-align: center;
  position: relative;
}

.konami-confetti {
  position: absolute;
  inset: -50px;
  background-image:
    radial-gradient(circle, var(--accent-yellow) 2px, transparent 2px),
    radial-gradient(circle, var(--accent-red) 2px, transparent 2px),
    radial-gradient(circle, var(--primary-light) 2px, transparent 2px),
    radial-gradient(circle, var(--secondary-light) 2px, transparent 2px);
  background-size: 80px 80px, 120px 120px, 100px 100px, 90px 90px;
  background-position: 0 0, 40px 40px, 0 50px, 60px 0;
  animation: confettiFall 4s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes confettiFall {
  from { background-position-y: 0, 40px, 50px, 0; }
  to { background-position-y: 600px, 640px, 650px, 600px; }
}

.konami-secret-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-red));
  color: var(--bg-primary);
  font-weight: 800;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: badgeShake 0.5s ease infinite alternate;
  position: relative;
  z-index: 2;
}
@keyframes badgeShake {
  from { transform: scale(1) rotate(-2deg); }
  to { transform: scale(1.05) rotate(2deg); }
}

.konami-secret-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin: 0 0 10px;
  position: relative;
  z-index: 2;
}

.rainbow-text {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow), var(--secondary-light), var(--primary-light), #9146FF);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 3s linear infinite;
}
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Waifu card with celestial rarity */
.konami-waifu-card {
  width: 280px;
  height: 380px;
  margin: 30px auto;
  border-radius: 16px;
  border: 3px solid #00e5ff;
  background: linear-gradient(180deg, rgba(0,229,255,0.3), rgba(0,151,167,0.2), rgba(5,15,20,0.95));
  box-shadow:
    0 0 25px rgba(0,229,255,0.8),
    0 0 60px rgba(0,229,255,0.4),
    0 0 100px rgba(0,229,255,0.2);
  overflow: hidden;
  position: relative;
  animation: cardEntry 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

@keyframes cardEntry {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.konami-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0,229,255,0.3), transparent 60%);
  pointer-events: none;
}

.konami-card-image {
  width: 100%;
}

.konami-mystery-silhouette {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  font-weight: 800;
  color: rgba(0,229,255,0.4);
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(224,64,251,0.1));
  text-shadow: 0 0 30px rgba(0,229,255,0.8);
  animation: mysteryPulse 2s ease-in-out infinite;
}
@keyframes mysteryPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.konami-card-info {
  padding: 16px;
  position: relative;
  z-index: 1;
}
.konami-rarity {
  color: #00e5ff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.konami-name {
  font-size: 24px;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 10px rgba(0,229,255,0.6);
  margin-bottom: 8px;
}
.konami-quote {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.konami-instruction {
  margin: 30px 0;
  position: relative;
  z-index: 2;
}
.konami-instruction p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 8px;
}
.konami-instruction-bottom {
  font-size: 14px;
  margin-top: 12px !important;
}
.konami-instruction-bottom code {
  background: rgba(145,70,255,0.15);
  color: #c89bff;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}
.konami-code-display {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,213,79,0.5);
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.konami-code-display code {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 2px;
  background: transparent;
  padding: 0;
}
.copy-code-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s;
  font-family: inherit;
}
.copy-code-btn:hover { transform: scale(1.05); }
.copy-code-btn.copied { background: linear-gradient(135deg, #4CAF50, var(--secondary-light)); }

.konami-close-btn {
  background: linear-gradient(135deg, var(--accent-red), #E53935);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s;
  font-family: inherit;
  position: relative;
  z-index: 2;
}
.konami-close-btn:hover { transform: scale(1.05); }

@media (max-width: 600px) {
  .konami-secret-content { padding: 20px; }
  .konami-secret-title { font-size: 1.4rem; }
  .konami-waifu-card { width: 240px; height: 340px; }
  .konami-mystery-silhouette { height: 220px; font-size: 100px; }
}

/* ============================================
   Legal Pages (Mentions Légales, Confidentialité)
   ============================================ */

.legal-hero {
  position: relative;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(77,208,225,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(102,187,106,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, #0d1f2d 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,208,225,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,208,225,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.legal-hero .legal-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-light);
  background: rgba(77,208,225,0.10);
  border: 1px solid rgba(77,208,225,0.3);
  border-radius: 999px;
  text-transform: uppercase;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.legal-hero .legal-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.legal-page {
  background: var(--bg-primary);
  padding: 4rem 1.5rem 5rem;
  position: relative;
}

.legal-page .legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page .legal-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.legal-page .legal-section:hover {
  border-color: rgba(77,208,225,0.3);
  transform: translateY(-2px);
}

.legal-page .legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--primary-light);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legal-page .legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-light));
  border-radius: 4px;
  flex-shrink: 0;
}

.legal-page .legal-section h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-primary);
}

.legal-page .legal-section p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 0.9rem;
}

.legal-page .legal-section p:last-child { margin-bottom: 0; }

.legal-page .legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.legal-page .legal-section li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.legal-page .legal-section li::before {
  content: '▹';
  color: var(--primary-light);
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-size: 0.9rem;
}

.legal-page .legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-page .legal-section a {
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(77,208,225,0.3);
  transition: border-color 0.2s, color 0.2s;
}

.legal-page .legal-section a:hover {
  color: #80deea;
  border-bottom-color: #80deea;
}

.legal-page .legal-section code,
.legal-page .legal-section .legal-code {
  font-family: 'Space Grotesk', monospace;
  background: rgba(77,208,225,0.08);
  color: #80deea;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  border: 1px solid rgba(77,208,225,0.15);
  font-size: 0.88em;
}

.legal-page .legal-section blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary-light);
  background: rgba(77,208,225,0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.legal-page .legal-updated {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.7rem 1.4rem;
  background: rgba(77,208,225,0.10);
  border: 1px solid rgba(77,208,225,0.3);
  border-radius: 999px;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.legal-page .legal-back:hover {
  background: rgba(77,208,225,0.18);
  transform: translateX(-2px);
  box-shadow: 0 4px 18px rgba(77,208,225,0.2);
}

@media (max-width: 640px) {
  .legal-hero { padding: 6rem 1.25rem 3rem; }
  .legal-hero h1 { font-size: 1.85rem; }
  .legal-page { padding: 2.5rem 1rem 4rem; }
  .legal-page .legal-section { padding: 1.5rem 1.25rem; }
  .legal-page .legal-section h2 { font-size: 1.15rem; }
}

/* ============================================
   ISLAND GAMING OTAKU — BRAND IDENTITY LAYER
   Tropical (La Réunion) + Gaming + Otaku/Anime
   All animations are CSS-only and respect
   prefers-reduced-motion (handled globally above).
   ============================================ */

/* ── Hero warm brand line ── */
.hero-brand-line {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  margin: 0.2rem auto 1.1rem;
  max-width: 560px;
  background: linear-gradient(135deg, var(--accent-yellow), #FF8A65, var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
}

/* ── Tropical sun glow behind the hero ── */
.hero-sun-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,213,79,0.22) 0%,
    rgba(255,138,101,0.12) 35%,
    rgba(41,182,246,0.06) 60%,
    transparent 72%);
  filter: blur(8px);
  animation: sunBreath 7s ease-in-out infinite;
}

@keyframes sunBreath {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* ── Anime kawaii sparkles drifting in the hero ── */
.kawaii-sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.kawaii-spark {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0;
  color: var(--accent-yellow);
  text-shadow: 0 0 10px currentColor, 0 0 18px currentColor;
  animation: kawaiiTwinkle 5s ease-in-out infinite;
  will-change: transform, opacity;
}

.kawaii-spark.ks-1 { top: 18%; left: 14%; font-size: 1.3rem; animation-delay: 0s;   color: var(--accent-yellow); }
.kawaii-spark.ks-2 { top: 30%; right: 16%; font-size: 0.9rem; animation-delay: 1.1s; color: var(--primary-light); }
.kawaii-spark.ks-3 { top: 62%; left: 20%;  font-size: 1rem;   animation-delay: 2.2s; color: #FF8A65; }
.kawaii-spark.ks-4 { top: 24%; left: 48%;  font-size: 0.85rem; animation-delay: 3s;  color: var(--secondary-light); }
.kawaii-spark.ks-5 { top: 70%; right: 22%; font-size: 1.2rem; animation-delay: 1.8s; color: var(--accent-yellow); }

@keyframes kawaiiTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  20%      { opacity: 1; transform: scale(1.1) rotate(45deg); }
  50%      { opacity: 0.7; transform: scale(0.9) rotate(160deg); }
  80%      { opacity: 0.2; transform: scale(0.6) rotate(280deg); }
}

/* ── Product / glass card tropical glow + anime speed-lines on hover ── */
.product-card,
.glass-card {
  position: relative;
}

.product-card-link:hover .product-card,
.feature-card:hover,
.step-card:hover {
  box-shadow:
    0 10px 40px rgba(0,0,0,0.35),
    0 0 0 1px rgba(77,208,225,0.35),
    0 0 30px rgba(255,213,79,0.12),
    0 0 50px rgba(41,182,246,0.12);
}

/* Anime speed-lines that sweep across cards on hover */
.product-card::after,
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.08) 47%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.08) 53%,
    transparent 60%,
    transparent 100%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: opacity 0.3s ease;
}

.product-card-link:hover .product-card::after,
.feature-card:hover::after {
  opacity: 1;
  animation: cardShine 0.9s ease-out;
}

@keyframes cardShine {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}

/* ── Button shine sweep on hover ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btnShine 0.7s ease-out;
}

@keyframes btnShine {
  from { left: -80%; }
  to   { left: 130%; }
}

/* ── Soft kawaii accent blob on section titles ── */
.section-title .gradient-text::after,
.section-title .gradient-text-ocean::after {
  content: ' ✦';
  font-size: 0.55em;
  color: var(--accent-yellow);
  -webkit-text-fill-color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(255,213,79,0.5);
  vertical-align: super;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .hero-sun-glow { width: 320px; height: 320px; }
  .kawaii-spark { font-size: 0.85rem !important; }
}
