/* ═══════════════════════════════════════════════════════════════
   DK_PROD ACADEMY - ULTIMATE 2026 DESIGN SYSTEM
   Cutting-edge design: Aurora gradients, 3D morphism, micro-animations
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────── FONTS ──────────────── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

/* ──────────────── CSS CUSTOM PROPERTIES ──────────────── */
:root {
  /* === COLORS === */
  /* Primary Palette */
  --color-lime: #ccff00;
  --color-lime-rgb: 204, 255, 0;
  --color-cyan: #00ffff;
  --color-cyan-rgb: 0, 255, 255;
  --color-magenta: #ff00ff;
  --color-magenta-rgb: 255, 0, 255;
  --color-pink: #ff006e;
  --color-pink-rgb: 255, 0, 110;
  --color-orange: #ff6b00;
  --color-orange-rgb: 255, 107, 0;
  --color-purple: #8b5cf6;
  --color-purple-rgb: 139, 92, 246;
  --color-blue: #3b82f6;
  --color-blue-rgb: 59, 130, 246;
  --color-green: #22c55e;
  --color-green-rgb: 34, 197, 94;

  /* Neutral Palette */
  --color-white: #ffffff;
  --color-black: #000000;
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-elevated: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);

  /* Border Colors */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(204, 255, 0, 0.4);

  /* === GRADIENTS === */
  --gradient-aurora: linear-gradient(
    135deg,
    #ff006e 0%,
    #8b5cf6 25%,
    #00ffff 50%,
    #ccff00 75%,
    #ff006e 100%
  );

  --gradient-lime-cyan: linear-gradient(135deg, #ccff00 0%, #00ffff 100%);
  --gradient-pink-purple: linear-gradient(135deg, #ff006e 0%, #8b5cf6 100%);
  --gradient-cyan-purple: linear-gradient(135deg, #00ffff 0%, #8b5cf6 100%);
  --gradient-lime-green: linear-gradient(135deg, #ccff00 0%, #22c55e 100%);

  --gradient-glow-lime: radial-gradient(
    circle at center,
    rgba(204, 255, 0, 0.15) 0%,
    transparent 70%
  );
  --gradient-glow-cyan: radial-gradient(
    circle at center,
    rgba(0, 255, 255, 0.15) 0%,
    transparent 70%
  );
  --gradient-glow-pink: radial-gradient(
    circle at center,
    rgba(255, 0, 110, 0.15) 0%,
    transparent 70%
  );

  --gradient-mesh:
    radial-gradient(
      ellipse 80% 50% at 20% 40%,
      rgba(204, 255, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 80% at 80% 60%,
      rgba(0, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 40% 40% at 50% 90%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    );

  --gradient-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");

  /* === SHADOWS === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25), 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3), 0 32px 72px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.35), 0 48px 96px rgba(0, 0, 0, 0.3);

  --shadow-glow-lime:
    0 0 30px rgba(204, 255, 0, 0.3), 0 0 60px rgba(204, 255, 0, 0.15);
  --shadow-glow-cyan:
    0 0 30px rgba(0, 255, 255, 0.3), 0 0 60px rgba(0, 255, 255, 0.15);
  --shadow-glow-pink:
    0 0 30px rgba(255, 0, 110, 0.3), 0 0 60px rgba(255, 0, 110, 0.15);
  --shadow-glow-purple:
    0 0 30px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);

  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-inner-glow: inset 0 0 20px rgba(204, 255, 0, 0.1);

  /* === TYPOGRAPHY === */
  --font-display:
    "Outfit", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:
    "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */
  --text-7xl: 4.5rem; /* 72px */
  --text-8xl: 6rem; /* 96px */
  --text-9xl: 8rem; /* 128px */

  /* === SPACING === */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-32: 8rem; /* 128px */
  --space-40: 10rem; /* 160px */

  /* === BORDERS === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-3xl: 48px;
  --radius-full: 9999px;

  /* === TRANSITIONS === */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --duration-instant: 50ms;
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;

  /* === Z-INDEX === */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Aurora Background Effect */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: -2;
}

/* Noise Texture Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-noise);
  opacity: 0.015;
  pointer-events: none;
  z-index: -1;
}

/* Selection */
::selection {
  background: rgba(204, 255, 0, 0.3);
  color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

/* Images */
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ──────────────── TYPOGRAPHY ──────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-text {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.heading-1 {
  font-size: clamp(var(--text-5xl), 10vw, var(--text-9xl));
}
.heading-2 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
}
.heading-3 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}
.heading-4 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}
.heading-5 {
  font-size: clamp(var(--text-xl), 2vw, var(--text-3xl));
}
.heading-6 {
  font-size: clamp(var(--text-lg), 1.5vw, var(--text-2xl));
}

/* Gradient Text */
.text-gradient {
  background: var(--gradient-lime-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-aurora {
  background: var(--gradient-aurora);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aurora-shift 8s ease-in-out infinite;
}

.text-gradient-pink {
  background: var(--gradient-pink-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──────────────── LAYOUT ──────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 800px;
}

.container-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-6);
}

@media (min-width: 1600px) {
  .container-fluid {
    padding: 0 var(--space-12);
  }
}

/* Responsive Text Fixes */
.card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.875rem); /* Responsive resizing */
  font-weight: 700;
  margin-bottom: var(--space-4);
  word-wrap: break-word;
}

.card-price {
  font-family: var(--font-display);
  font-size: clamp(
    2rem,
    4vw,
    3.5rem
  ); /* Smaller max size to prevent overflow */
  font-weight: 800;
  background: var(--gradient-lime-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  line-height: 1;
  word-break: break-all; /* Prevent overflow */
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid System */
/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
  /* Default: try to fit as many as possible (4 on wide screens) */
  grid-template-columns: repeat(4, 1fr);
}

/* Laptop/Tablet: Switch to 2x2 grid as requested */
@media (max-width: 1400px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* Mobile: Stack 1 column */
@media (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Typography refinements to prevent overflow */
.card-title {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem); /* Dynamically scale text */
  word-wrap: normal; /* Avoid breaking words explicitly unless necessary */
  hyphens: manual;
}

.card-price {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Scale price text */
  white-space: nowrap; /* Never wrap the price */
  letter-spacing: -1px;
}

/* ──────────────── NAVIGATION ──────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-4) 0; /* Vertical padding only, full width horizontal */
  transition: all var(--duration-normal) var(--ease-out-expo);
  width: 100%;
}

/* ... existing styles ... */

/* Mobile view: Simplify cards to "buttons with icons" style (compact) */
@media (max-width: 768px) {
  .card-description,
  .card-features {
    display: none; /* Hide detailed text on mobile */
  }

  .card-3d {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
  }

  .card-price {
    font-size: 2rem;
    margin-bottom: var(--space-4);
  }
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-8); /* Increased to 32px to match Cabinet Sidebar */
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  transition: transform var(--duration-fast) var(--ease-out-back);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo-accent {
  color: var(--color-lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-lime-cyan);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

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

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

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-lime-cyan);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-back);
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.25);
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-lime);
}

.nav-cta:hover::before {
  transform: translateX(100%);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

/* ──────────────── HERO ──────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-32) var(--space-6) var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 12vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}

.hero-title span {
  display: block;
}

.hero-highlight {
  position: relative;
  display: inline-block;
}

.hero-highlight::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: var(--gradient-glow-lime);
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-description {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-10);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: float 8s ease-in-out infinite;
  transition: all var(--duration-normal) var(--ease-out-back);
  pointer-events: auto;
}

.floating-element:hover {
  transform: scale(1.2) rotate(10deg);
  border-color: var(--color-lime);
  box-shadow: var(--shadow-glow-lime);
}

.floating-element:nth-child(1) {
  animation-delay: 0s;
}
.floating-element:nth-child(2) {
  animation-delay: 1s;
}
.floating-element:nth-child(3) {
  animation-delay: 2s;
}
.floating-element:nth-child(4) {
  animation-delay: 0.5s;
}
.floating-element:nth-child(5) {
  animation-delay: 1.5s;
}
.floating-element:nth-child(6) {
  animation-delay: 2.5s;
}

/* ──────────────── BUTTONS ──────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-back);
  white-space: nowrap;
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-lime-cyan);
  color: var(--bg-primary);
  box-shadow: 0 8px 32px rgba(204, 255, 0, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-lime);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

/* Icon Button */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.btn-icon:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-default);
}

/* ──────────────── CARDS ──────────────── */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.card:hover {
  background: var(--bg-glass);
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 3D Card */
.card-3d {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  transition: all var(--duration-slow) var(--ease-out-expo);
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-3d .btn {
  margin-top: auto; /* Pushes button to bottom */
}

.card-3d::before {
  content: "";
  position: absolute;
  top: -1px; /* Cover the border */
  left: -1px; /* Start at the very edge (including border) */
  right: -1px; /* End at the very edge */
  height: 6px;
  background: var(--gradient-lime-cyan);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; /* Follow the rounding exactly */
  clip-path: inset(0 50% 0 50%); /* Hidden by default (center-out) */
  z-index: 1; /* Ensure its above the border */
  transition: clip-path var(--duration-normal) var(--ease-out-expo);
}

.card-3d::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--gradient-lime-cyan);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.card-3d:hover {
  transform: translateY(-12px) rotateX(2deg);
  border-color: rgba(204, 255, 0, 0.3);
  box-shadow: var(--shadow-xl);
}

.card-3d:hover::before {
  clip-path: inset(0 0 0 0); /* Reveal full width */
}

.card-3d:hover::after {
  opacity: 0.15;
}

/* Card Components */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-lime-cyan);
  color: var(--bg-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.card-badge-pink {
  background: var(--gradient-pink-purple);
  color: var(--color-white);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.card-price {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  background: var(--gradient-lime-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  line-height: 1;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.card-features {
  list-style: none;
  margin-bottom: var(--space-8);
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features li:hover {
  color: var(--text-primary);
  padding-left: var(--space-2);
}

.card-features li span {
  color: var(--color-lime);
  font-weight: 600;
}

/* Glass Card */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-default);
}

/* ──────────────── STATS ──────────────── */
.stats {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out-back);
}

.stat-item:hover {
  background: var(--bg-glass);
  transform: translateY(-8px) scale(1.02);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  background: var(--gradient-lime-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ──────────────── FORMS ──────────────── */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

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

.form-input:focus {
  outline: none;
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.15);
}

.form-input:hover:not(:focus) {
  border-color: var(--border-strong);
}

/* ──────────────── FOOTER ──────────────── */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

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

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ──────────────── ANIMATIONS ──────────────── */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Animation Classes */
.animate-fade-in-up {
  animation: fade-in-up 0.8s var(--ease-out-expo) forwards;
}

.animate-fade-in-down {
  animation: fade-in-down 0.8s var(--ease-out-expo) forwards;
}

.animate-scale-in {
  animation: scale-in 0.6s var(--ease-out-back) forwards;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}

/* ──────────────── UTILITY CLASSES ──────────────── */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: var(--space-2);
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}
.gap-8 {
  gap: var(--space-8);
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

.mt-4 {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-6 {
  margin-bottom: var(--space-6);
}
.mb-8 {
  margin-bottom: var(--space-8);
}

.p-4 {
  padding: var(--space-4);
}
.p-6 {
  padding: var(--space-6);
}
.p-8 {
  padding: var(--space-8);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}

.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}

.opacity-0 {
  opacity: 0;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-100 {
  opacity: 1;
}

.pointer-events-none {
  pointer-events: none;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}

.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-50 {
  z-index: 50;
}

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-5);
  }

  .nav-links {
    gap: var(--space-6);
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav {
    padding: var(--space-4) var(--space-5);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-24) var(--space-5) var(--space-16);
  }

  .hero-title {
    font-size: clamp(var(--text-4xl), 14vw, var(--text-6xl));
  }

  .section {
    padding: var(--space-16) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .floating-element {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .card-3d {
    padding: var(--space-6);
  }

  .card-price {
    font-size: var(--text-5xl);
  }

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

  .stat-number {
    font-size: var(--text-5xl);
  }

  .footer-grid {
    gap: var(--space-8);
  }

  .btn {
    padding: var(--space-4) var(--space-6);
  }

  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .stat-item {
    padding: var(--space-4);
  }

  .stat-number {
    font-size: var(--text-4xl);
  }

  .card-title {
    font-size: var(--text-2xl);
  }

  .card-price {
    font-size: var(--text-4xl);
  }
}

/* ──────────────── SPECIAL COMPONENTS ──────────────── */

/* Telegram Button */
.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #00a2e8 100%);
  color: var(--color-white);
  box-shadow: 0 8px 32px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  box-shadow: 0 12px 40px rgba(0, 136, 204, 0.4);
}

.btn-telegram svg {
  width: 20px;
  height: 20px;
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-default);
  border-top-color: var(--color-lime);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-glass) 0%,
    var(--bg-glass-strong) 50%,
    var(--bg-glass) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-tooltip);
  animation: fade-in-up 0.3s var(--ease-out-back);
}

.toast-success {
  border-left: 4px solid var(--color-green);
}

.toast-error {
  border-left: 4px solid var(--color-pink);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-8) 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
}

.badge-lime {
  background: rgba(204, 255, 0, 0.15);
  border-color: rgba(204, 255, 0, 0.3);
  color: var(--color-lime);
}

.badge-cyan {
  background: rgba(0, 255, 255, 0.15);
  border-color: rgba(0, 255, 255, 0.3);
  color: var(--color-cyan);
}

.badge-pink {
  background: rgba(255, 0, 110, 0.15);
  border-color: rgba(255, 0, 110, 0.3);
  color: var(--color-pink);
}

/* Progress Bar */
.progress {
  height: 8px;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-lime-cyan);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out-expo);
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-lime-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--bg-primary);
  overflow: hidden;
}

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

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
}

.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: var(--text-xl);
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-out-expo);
  z-index: var(--z-tooltip);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
