/* ============================================
   FXAcademyTools - Design System
   Dark Fintech Trading Platform Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Dark Trading Theme */
  --bg-primary: #060a13;
  --bg-secondary: #0c1220;
  --bg-tertiary: #111a2e;
  --bg-card: #0f1729;
  --bg-card-hover: #141e35;
  --bg-surface: rgba(15, 23, 41, 0.7);

  /* Accent Colors */
  --accent-primary: #00d4aa;
  --accent-primary-rgb: 0, 212, 170;
  --accent-secondary: #3b82f6;
  --accent-secondary-rgb: 59, 130, 246;
  --accent-tertiary: #8b5cf6;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-success: #10b981;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-dark: linear-gradient(180deg, #060a13 0%, #0c1220 50%, #111a2e 100%);
  --gradient-card: linear-gradient(145deg, rgba(15, 23, 41, 0.9) 0%, rgba(12, 18, 32, 0.95) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.15) 0%, transparent 70%);

  /* Text Colors */
  --text-primary: #e8edf5;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00d4aa;

  /* Border */
  --border-color: rgba(148, 163, 184, 0.1);
  --border-accent: rgba(0, 212, 170, 0.3);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;
}

/* ═══════════════════════════════════════════════════════
   🛡️ GLOBAL RESET & OVERFLOW FIX
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

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

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

a:hover {
  color: #33e0be;
}

ul, ol {
  list-style: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  box-sizing: border-box;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  padding: 6px 16px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ═══════════════════════════════════════════════════════
   📱 HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 19, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}

.header.scrolled::before {
  background: rgba(6, 10, 19, 0.92);
  border-bottom-color: rgba(0, 212, 170, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(0, 212, 170, 0.03);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── Logo ─── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  z-index: 1001;
  flex-shrink: 0;
}

.logo span {
  background: linear-gradient(135deg, #00d4aa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00d4aa, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #060a13;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.logo:hover .logo-icon {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.4);
}

/* ─── Desktop Nav ─── */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #00d4aa;
}

/* ─── Nav CTA Button ─── */
.nav .btn-primary.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d4aa, #3b82f6);
  color: #060a13;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
  margin-left: 12px;
  white-space: nowrap;
}

.nav .btn-primary.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.4);
}

/* ─── Hamburger Menu Toggle ─── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  position: relative;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 170, 0.2);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

/* Hamburger → X Animation */
.menu-toggle.active {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.25);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #00d4aa;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #00d4aa;
}

/* ─── Mobile Nav Overlay ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* ─── Prevent Scroll When Menu Open ─── */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════
   🖥️ LARGE SCREENS (min-width: 769px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
  }
  .menu-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   📱 MOBILE RESPONSIVE (max-width: 768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  /* ─── Mobile Menu Panel ─── */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 999;
    padding: 100px 28px 40px;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.5s;

    /* Glassmorphism Background */
    background: linear-gradient(
      165deg,
      rgba(10, 15, 30, 0.97) 0%,
      rgba(6, 10, 19, 0.99) 50%,
      rgba(10, 15, 30, 0.97) 100%
    );
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    right: 0;
    visibility: visible;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
  }

  /* ─── Glow Decorations ─── */
  .nav::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .nav::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* ─── Mobile Nav Links Container ─── */
  .nav-links {
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
  }

  /* ─── Mobile Nav Links ─── */
  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: normal;

    /* Staggered Animation */
    opacity: 0;
    transform: translateX(30px);
  }

  .nav.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  .nav.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
  .nav.active .nav-link:nth-child(2) { transition-delay: 0.17s; }
  .nav.active .nav-link:nth-child(3) { transition-delay: 0.24s; }
  .nav.active .nav-link:nth-child(4) { transition-delay: 0.31s; }

  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #00d4aa, #3b82f6);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
  }

  .nav-link:hover,
  .nav-link:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    height: 60%;
  }

  .nav-link.active {
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.06);
  }

  /* ─── Mobile CTA Button ─── */
  .nav .btn-primary.btn-sm {
    margin: 24px 0 0 0;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 14px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: 0s;
  }

  .nav.active .btn-primary.btn-sm {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
  }

  /* ─── Mobile Menu Divider ─── */
  .nav-links::after {
    content: '';
    display: block;
    height: 1px;
    margin: 12px 20px 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );
  }

  /* ─── Bottom Info in Mobile Menu ─── */
  .nav-mobile-footer {
    margin-top: auto;
    padding-top: 24px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.5s;
  }

  .nav.active .nav-mobile-footer {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════
   📱 SMALL PHONES (max-width: 380px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .header .container {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .nav {
    width: 92%;
    padding: 90px 20px 32px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 16px 16px;
  }
}

/* ═══════════════════════════════════════════════════════
   🔘 BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 170, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  font-size: 1.1em;
}

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

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

/* ═══════════════════════════════════════════════════════
   🏠 HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 10, 19, 0.3) 0%,
    rgba(6, 10, 19, 0.6) 50%,
    rgba(6, 10, 19, 1) 100%
  );
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow-1 {
  top: -100px;
  right: -100px;
  background: rgba(0, 212, 170, 0.15);
}

.hero-glow-2 {
  bottom: -200px;
  left: -200px;
  background: rgba(59, 130, 246, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
}

.trading-chart {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 19, 0.5);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
}

.chart-pair {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chart-pair-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chart-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.chart-change {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.chart-change.positive {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
}

.chart-canvas {
  width: 100%;
  height: 200px;
}

/* Floating elements */
.floating-element {
  position: absolute;
  padding: 10px 16px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.floating-element.fe-1 {
  top: 0;
  right: -20px;
  animation-delay: 0s;
}

.floating-element.fe-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 2s;
}

.floating-element.fe-3 {
  bottom: -10px;
  right: 40px;
  animation-delay: 4s;
}

.fe-icon {
  margin-right: 6px;
}

/* ═══════════════════════════════════════════════════════
   🃏 CARDS
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: rgba(0, 212, 170, 0.15);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

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

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════
   🛍️ PRODUCT CARDS
   ═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.product-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 19, 0.8) 100%);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 12px;
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  backdrop-filter: blur(10px);
}

.product-body {
  padding: var(--space-xl);
}

.product-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-sm);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════
   ℹ️ ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.about-list-item:hover {
  border-color: rgba(0, 212, 170, 0.2);
  background: rgba(15, 23, 41, 0.8);
}

.about-list-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.about-list-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.about-list-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-visual {
  position: relative;
}

.about-visual-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.about-visual-inner img {
  width: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   ⚠️ DISCLAIMER
   ═══════════════════════════════════════════════════════ */
.disclaimer {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.disclaimer-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.disclaimer h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-warning);
  margin-bottom: var(--space-sm);
}

.disclaimer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   📄 PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════ */
.product-detail-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  position: relative;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.product-detail-image img {
  width: 100%;
  display: block;
}

.product-detail-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.product-detail-info .product-category {
  margin-bottom: var(--space-md);
}

.product-detail-info .product-description {
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}

.product-features {
  margin-bottom: var(--space-xl);
}

.product-features h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  background: rgba(15, 23, 41, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.feature-list-item .check {
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.compatibility-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.compatibility-tag {
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.checkout-agreement {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkout-agreement input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.checkout-agreement a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.btn-container {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0;
  margin-top: var(--space-sm);
}

.trust-badges img {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
}

/* Product Type Info Block */
.product-type-block {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(15, 23, 41, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.type-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.type-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.type-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .product-type-block {
    grid-template-columns: 1fr;
  }
}

/* Support Box */
.support-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.support-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.support-box p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.support-channels {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.support-channel {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.support-channel-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════
   📞 CONTACT PAGE
   ═══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
}

.contact-info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.contact-info-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}

.contact-info-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(6, 10, 19, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
  box-sizing: border-box;
  max-width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

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

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   📜 LEGAL PAGES
   ═══════════════════════════════════════════════════════ */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

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

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.legal-content .last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-content ul li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   🦶 FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ═══════════════════════════════════════════════════════
   📢 CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}



.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.cta-box .cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.cta-box .cta-glow-1 {
  top: -200px;
  left: -100px;
  background: var(--accent-primary);
}

.cta-box .cta-glow-2 {
  bottom: -200px;
  right: -100px;
  background: var(--accent-secondary);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- Page Hero (non-index pages) --- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* --- Animations --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.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; }

/* --- Grid Lines Background --- */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

  .about-visual {
    order: -1;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .disclaimer {
    flex-direction: column;
  }

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

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

/* --- Mobile Nav Overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.nav-overlay.active {
  display: block;
}

/* --- Particle Canvas --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Page Content z-index --- */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* --- Toast / Success Message --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
}
