/* ============================================
   ATLAS AFFILIATES - Premium UI System
   Inspired by: Linear, Vercel, Stripe, Raycast
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Primary - Vibrant Electric Indigo/Purple */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);

  /* Accent - Cyan/Teal for highlights */
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.35);

  /* Warm accent - for CTAs */
  --cta: #f59e0b;
  --cta-light: #fbbf24;
  --cta-glow: rgba(245, 158, 11, 0.3);

  /* Surfaces - Deep space-like dark */
  --bg-deep: #050510;
  --bg-base: #0a0a1a;
  --bg-raised: #0f0f23;
  --bg-card: #12122a;
  --bg-card-hover: #18183a;
  --bg-overlay: rgba(10, 10, 26, 0.85);

  /* Borders */
  --border-subtle: rgba(99, 102, 241, 0.08);
  --border-default: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.3);
  --border-accent: rgba(6, 182, 212, 0.3);

  /* Text */
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #6b6b8a;
  --text-accent: var(--accent-light);

  /* Semantic */
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-hero: linear-gradient(135deg, #6366f1, #06b6d4, #10b981);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.12), transparent 40%);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

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

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --shadow-glow-accent: 0 0 40px var(--accent-glow);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.main {
  padding-top: 80px;
  position: relative;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* === NAVIGATION === */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.topbar.scrolled {
  background: rgba(5, 5, 16, 0.9);
  border-bottom-color: var(--border-default);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
  box-shadow: var(--shadow-glow);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.nav a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav a:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

.nav a.active {
  color: var(--primary-light);
}

.nav a.active::after {
  transform: scaleX(1);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
}

.mobile-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
}

/* === LANGUAGE SEGMENTED CONTROL (unified desktop + mobile) === */
.lang-seg {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-seg-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  min-height: 30px;
}

.lang-seg-item:hover {
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.08);
}

.lang-seg-item.active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px var(--primary-glow);
  pointer-events: none;
}

/* Mobile version in menu footer - slightly larger touch targets */
.mobile-lang-seg {
  justify-content: center;
  width: 100%;
  padding: 4px;
}

.mobile-lang-seg .lang-seg-item {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  min-height: 40px;
}

/* Nav Actions container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(5, 5, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  gap: 2px;
}

.mobile-menu-inner a {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a:active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
  padding-left: 24px;
}

.mobile-menu-footer {
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  min-height: 48px;
}

.mobile-menu.open {
  display: flex;
  animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--primary-glow), 0 0 60px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta), #f97316);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--cta-glow);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--cta-glow);
}

.btn i {
  font-size: 14px;
}

/* Shimmer effect on buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(25deg);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(8px);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse-dot 2s ease infinite;
}

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

.badge-accent {
  color: var(--accent-light);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
}

.badge-accent::before {
  background: var(--accent-light);
}

/* === HERO SECTIONS === */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

/* Background mesh gradient */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  margin: var(--space-md) 0;
  letter-spacing: -1px;
}

.hero-gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
}

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

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Hero visual panel */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-panel {
  background: var(--gradient-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-slow) ease;
}

.hero-panel:hover::before {
  opacity: 1;
}

.hero-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-panel-dot.red { background: #ef4444; }
.hero-panel-dot.yellow { background: #f59e0b; }
.hero-panel-dot.green { background: #10b981; }

.hero-panel-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: var(--space-sm);
}

.hero-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--duration-fast) ease;
}

.hero-panel li:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--border-subtle);
}

.hero-panel li i {
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(6, 182, 212, 0.12);
  bottom: -80px;
  left: -30px;
  animation-delay: -3s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(16, 185, 129, 0.1);
  top: 50%;
  left: 50%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* === PAGE HERO (sub-pages) === */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  margin: var(--space-md) 0;
  letter-spacing: -0.5px;
}

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

.page-hero .hero-actions {
  justify-content: center;
}

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

.section.dark {
  background: var(--bg-base);
}

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

.section.dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.section-head-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section p {
  color: var(--text-secondary);
  font-size: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}

.section-label i {
  font-size: 12px;
}

/* === GRID === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

/* Hover glow effect */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
  transform-origin: left;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(99, 102, 241, 0.08);
}

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

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover .card-icon {
  background: rgba(99, 102, 241, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--primary-glow);
}

.card-icon.accent {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--accent-light);
}

.card-icon.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.card-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.card.highlight {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04));
}

/* Metric cards */
.card.metric {
  text-align: center;
  padding: var(--space-xl);
}

.card.metric .metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card.metric span {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card.metric strong {
  font-size: 36px;
  font-family: var(--font-display);
  font-weight: 800;
  display: block;
  margin: var(--space-sm) 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card.metric small {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* === TEXT LINKS === */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--duration-fast) ease;
}

.text-link::after {
  content: '\2192';
  transition: transform var(--duration-fast) ease;
}

.text-link:hover {
  color: var(--accent-light);
  gap: 10px;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* === STATUS === */
.positive {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.negative {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.status {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status.ok {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.status.warn {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.status.error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* === TAGS === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

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

.cta {
  display: grid;
  gap: var(--space-xl);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  align-items: center;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.cta p {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.cta-form {
  display: grid;
  gap: var(--space-md);
}

/* === FORMS === */
.form-grid {
  display: grid;
  gap: var(--space-md);
  max-width: 680px;
}

input, select, textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all var(--duration-fast) ease;
  width: 100%;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--bg-card);
}

select {
  appearance: none;
  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='%236366f1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* === TABLES === */
.table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: var(--space-md);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  align-items: center;
  transition: all var(--duration-fast) ease;
}

.table-row:not(.header):hover {
  background: var(--bg-card-hover);
  border-color: var(--border-default);
  transform: translateX(4px);
}

.table-row.header {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === TIMELINE === */
.timeline {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
  opacity: 0.3;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: var(--space-sm);
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* === FOOTER === */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

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

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.7;
}

.footer h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer ul a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--duration-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer ul a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all var(--duration-fast) ease;
}

.footer-social a:hover {
  color: var(--primary-light);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.footer-legal {
  color: transparent;
  font-size: 1px;
  line-height: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

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

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
}

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

/* === PARTICLES CANVAS === */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* === TOAST NOTIFICATIONS === */
.toast {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 10000;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast::before {
  content: '\2713';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.error::before {
  content: '\2717';
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

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

/* === LOADING SPINNER === */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* === GLOW LINE === */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  margin: var(--space-3xl) 0;
  opacity: 0.4;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration-normal) ease;
}

.feature-item:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: var(--border-subtle);
}

.feature-item i {
  font-size: 20px;
  color: var(--primary-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* === LOGO STRIP (Social Proof) === */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
  opacity: 0.5;
  flex-wrap: wrap;
}

.logo-strip span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.5px;
}

/* ==============================================
   RESPONSIVE - PREMIUM MOBILE-FIRST 2026
   Breakpoints: 480 | 640 | 768 | 1024 | 1280
   ============================================== */

/* --- Tablet Landscape & Small Desktop (max 1280px) --- */
@media (max-width: 1280px) {
  .nav a {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* --- Tablet & Small Laptop (max 1024px) --- */
@media (max-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    max-width: 520px;
  }

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

  .timeline::before {
    display: none;
  }

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

  .cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-stats {
    gap: var(--space-xl);
  }
}

/* --- Tablet Portrait (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-3xl: 48px;
  }

  .nav {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hero p {
    font-size: 15px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .hero-stat {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid var(--border-subtle);
  }

  .hero-stat-value {
    font-size: 26px;
  }

  .hero-stat-label {
    font-size: 11px;
  }

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

  .table-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .table-row.header span:nth-child(n+3) {
    display: none;
  }

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

  .section h2 {
    font-size: clamp(22px, 5vw, 32px);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .page-hero {
    padding: 60px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(24px, 6vw, 36px);
  }

  /* Better touch targets on mobile */
  .btn {
    padding: 14px 24px;
    min-height: 48px;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 15px;
  }

  /* Testimonials scroll horizontally on tablet */
  .grid.cards-3 .testimonial {
    min-width: 0;
  }

  /* Cards get less padding on mobile */
  .card {
    padding: var(--space-lg);
  }

  .result-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .result-value {
    font-size: clamp(32px, 8vw, 48px);
  }
}

/* --- Large Phone (max 640px) --- */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

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

  .page-hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-hero .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .credibility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .trust-item {
    display: flex;
    gap: var(--space-md);
    text-align: left;
    padding: var(--space-lg);
  }

  .trust-item i {
    font-size: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .operator-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .operator-benefits {
    grid-template-columns: 1fr;
  }
}

/* --- Phone (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --space-4xl: 48px;
    --space-3xl: 40px;
    --space-2xl: 32px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-panel {
    padding: var(--space-lg);
  }

  .hero-panel li {
    font-size: 13px;
    padding: 6px 8px;
  }

  .hero-panel h3 {
    font-size: 16px;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .card {
    padding: var(--space-md);
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .credibility-value {
    font-size: 26px;
  }

  .credibility-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .section-label {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .section h2 {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .badge {
    font-size: 10px;
    padding: 5px 12px;
    letter-spacing: 1px;
  }

  .testimonial {
    padding: var(--space-lg);
  }

  .testimonial blockquote {
    font-size: 14px;
    padding-left: var(--space-sm);
  }

  .testimonial::before {
    font-size: 40px;
    top: 8px;
    left: 16px;
  }

  .timeline-item {
    padding: var(--space-lg);
  }

  .timeline-item h4 {
    font-size: 14px;
  }

  .timeline-item p {
    font-size: 13px;
  }

  .timeline-step {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .marquee-logo {
    font-size: 13px;
    padding: 8px 14px;
  }

  .marquee-track {
    gap: var(--space-md);
  }

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

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .footer h5 {
    font-size: 13px;
  }

  .footer ul a {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  /* Nav height reduced on small phones */
  .nav-wrap {
    height: 64px;
  }

  .main {
    padding-top: 64px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .logo-mark {
    font-size: 15px;
  }

  .logo-sub {
    font-size: 9px;
  }

  /* Feature items compact */
  .feature-item {
    padding: var(--space-md);
  }

  .feature-item i {
    font-size: 18px;
  }

  .feature-item h4 {
    font-size: 14px;
  }

  .feature-item p {
    font-size: 12px;
  }

  /* About compact */
  .about-feature {
    padding: var(--space-md);
  }

  .about-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  .about-feature h4 {
    font-size: 14px;
  }

  .about-feature p {
    font-size: 12px;
  }

  /* Partner cards compact */
  .partner-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .partner-icon {
    font-size: 36px;
  }

  .partner-name {
    font-size: 16px;
  }

  .partner-tier {
    font-size: 10px;
  }
}

/* --- Small Phone (max 360px) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-stat-value {
    font-size: 22px;
  }

  .credibility-grid {
    gap: 4px;
  }

  .credibility-item {
    padding: var(--space-sm);
  }

  .credibility-value {
    font-size: 22px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 14px 22px;
    font-size: 14px;
  }
}

/* === BUTTON LARGE === */
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* === CREDIBILITY BAR === */
.credibility-bar {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.04));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.credibility-item {
  padding: var(--space-lg);
}

.credibility-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.credibility-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
}

/* === MARQUEE (Client Logos) === */
.marquee-container {
  overflow: hidden;
  position: relative;
  padding: var(--space-lg) 0;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-base), transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-2xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 12px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.03);
  transition: all var(--duration-normal) ease;
  flex-shrink: 0;
}

.marquee-logo:hover {
  color: var(--primary-light);
  border-color: var(--border-default);
  background: rgba(99, 102, 241, 0.08);
}

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

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

.about-feature {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(99, 102, 241, 0.03);
  transition: all var(--duration-normal) ease;
}

.about-feature:hover {
  border-color: var(--border-default);
  background: rgba(99, 102, 241, 0.06);
  transform: translateX(4px);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-light);
}

.about-feature-icon.accent {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--accent-light);
}

.about-feature-icon.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.about-feature h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* === OPERATOR GRID (side-by-side with form) === */
.operator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.operator-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.operator-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.operator-benefit i {
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}

/* === RESULT CARDS === */
.result-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.result-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.result-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.result-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-lg);
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bar-color, var(--primary));
  border-radius: var(--radius-full);
  transition: width 1.5s var(--ease-out);
}

.progress-bar.animated {
  width: calc(var(--target-width, 0) * 1%);
}

/* === PARTNERS GRID === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.partner-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.03));
  transition: all var(--duration-normal) var(--ease-out);
}

.partner-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(99, 102, 241, 0.08);
}

.partner-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partner-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.partner-tier {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-light);
  text-transform: uppercase;
}

/* (Responsive additions merged into main responsive section above) */

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* === COUNTER ANIMATION === */
.counter {
  display: inline-block;
}

/* === TRUST BADGES === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.trust-item {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) ease;
}

.trust-item:hover {
  border-color: var(--border-default);
  background: rgba(99, 102, 241, 0.03);
}

.trust-item i {
  font-size: 28px;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
  display: block;
}

.trust-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 4px;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 13px;
}

/* === TESTIMONIAL === */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
}

.testimonial blockquote {
  color: var(--text-secondary);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   AGE GATE (+18) OVERLAY
   ============================================ */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate-card {
  position: relative;
  max-width: 480px;
  width: 90%;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 16px);
  text-align: center;
  box-shadow: 0 0 80px rgba(99, 102, 241, 0.12), 0 0 200px rgba(6, 182, 212, 0.06);
  animation: ageGateAppear 0.6s ease forwards;
}

@keyframes ageGateAppear {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.age-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 0 30px var(--primary-glow);
  font-size: 32px;
  color: #fff;
}

.age-gate-card h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.age-gate-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-gate-actions .btn-age-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md, 10px);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.age-gate-actions .btn-age-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow), 0 0 60px var(--accent-glow);
}

.age-gate-actions .btn-age-deny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md, 10px);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--text-secondary);
}

.age-gate-actions .btn-age-deny:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.06);
}

.age-gate-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.age-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.age-gate-logo .logo-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.age-gate-logo .logo-mark {
  font-size: 20px;
}

.age-gate-logo .logo-sub {
  font-size: 10px;
}

/* Denied screen */
.age-denied {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 40px;
  animation: deniedFade 0.4s ease forwards;
}

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

.age-denied i {
  font-size: 48px;
  color: var(--danger);
  margin-bottom: 8px;
}

.age-denied h2 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

.age-denied p {
  font-size: 15px;
  color: #888;
  max-width: 400px;
  line-height: 1.6;
}

/* Age Gate Responsive */
@media (max-width: 480px) {
  .age-gate-card {
    padding: 32px 20px;
    width: 94%;
  }
  .age-gate-card h2 {
    font-size: 18px;
  }
  .age-gate-card p {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .age-gate-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
    margin-bottom: 20px;
  }
  .age-gate-logo .logo-mark {
    font-size: 18px;
  }
  .age-gate-footer {
    font-size: 10px;
  }
  .age-gate-actions .btn-age-confirm,
  .age-gate-actions .btn-age-deny {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  .age-gate-card {
    padding: 24px 16px;
  }
}

/* ============================================
   AUTH PAGES (Login / Registro)
   ============================================ */
.auth-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-md) var(--space-2xl);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  width: 100%;
  align-items: start;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 16px);
  padding: 40px 36px;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.08);
}

.auth-card-wide {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.auth-tab:hover {
  color: var(--text-secondary);
  background: rgba(99, 102, 241, 0.05);
}

.auth-tab.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

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

/* Register grid (2 cols) */
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Auth Options (remember / forgot) */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-forgot {
  font-size: 13px;
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-forgot:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Social Login Buttons */
.auth-social {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.btn-social:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.05);
  color: var(--text-primary);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.auth-footer p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.auth-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Auth Benefits (right column) */
.auth-benefits {
  padding: 40px 0 0;
}

.auth-benefits h3 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.auth-benefits-list li i {
  color: var(--success);
  font-size: 16px;
  flex-shrink: 0;
}

.auth-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 10px);
  padding: 20px 24px;
  margin-top: 24px;
}

.auth-testimonial blockquote {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 12px;
}

.auth-testimonial-author {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Auth Responsive */
@media (max-width: 768px) {
  .auth-section {
    padding: 100px var(--space-md) var(--space-2xl);
  }
  .auth-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .auth-card-wide {
    grid-column: 1;
  }
  .auth-benefits {
    padding-top: 0;
  }
  .register-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 80px var(--space-sm) var(--space-xl);
  }
  .auth-card {
    padding: 24px 16px;
  }
  .auth-header h1 {
    font-size: 20px;
  }
  .auth-social {
    flex-direction: column;
  }
  .auth-tabs {
    flex-direction: column;
  }
  .auth-form input,
  .auth-form select,
  .auth-form textarea {
    padding: 12px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==============================================
   SAFE AREA (iPhone Notch / Dynamic Island)
   ============================================== */
@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  .footer {
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  }
  .mobile-menu-footer {
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  }
  .age-gate {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
}

/* ==============================================
   PERFORMANCE - GPU Acceleration hints
   ============================================== */
.topbar,
.card,
.hero-panel,
.age-gate,
.mobile-menu,
.btn {
  will-change: transform;
}

/* Smooth scrolling on iOS */
.mobile-menu,
.mobile-menu-inner {
  -webkit-overflow-scrolling: touch;
}

/* ==============================================
   TOUCH TARGETS - Minimum 44px for mobile
   ============================================== */
@media (pointer: coarse) {
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer ul a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-social a {
    min-width: 44px;
    min-height: 44px;
  }

  .footer-bottom-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .btn {
    min-height: 48px;
  }

  /* Larger form inputs for touch */
  input, select, textarea {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom */
  }
}

/* ==============================================
   LANDSCAPE PHONE FIX
   ============================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 32px 0 24px;
  }

  .hero h1 {
    font-size: 26px;
  }

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

  .hero-stat {
    padding: var(--space-sm);
  }

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

  .age-gate-card {
    padding: 24px 28px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .age-gate-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .mobile-menu {
    max-height: calc(100vh - 64px);
  }
}

/* ==============================================
   DARK MODE PREFERENCE (already dark, add light hint)
   ============================================== */
@media (prefers-color-scheme: light) {
  /* Site is intentionally dark-themed for iGaming
     No light mode override needed */
}

/* ==============================================
   HIGH CONTRAST MODE
   ============================================== */
@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(99, 102, 241, 0.25);
    --border-default: rgba(99, 102, 241, 0.4);
    --text-muted: #8b8baa;
    --text-secondary: #c0c0e0;
  }
}

/* ==============================================
   PRINT STYLES
   ============================================== */
@media print {
  .topbar,
  .mobile-menu,
  .age-gate,
  #particles-canvas,
  .footer-social,
  .orb {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .main {
    padding-top: 0;
  }

  .card,
  .hero-panel {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
