:root {
  --radius: 1rem;
  /* Premium Palette */
  --background: #050505;
  --foreground: #ffffff;
  --card: rgba(20, 20, 20, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #8DB849;
  --primary-dark: #2D843E;
  --secondary: #121212;
  --muted: #1a1a1a;
  --muted-foreground: #a1a1aa;
  --accent: #8DB849;
  
  /* Fluid Typo */
  --font-step-1: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  --font-step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  --font-step-3: clamp(2.5rem, 8vw, 7.5rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Mesh Gradient */
.mesh-gradient {
  background: radial-gradient(at 0% 0%, rgba(141, 184, 73, 0.15) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(45, 132, 62, 0.15) 0px, transparent 50%),
              radial-gradient(at 50% 100%, rgba(141, 184, 73, 0.1) 0px, transparent 50%);
}

/* Fluid Headings */
h1, h2, h3, h4 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.text-fluid-h1 { 
    font-size: clamp(2.5rem, 9vw, 6rem); 
    line-height: 0.95;
}

.hero-headline {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1.5rem;
}
.text-fluid-h2 { font-size: clamp(2rem, 5vw, 4rem); }

#beams-canvas {
    filter: blur(40px);
}

.container-x {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Advanced Glassmorphism */
.glass {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Premium Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #8DB849, #2D843E);
  color: #000;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 40px -10px rgba(141, 184, 73, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px -12px rgba(141, 184, 73, 0.7);
  filter: brightness(1.1);
}

/* Custom Cursor Styles handled in JS */

/* Marquee God Level */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-content {
  display: inline-block;
  animation: marquee 40s linear infinite;
}

/* ── Platform Badges Marquee ── */
@keyframes badges-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.badges-marquee-wrapper {
  width: 100%;
}

.badges-marquee-inner {
  animation: badges-scroll 20s linear infinite;
  will-change: transform;
}

.badges-marquee-wrapper:hover .badges-marquee-inner {
  animation-play-state: paused;
}

/* Reveal Animations Classes */
/* Global Overrides and Animations */
header {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

header > div {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.reveal-text span {
  display: inline-block;
}

.animate-scroll-line {
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%) scaleY(0); opacity: 0; }
    50% { transform: translateY(0) scaleY(1); opacity: 1; }
    100% { transform: translateY(100%) scaleY(0); opacity: 0; }
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FIXES v2 ===== */

/* FIX: noise-overlay was blocking all pointer events at z-index 9999 */
.noise-overlay {
  z-index: 1 !important;
  pointer-events: none !important;
}

/* FIX: hero layout — ensure full centering */
section:first-child .relative.z-20 {
  text-align: center;
}

/* FIX: platform badges */
.platform-badge {
  cursor: default;
  transition: all 0.3s ease;
}
.platform-badge:hover {
  transform: translateY(-2px);
  background: rgba(141,184,73,0.08);
}

/* FIX: header glass on scroll - improved */
header.scrolled {
  background: rgba(5,5,5,0.92) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* FIX: tilt cards z-index overlap */
.tilt-card {
  position: relative;
  z-index: 1;
}

/* FIX: hero section overflow clipping issue */
#hero-section {
  isolation: isolate;
}

/* eCOM FEEL: add product box shadow pulse on results cards */
.group:hover .aspect-video {
  box-shadow: 0 0 40px rgba(141,184,73,0.15);
}

/* eCOM FEEL: improve CTA section */
.btn-primary {
  letter-spacing: 0.08em;
}

/* FIX: mobile menu z-index below header */
#mobile-menu {
  z-index: 89 !important;
}

/* FIX: scroll line animation was causing layout shift */
.animate-scroll-line {
  will-change: transform, opacity;
}

/* eCOM FEEL: stats section numbers more visible */
.counter {
  font-size: clamp(4rem, 12vw, 9rem) !important;
}

/* Logo sizing in header */
header img[alt] {
  max-height: 48px;
  width: auto;
}

/* ===== VERTICAL MARQUEE CTA ===== */
@keyframes marquee-vertical {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.animate-marquee-vertical {
  animation: marquee-vertical var(--duration, 20s) linear infinite;
  will-change: transform;
}

.cta-marquee-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
  background: var(--background);
}

/* ===== FAQ FIXES ===== */
.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding-bottom 0.3s ease;
}

.faq-item.open .answer {
  max-height: 300px;
  padding-bottom: 2rem;
}

.faq-item .answer {
  display: block !important; /* override old 'hidden' class */
}

/* Remove the old hidden toggle (handled by JS now) */
.faq-item:not(.open) .answer {
  max-height: 0;
  padding-bottom: 0;
}

.faq-item .icon-minus { display: none; }
.faq-item.open .icon-minus { display: block; }
.faq-item.open .icon-plus { display: none; }
.faq-item.open { border-color: rgba(141,184,73,0.3) !important; }

/* ===== LEGAL PAGES ===== */
.legal-page-hero {
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2.5rem 0 1rem;
}

.legal-content p {
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
}

.legal-content ul li {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

.legal-section-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.legal-section-card:hover {
  border-color: rgba(141,184,73,0.2);
}

.legal-section-card h2 {
  margin-top: 0;
}
