@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   JembatanAI — Premium AI Gateway
   Design System: Glassmorphism + Aurora + Motion
   Vercel/Linear-Inspired Dark Theme
   ============================================ */

:root {
  /* Colors — Enhanced Dark Premium Theme (Premium aurora inspired) */
  --bg-deep: #050508;
  --bg-primary: #0a0a0d;
  --bg-secondary: #121215;
  --bg-tertiary: #1a1a1e;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-glass: rgba(10, 10, 13, 0.7);
  --bg-blur: rgba(8, 8, 10, 0.9);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.2);
  --border-glow: rgba(129, 140, 248, 0.4);

  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.52);

  --accent-primary: #818cf8;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #22d3ee;
  --accent-green: #32f08c;
  --accent-green-dark: #3ee1a3;
  --accent-yellow: #f0e64a;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #a855f7 70%, #06b6d4 100%);
  --accent-gradient-warm: linear-gradient(135deg, #f472b6 0%, #a855f7 50%, #6366f1 100%);
  --accent-gradient-green: linear-gradient(135deg, #3ee1a3 0%, #32f08c 50%, #60f2a0 100%);
  --accent-glow: rgba(129, 140, 248, 0.3);
  --accent-green-glow: rgba(50, 240, 140, 0.25);

  /* Glass effect tokens */
  --glass-bg: rgba(15, 15, 30, 0.6);
  --glass-border: rgba(139, 92, 246, 0.15);
  --glass-glow: rgba(99, 102, 241, 0.08);

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #22d3ee;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 80px var(--accent-glow);
  --shadow-glow-sm: 0 0 30px var(--accent-glow);
  --shadow-glow-lg: 0 0 120px var(--accent-glow);

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

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

  /* Shorthand aliases used in inline styles and components */
  --accent: #6366f1;
  --bg: #0a0a0d;
  --text: rgba(255, 255, 255, 0.92);
}

*, *::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-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle aurora background (Premium aurora inspired) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Ensure all main content is above body::before */
main, .hero, .section, footer, .social-proof, .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   Typography Scale
   ============================================ */
.text-xs { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.text-sm { font-size: 0.875rem; font-weight: 400; letter-spacing: 0.01em; }
.text-base { font-size: 1rem; font-weight: 400; line-height: 1.65; letter-spacing: 0.01em; }
.text-lg { font-size: 1.125rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.01em; }
.text-xl { font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.text-2xl { font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
.text-3xl { font-size: 1.875rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.text-4xl { font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.text-5xl { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.text-6xl { font-size: 3.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }

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

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

.text-glow {
  text-shadow: 0 0 40px var(--accent-glow);
}

.text-green { color: var(--accent-green); }
.text-green-glow {
  color: var(--accent-green);
  text-shadow: 0 0 20px var(--accent-green-glow);
}

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(5rem, 10vh, 7.5rem) 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head .badge {
  margin-bottom: 1rem;
}

/* ============================================
   Buttons — Premium
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Sharp edge variant (Trae.ai inspired) */
.btn-sharp {
  border-radius: 0;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, var(--shadow-glow-sm);
  transition: all 0.3s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, var(--shadow-glow-lg);
}

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

/* Green accent button (Trae.ai inspired) */
.btn-green {
  background: var(--accent-gradient-green);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 0 20px var(--accent-green-glow);
  transition: all 0.3s var(--ease-out);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-green-glow), 0 0 60px rgba(50, 240, 140, 0.15);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.08);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-google {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.875rem 1.5rem;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

.w-full { width: 100%; }

/* ============================================
   Cards — Glassmorphism
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--accent-primary) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    var(--shadow-xl),
    0 0 60px rgba(99, 102, 241, 0.1),
    0 0 120px rgba(139, 92, 246, 0.05);
}

.card-lg {
  padding: 2rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-blur);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(10, 10, 15, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav-link:hover::after {
  width: 100%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.nav-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.nav-btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-btn-primary {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
}

.nav-btn-primary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-burger:hover {
  background: rgba(255,255,255,0.05);
}

.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-out);
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.mobile-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ============================================
   Video Background & Premium Animated Hero
   ============================================ */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.6;
}

.hero-mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 60% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 100%);
  animation: meshGradientShift 20s ease-in-out infinite;
}

@keyframes meshGradientShift {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 100% 100%, 0% 0%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 20% 30%, 80% 10%, 40% 80%, 90% 60%, 0% 0%;
    filter: hue-rotate(10deg);
  }
  50% {
    background-position: 40% 60%, 60% 30%, 60% 60%, 70% 40%, 0% 0%;
    filter: hue-rotate(20deg);
  }
  75% {
    background-position: 10% 20%, 90% 40%, 30% 90%, 80% 50%, 0% 0%;
    filter: hue-rotate(10deg);
  }
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  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;
  animation: gridPulse 4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.25);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-glow-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.18);
  top: 60%;
  right: 15%;
  animation-delay: -3s;
}

.hero-glow-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(34, 211, 238, 0.15);
  bottom: 20%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   Enhanced Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

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

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

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

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

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

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

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

.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Pixel Grid Decoration (Trae.ai inspired) */
.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    radial-gradient(circle, rgba(50, 240, 140, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 60%, black 15%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 60%, black 15%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  animation: fadeInUp 0.8s var(--ease-out);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(
    90deg,
    #6366f1 0%,
    #8b5cf6 25%,
    #a855f7 50%,
    #06b6d4 75%,
    #6366f1 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

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

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 540px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ── Motto Banner ── */
.motto-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 2rem 1.5rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.motto-banner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.4), transparent);
}

.motto-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.3), transparent);
}

.motto-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  color: #818cf8;
  animation: motto-glow 3s ease-in-out infinite;
}

@keyframes motto-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.1); }
  50% { box-shadow: 0 0 24px rgba(99, 102, 241, 0.25), 0 0 40px rgba(139, 92, 246, 0.1); }
}

.motto-text {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  max-width: 580px;
}

.motto-preamble {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.motto-line {
  display: block;
  font-size: 1.05rem;
}

.motto-line em {
  font-style: italic;
  color: var(--text-secondary);
}

.motto-line strong {
  background: linear-gradient(135deg, #818cf8, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.motto-divider {
  width: 40px;
  height: 1px;
  margin: 0.5rem auto;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.motto-source {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.motto-source span {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 20px;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.hero-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

.hero-stat-separator {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Terminal */
.hero-terminal {
  animation: fadeInRight 1s var(--ease-out);
  position: relative;
}

.hero-terminal canvas#screensaver-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

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

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

.terminal {
  background: linear-gradient(180deg, rgba(15, 15, 28, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(40px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 80px rgba(99, 102, 241, 0.08);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(180deg, rgba(30, 30, 50, 0.8) 0%, rgba(20, 20, 35, 0.6) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot-red { background: #ff5f56; }
.terminal-dot-yellow { background: #ffbd2e; }
.terminal-dot-green { background: #27ca3f; }

.terminal-title {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.terminal-badge {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-weight: 500;
}

/* Terminal Tabs */
.terminal-tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.terminal-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  transition: all 0.2s;
}

.terminal-tab:hover {
  color: var(--text-secondary);
  background: rgba(139, 92, 246, 0.08);
}

.terminal-tab.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--accent-primary);
  font-weight: 600;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.terminal-code {
  white-space: normal;
}

.line-number {
  color: rgba(99, 102, 241, 0.4);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
  user-select: none;
  min-width: 2rem;
  text-align: right;
}

.code-line {
  display: flex;
  gap: 1rem;
  padding: 0.1rem 0.25rem;
  margin: 0 -0.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.code-line:hover {
  background: rgba(99, 102, 241, 0.06);
}

.syntax-comment { color: #6b7280; font-style: italic; }
.syntax-keyword { color: #c084fc; }
.syntax-string { color: #34d399; }
.syntax-variable { color: #7dd3fc; }
.syntax-command { color: #fbbf24; }
.syntax-success { color: var(--success); }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: blink 1s infinite;
  margin-left: 4px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   Social Proof
   ============================================ */
.social-proof {
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.social-label {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* Marquee Animation (Trae.ai inspired) */
.social-proof-marquee {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.social-proof-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee-scroll 30s linear infinite;
}

.social-proof-track:hover {
  animation-play-state: paused;
}

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

.model-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.model-badge:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* ============================================
   Comparison Section
   ============================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.comparison-card.featured {
  background: rgba(99, 102, 241, 0.03);
  border-color: rgba(99, 102, 241, 0.3);
  transform: scale(1.02);
}

.comparison-card.featured:hover {
  transform: scale(1.02) translateY(-8px);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.comparison-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-green { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.icon-red { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.icon-yellow { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.icon-blue { background: rgba(99, 102, 241, 0.12); color: var(--accent-primary); }

.comparison-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.comparison-price {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.comparison-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.comparison-list li.good {
  color: var(--text-primary);
}

.comparison-list li.good::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

.comparison-list li.bad {
  color: var(--text-tertiary);
}

.comparison-list li.bad::before {
  content: '✗';
  color: var(--danger);
  flex-shrink: 0;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

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

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

.feature-card-lg {
  grid-column: span 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.feature-visual {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.model-pills {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.model-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.model-pill.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.model-pill.active .pill-dot {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
   How It Works
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: 3.5rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.step-content code {
  background: var(--bg-tertiary);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* ============================================
   Setup Steps
   ============================================ */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.setup-steps .card pre {
  background: var(--bg-secondary) !important;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.06);
}

.pricing-card.featured:hover {
  transform: translateY(-4px);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-head {
  margin-bottom: 1.25rem;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-description {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.pricing-amount {
  margin-bottom: 1.5rem;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
}

.pricing-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 100%);
}

/* ============================================
   Hero Badge Row & Urgency
   ============================================ */
.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.hero-badge-row .hero-badge {
  margin-bottom: 0;
}

.hero-badge-warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  color: #fbbf24;
}

.hero-badge-warning svg {
  color: #fbbf24;
}

.pricing-urgency {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
  width: fit-content;
}

/* ============================================
   Community Banner
   ============================================ */
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(0,136,204,0.08) 0%, rgba(99,102,241,0.06) 100%);
  border: 1px solid rgba(0,136,204,0.2);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}

.community-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
  min-width: 260px;
}

.community-icon-wrap {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, #0088cc, #006daa);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0,136,204,0.3);
}

.community-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.375rem;
}

.community-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.community-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.community-stat-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #006daa);
  color: white;
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,136,204,0.25);
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0099dd, #0077bb);
  box-shadow: 0 6px 28px rgba(0,136,204,0.4);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .community-banner {
    flex-direction: column;
    padding: 1.5rem;
  }
  .community-banner-left {
    flex-direction: column;
  }
  .btn-telegram {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Payment Methods Grid
   ============================================ */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .payment-methods-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.2s ease;
  cursor: default;
}

.payment-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.payment-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.payment-icon svg {
  width: 100%;
  height: 100%;
}

.payment-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.payment-sub {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-column h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.625rem;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

/* ============================================
   Auth Modal — FIXED Z-INDEX & DISPLAY
   ============================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease-spring);
}

.auth-modal-overlay.active .auth-modal {
  transform: scale(1) translateY(0);
}

.auth-modal-header {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.auth-modal-logo {
  margin-bottom: 1rem;
}

.auth-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.auth-modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.auth-modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.auth-modal-body {
  padding: 1.5rem 2rem 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

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

.auth-divider::before {
  margin-right: 0.75rem;
}

.auth-divider::after {
  margin-left: 0.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-footer {
  margin-top: 1rem;
  text-align: center;
}

.auth-link {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--accent-primary);
}

.auth-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.8125rem;
}

.btn-spinner svg {
  animation: spin 1s linear infinite;
}

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

/* ============================================
   Form Styles
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

/* ============================================
   Section Head
   ============================================ */
.section-head {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head .badge {
  margin-bottom: 1rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.mt-lg { margin-top: 1.5rem; }
.mt-md { margin-top: 1rem; }
.mt-sm { margin-top: 0.5rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.gap-md { gap: 1rem; }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats {
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-terminal {
    max-width: 600px;
    margin: 0 auto;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .comparison-card.featured {
    transform: none;
  }

  .comparison-card.featured:hover {
    transform: translateY(-8px);
  }

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

  .feature-card-lg {
    grid-column: span 2;
  }

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

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

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

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-actions .nav-btn:not(.nav-btn-primary) {
    display: none;
  }
}

/* ============================================
   Responsive — MOBILE
   ============================================ */
@media (max-width: 640px) {
  .hero-content {
    padding: 6rem 1rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero-stat-separator {
    width: 40px;
    height: 1px;
  }

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

  .feature-card-lg {
    grid-column: span 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .auth-modal {
    max-height: 100vh;
    border-radius: var(--radius-lg);
  }

  .auth-modal-header {
    padding: 1.5rem;
  }

  .auth-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

[data-anim].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard {
  display: flex;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-deep);
}

/* --- Sidebar --- */
.dashboard-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.dashboard-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.dashboard-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.dashboard-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav li {
  margin: 0;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dashboard-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.dashboard-nav a.active {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  border-left-color: var(--accent-primary);
}

.dashboard-sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--danger) !important;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border-left-color: var(--danger);
}

/* --- Main Content --- */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: auto;
  overflow-anchor: none;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* --- Sections --- */
.dashboard-section {
  max-width: 100%;
  padding-bottom: 2rem;
}

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

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
  display: grid;
}

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

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

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

.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* ============================================
   FLEX UTILITIES
   ============================================ */

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }

.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }

.mr-sm { margin-right: 0.5rem; }
.mr-md { margin-right: 1rem; }

.ml-sm { margin-left: 0.5rem; }
.ml-md { margin-left: 1rem; }

.p-sm { padding: 0.5rem; }
.p-md { padding: 1rem; }
.p-lg { padding: 1.5rem; }
.p-xl { padding: 2rem; }

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-sm { font-size: 0.8rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* ============================================
   CARD COMPONENT
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card .stat-change {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ============================================
   BADGE COMPONENT
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ============================================
   QUOTA BAR
   ============================================ */

.quota-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-card {
  height: 120px;
  margin-bottom: 1rem;
}

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

/* ============================================
   API KEY LIST
   ============================================ */

.api-key-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.api-key-row:last-child {
  border-bottom: none;
}

.api-key-display {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.api-key-display code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.api-key-actions {
  display: flex;
  gap: 0.5rem;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.action-btn.danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}

/* ============================================
   TABLE STYLES
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

tbody tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
  margin-bottom: 1rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

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

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.btn-primary:hover:not(:disabled) {
  background: #5558e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.w-full {
  width: 100%;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ============================================
   AUTH FORM STYLES
   ============================================ */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

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

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-google:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-google:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-error:not(:empty) {
  display: block;
}

.auth-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-footer-links a {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ============================================
   ADMIN TABS
   ============================================ */

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.admin-tab.active {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* ============================================
   PLAN CARDS (Subscription Page)
   ============================================ */

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.plan-card.featured {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.plan-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.plan-card .plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0;
}

.plan-card .plan-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.plan-features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   COPY INPUT (Referral)
   ============================================ */

.copy-input {
  display: flex;
  gap: 0.5rem;
}

.copy-input input {
  flex: 1;
}

.copy-input button {
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 768px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 1rem;
  }

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

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

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .api-key-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* ============================================
   JEMBATANAI REDESIGN — Million-Dollar Premium
   ============================================ */

/* ── New Font: Space Grotesk for Display ── */

:root {
  /* Extended luxury palette */
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  /* Gold shimmer */
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #f59e0b 70%, #d97706 100%);
  --gold-glow: rgba(245, 158, 11, 0.35);

  /* Emerald gradient */
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);

  /* Rose gradient for urgency */
  --rose-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);

  /* Section divider gradient */
  --divider-gradient: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), rgba(139,92,246,0.4), transparent);

  /* Font display */
  --font-display: 'Outfit', 'Space Grotesk', var(--font-sans);
  --font-display-secondary: 'Space Grotesk', var(--font-sans);
}

/* ── Typography: Display Headings ── */
.font-display { font-family: var(--font-display) !important; }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Luxury Border (gold shimmer) ── */
.luxury-border {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.15) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.luxury-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  animation: shimmer-line 3s ease-in-out infinite;
}

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

/* ── Premium Glass Card ── */
.glass-card {
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3) 0%, rgba(139,92,246,0.1) 40%, rgba(6,182,212,0.1) 70%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.glass-card:hover {
  background: rgba(15, 15, 30, 0.8);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.08);
}

/* ── Trust Badges Strip ── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 1.5rem 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.trust-badge svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ── Section Divider ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--divider-gradient);
  margin: 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-primary);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-size: 3rem;
  font-family: var(--font-display);
  color: var(--accent-primary);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-info { flex: 1; }

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* ── Marquee Logos ── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}

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

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

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.marquee-item:hover { opacity: 1; }

/* ── Stats Counter ── */
.stats-grid-large {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-counter {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-counter-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-counter-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Premium Hero Enhanced ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-mesh-gradient {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  animation: mesh-pulse 12s ease-in-out infinite alternate;
}

@keyframes mesh-pulse {
  0% {
    background:
      radial-gradient(ellipse 100% 80% at 50% -10%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 10% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse 60% 50% at 90% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse 100% 80% at 50% -10%, rgba(99, 102, 241, 0.28) 0%, transparent 60%),
      radial-gradient(ellipse 70% 60% at 20% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
      radial-gradient(ellipse 50% 40% at 80% 70%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
      radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  }
}

/* ── Floating Geometric Shapes ── */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(1px);
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  animation: float-1 18s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  animation: float-2 22s ease-in-out infinite;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  animation: float-3 15s ease-in-out infinite;
}

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

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, 20px); }
  50% { transform: translate(-20px, 30px); }
  75% { transform: translate(20px, -20px); }
}

/* ── Hero Grid Overlay ── */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* ── Hero Glow Orbs ── */
.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
}

.hero-glow-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 20%;
  background: rgba(99, 102, 241, 0.15);
  animation: orb-float-1 14s ease-in-out infinite;
}

.hero-glow-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -50px;
  right: 10%;
  background: rgba(139, 92, 246, 0.12);
  animation: orb-float-2 18s ease-in-out infinite;
}

.hero-glow-orb-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: 30%;
  background: rgba(6, 182, 212, 0.1);
  animation: orb-float-3 12s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(40px, -60px); opacity: 1; }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-50px, 40px); opacity: 0.8; }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(-30px, -40px); opacity: 0.7; }
}

/* ── Hero Content Enhancement ── */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
}

.hero-title-gradient {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── Benefit Cards ── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  cursor: default;
}

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

.benefit-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.benefit-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Savings Box ── */
.savings-box {
  max-width: 800px;
  margin: 4rem auto 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.savings-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.savings-box-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.savings-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.savings-item {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  min-width: 180px;
  border: 1px solid var(--border);
}

.savings-price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.savings-price-old {
  color: #ef4444;
  position: relative;
}

.savings-price-old::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #ef4444;
  opacity: 0.6;
}

.savings-arrow {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.7; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.savings-price-new {
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.savings-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 500;
}

.savings-highlight {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.savings-amount {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981, #06b6d4, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.savings-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.75rem 0 0;
  opacity: 0.8;
}

/* ── IDE Compatibility Grid ── */
.ide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  cursor: default;
}

.ide-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.ide-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.ide-item-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Pricing: Featured Card Gold Border ── */
.pricing-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--accent-gradient) border-box;
  position: relative;
}

.pricing-card.featured .pricing-popular {
  background: var(--accent-gradient);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-card.featured:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(99, 102, 241, 0.2);
}

/* ── CTA Section Premium ── */
.cta-section {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

/* ── Shimmer Button Effect ── */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

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

.btn-shimmer:hover::before {
  left: 200%;
}

/* ── Scroll Reveal Enhancements ── */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ── Footer Premium ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), rgba(139,92,246,0.3), transparent);
}

/* ── Model Badge: Glowing Pill ── */
.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  transition: all 0.3s;
}

.model-pill:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.model-pill.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.pill-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
}

/* ── Comparison Card Featured ── */
.comparison-card.featured {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.04);
  position: relative;
}

.comparison-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

/* ── Premium Social Proof Strip ── */
.social-proof {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-label {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.model-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.model-badge:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .stats-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .display-xl {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .display-lg {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .trust-strip {
    gap: 1rem 1.5rem;
  }

  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 40px;
  }
}

}

/* =============================================
   CINEMATIC ASSET STYLES — Videos & Images
   ============================================= */

/* ── Hero Video Background ── */
.hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.2) brightness(0.55);
  transform: scale(1.05);
  animation: heroVideoBreath 20s ease-in-out infinite alternate;
}

@keyframes heroVideoBreath {
  0%   { transform: scale(1.05); filter: saturate(1.2) brightness(0.55); }
  100% { transform: scale(1.12); filter: saturate(1.4) brightness(0.50); }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,5,16,0.75) 0%, rgba(5,5,16,0.25) 40%, rgba(5,5,16,0.55) 75%, rgba(5,5,16,0.98) 100%),
    linear-gradient(to right, rgba(5,5,16,0.6) 0%, transparent 40%, transparent 60%, rgba(5,5,16,0.6) 100%);
}

/* ── Floating Robot Head (left, hero) ── */
.hero-robot-float {
  position: fixed;
  left: -40px;
  bottom: 80px;
  z-index: 0;
  width: 280px;
  pointer-events: none;
  animation: robotFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(99,102,241,0.35));
  opacity: 0;
  animation: robotReveal 1.2s 0.8s ease forwards, robotFloat 8s 2s ease-in-out infinite;
}

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

@keyframes robotFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

.hero-robot-float img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  mix-blend-mode: lighten;
  opacity: 0.85;
}

/* ── Floating Cyberpunk Face (right, hero) ── */
.hero-face-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: 200px;
  height: 320px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
  opacity: 0;
  animation: faceReveal 1.2s 1.2s ease forwards;
  box-shadow: -8px 0 60px rgba(6,182,212,0.2);
}

@keyframes faceReveal {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to   { opacity: 0.6; transform: translateY(-50%) translateX(0); }
}

.hero-face-float video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.4) contrast(1.1);
}

.hero-face-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,16,0.7) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Features Section — Video Background ── */
.features-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.features-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.5) brightness(0.25) hue-rotate(10deg);
  transform: scale(1.1);
  animation: featuresPulse 12s ease-in-out infinite alternate;
}

@keyframes featuresPulse {
  0%   { transform: scale(1.1); filter: saturate(1.5) brightness(0.25) hue-rotate(10deg); }
  100% { transform: scale(1.18); filter: saturate(1.8) brightness(0.30) hue-rotate(20deg); }
}

.features-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(17,17,32,0.5) 0%, rgba(17,17,32,0.9) 100%),
    linear-gradient(to bottom, rgba(17,17,32,0.95) 0%, rgba(17,17,32,0.6) 40%, rgba(17,17,32,0.6) 60%, rgba(17,17,32,0.95) 100%);
}

/* Ensure features content is above video */
#features .container {
  position: relative;
  z-index: 1;
}

/* ── Testimonials — Collage Background ── */
.testimonials-bg-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.testimonials-bg-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.2) brightness(0.6) contrast(1.15);
  transform: scale(1.08);
  animation: collageDrift 25s ease-in-out infinite alternate;
}

@keyframes collageDrift {
  0%   { transform: scale(1.08) translateY(0); }
  100% { transform: scale(1.15) translateY(-20px); }
}

.testimonials-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(99,102,241,0.15) 0%, transparent 65%),
    linear-gradient(to bottom,
      rgba(17,17,32,0.65) 0%,
      rgba(17,17,32,0.25) 20%,
      rgba(17,17,32,0.25) 80%,
      rgba(17,17,32,0.80) 100%);
}

/* Ensure testimonials content is above bg */
#testimonials .container {
  position: relative;
  z-index: 1;
}

/* ── Hide floating elements on small screens ── */
@media (max-width: 900px) {
  .hero-robot-float,
  .hero-face-float {
    display: none;
  }
  .hero-video-bg {
    object-position: 70% center;
  }
}

/* =============================================
   NEW ASSET STYLES — Brain, Polygon, Butterfly
   ============================================= */

/* ── How It Works — Brain Network Background ── */
.how-brain-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.how-brain-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.45) saturate(1.6) hue-rotate(-10deg);
  transform: scale(1.12);
  animation: brainPulse 14s ease-in-out infinite alternate;
}

@keyframes brainPulse {
  0%   { transform: scale(1.12); filter: brightness(0.45) saturate(1.6) hue-rotate(-10deg); }
  50%  { filter: brightness(0.55) saturate(2.0) hue-rotate(5deg); }
  100% { transform: scale(1.20); filter: brightness(0.40) saturate(1.8) hue-rotate(-5deg); }
}

.how-brain-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 65%),
    linear-gradient(to bottom,
      rgba(10,10,20,0.82) 0%,
      rgba(10,10,20,0.40) 20%,
      rgba(10,10,20,0.40) 80%,
      rgba(10,10,20,0.90) 100%);
}

/* ── Pricing — Polygon Floating Decoration ── */
.pricing-polygon-float {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px;
  height: 600px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  animation: polygonDrift 18s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 30px rgba(250,230,0,0.15));
}

.pricing-polygon-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

@keyframes polygonDrift {
  0%   { transform: rotate(-8deg) scale(1.0) translateY(0); opacity: 0.18; }
  50%  { opacity: 0.25; }
  100% { transform: rotate(8deg) scale(1.1) translateY(30px); opacity: 0.20; }
}

/* Second polygon instance bottom-left */
#pricing::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -140px;
  width: 500px;
  height: 500px;
  background: url('/images/img-polygon.png') no-repeat center/contain;
  z-index: 0;
  opacity: 0.10;
  mix-blend-mode: screen;
  transform: rotate(180deg) scaleX(-1);
  animation: polygonDrift2 22s ease-in-out infinite alternate;
  pointer-events: none;
  filter: hue-rotate(180deg) drop-shadow(0 0 20px rgba(99,102,241,0.2));
}

@keyframes polygonDrift2 {
  0%   { transform: rotate(180deg) scaleX(-1) scale(1.0); }
  100% { transform: rotate(200deg) scaleX(-1) scale(1.15) translateY(-20px); }
}

/* ── CTA — Butterfly Background ── */
.cta-butterfly-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cta-butterfly-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.5) saturate(1.8) contrast(1.1);
  transform: scale(1.15);
  animation: butterflyZoom 20s ease-in-out infinite alternate;
}

@keyframes butterflyZoom {
  0%   { transform: scale(1.15) translateY(0); filter: brightness(0.5) saturate(1.8) contrast(1.1); }
  50%  { filter: brightness(0.60) saturate(2.2) contrast(1.15); }
  100% { transform: scale(1.25) translateY(-15px); filter: brightness(0.45) saturate(1.6) contrast(1.1); }
}

.cta-butterfly-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(6,182,212,0.18) 0%, transparent 60%),
    linear-gradient(to bottom,
      rgba(10,10,20,0.88) 0%,
      rgba(10,10,20,0.45) 25%,
      rgba(10,10,20,0.45) 75%,
      rgba(10,10,20,0.92) 100%);
}


/* =============================================
   DASHBOARD — Cinematic Backgrounds
   ============================================= */

/* Brain network — fixed full-page bg */
.dash-brain-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.dash-brain-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.25) saturate(1.8) hue-rotate(-15deg);
  transform: scale(1.1);
  animation: brainPulse 18s ease-in-out infinite alternate;
}

.dash-brain-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(6,182,212,0.07) 0%, transparent 50%),
    linear-gradient(135deg, rgba(5,5,16,0.88) 0%, rgba(10,10,25,0.80) 100%);
}

/* Butterfly — top-right accent corner */
.dash-butterfly-accent {
  position: fixed;
  top: -60px;
  right: -60px;
  width: 380px;
  height: 380px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  animation: butterflyAccent 16s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 40px rgba(6,182,212,0.3));
}

.dash-butterfly-accent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.4) saturate(1.6);
}

@keyframes butterflyAccent {
  0%   { transform: rotate(-5deg) scale(1.0); opacity: 0.18; }
  100% { transform: rotate(5deg) scale(1.12) translate(-10px, 10px); opacity: 0.25; }
}

/* Polygon floating also on dashboard content area */
.dashboard-main::before {
  content: '';
  position: fixed;
  bottom: -80px;
  left: 200px;
  width: 400px;
  height: 400px;
  background: url('/images/img-polygon.png') no-repeat center/contain;
  z-index: -1;
  opacity: 0.07;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: hue-rotate(200deg);
  animation: polygonDrift 24s ease-in-out infinite alternate;
}


/* ============================================
   MOBILE RESPONSIVE — Comprehensive Fix
   max-width: 640px
   ============================================ */
@media (max-width: 640px) {

  /* ── Navbar ── */
  .nav-inner {
    height: 56px;
    padding: 0 1rem;
  }
  .nav-inner img {
    height: 42px !important;
  }

  /* ── Hero ── */
  .hero-content {
    padding: 5rem 1rem 2.5rem;
    gap: 2rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.2;
  }
  .hero-description {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.25rem;
  }
  .hero-stats {
    gap: 0.75rem;
    padding: 1rem;
  }
  .hero-stat {
    min-width: 0;
  }
  .hero-stat-value {
    font-size: 1.5rem;
  }
  .hero-terminal {
    display: none;
  }

  /* ── Section heads ── */
  .section-head {
    margin-bottom: 2rem;
  }
  .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
  .section-head p {
    font-size: 0.9375rem;
  }

  /* ── Trust strip ── */
  .trust-strip {
    gap: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  /* ── Comparison grid ── */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .comparison-card {
    padding: 1.25rem;
  }
  .comparison-card.featured {
    transform: none;
  }

  /* ── Steps ── */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .step-card {
    padding: 1.25rem;
  }

  /* ── Pricing ── */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    padding: 0 0.25rem;
  }
  .pricing-card {
    padding: 1.5rem;
  }
  .pricing-value {
    font-size: 2.5rem;
  }
  .pricing-card.featured {
    transform: none;
  }

  /* ── Testimonials ── */
  .testimonial-card {
    padding: 1.25rem;
  }

  /* ── FAQ ── */
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* ── Payment methods ── */
  .payment-methods-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  .payment-item {
    padding: 0.75rem 0.5rem;
  }
  .payment-item span {
    font-size: 0.6875rem;
  }

  /* ── Auth modal ── */
  .auth-modal-wrapper {
    padding: 0.75rem;
    align-items: flex-end;
  }
  .auth-modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
  }

  /* ── Mobile menu ── */
  .mobile-menu-inner {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
  }
  .mobile-link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* ── Generic text scaling ── */
  .text-4xl  { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
  .text-3xl  { font-size: clamp(1.25rem, 6vw, 1.75rem) !important; }
  .text-2xl  { font-size: clamp(1.125rem, 5vw, 1.5rem) !important; }

  /* ── Section padding ── */
  .section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }

  /* ── Community banner ── */
  .community-banner {
    padding: 1.25rem;
    gap: 1rem;
  }
  .community-banner-left {
    gap: 0.75rem;
  }

  /* ── Hero Video — optimized for mobile portrait ── */
  .hero-video-bg {
    object-position: 60% center;
    filter: saturate(1.0) brightness(0.50);
    transform: scale(1.0);
    animation: heroVideoBreathMobile 25s ease-in-out infinite alternate;
    will-change: transform;
  }

  @keyframes heroVideoBreathMobile {
    0%   { transform: scale(1.0); filter: saturate(1.0) brightness(0.50); }
    100% { transform: scale(1.04); filter: saturate(1.1) brightness(0.46); }
  }

  /* ── Brain background — lighter animation for GPU compositing ── */
  .how-brain-bg img {
    transform: scale(1.05);
    filter: brightness(0.40) saturate(1.4) hue-rotate(-10deg);
    animation: brainPulseMobile 18s ease-in-out infinite alternate;
    will-change: filter;
  }

  @keyframes brainPulseMobile {
    0%   { transform: scale(1.05); filter: brightness(0.40) saturate(1.4) hue-rotate(-10deg); }
    100% { transform: scale(1.08); filter: brightness(0.48) saturate(1.6) hue-rotate(-5deg); }
  }

  /* ── Polygon — scaled down, repositioned for small screens ── */
  .pricing-polygon-float {
    width: 240px;
    height: 240px;
    top: -40px;
    right: -60px;
    opacity: 0.10;
    animation: polygonDriftMobile 22s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 12px rgba(250,230,0,0.10));
  }

  @keyframes polygonDriftMobile {
    0%   { transform: rotate(-4deg) scale(1.0) translateY(0); opacity: 0.10; }
    100% { transform: rotate(4deg) scale(1.04) translateY(12px); opacity: 0.13; }
  }

  #pricing::before {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -70px;
    opacity: 0.06;
    animation: polygonDrift2Mobile 26s ease-in-out infinite alternate;
  }

  @keyframes polygonDrift2Mobile {
    0%   { transform: rotate(180deg) scaleX(-1) scale(1.0); }
    100% { transform: rotate(184deg) scaleX(-1) scale(1.04); }
  }
}

/* ── Responsive: Motto Banner ── */
@media (max-width: 768px) {
  .motto-banner {
    padding: 1.5rem 1.25rem 1.25rem;
    margin-bottom: 2rem;
  }

  .motto-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.6rem;
  }

  .motto-icon svg {
    width: 20px;
    height: 20px;
  }

  .motto-text {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .motto-preamble {
    font-size: 0.75rem;
  }

  .motto-line {
    font-size: 0.95rem;
  }

  .motto-source {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .motto-banner {
    padding: 1.25rem 1rem 1rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg);
  }

  .motto-text {
    font-size: 0.9rem;
    gap: 0.1rem;
  }

  .motto-preamble {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .motto-line {
    font-size: 0.9rem;
  }

  .motto-divider {
    width: 30px;
    margin: 0.35rem auto;
  }

  .motto-source span {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }
}


/* ============================================
   Enterprise Luxury Conversion Layer — 2026
   ============================================ */
.enterprise-microcopy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
  margin: -1rem 0 2.25rem;
}

.enterprise-microcopy > div {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.enterprise-microcopy strong,
.enterprise-microcopy span {
  display: block;
}

.enterprise-microcopy strong {
  color: var(--text-primary);
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.enterprise-microcopy span {
  color: var(--text-tertiary);
  font-size: 0.74rem;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.enterprise-layer {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(245, 158, 11, 0.08), transparent 34%),
    radial-gradient(ellipse at 85% 70%, rgba(99, 102, 241, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.enterprise-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.022)),
    rgba(8, 8, 16, 0.72);
  box-shadow: 0 30px 120px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
  position: relative;
}

.enterprise-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent),
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 36%);
  opacity: 0.7;
  pointer-events: none;
}

.enterprise-copy,
.enterprise-metrics {
  position: relative;
  z-index: 1;
}

.enterprise-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.enterprise-metrics {
  display: grid;
  gap: 1rem;
}

.enterprise-metric-card,
.compat-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  background: rgba(5, 5, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.enterprise-metric-card {
  padding: 1.15rem 1.25rem;
}

.metric-kicker {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--accent-gold-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.enterprise-metric-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.enterprise-metric-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.compatibility-suite {
  background:
    linear-gradient(180deg, var(--bg-primary), var(--bg-secondary)),
    radial-gradient(ellipse at center, rgba(6, 182, 212, 0.08), transparent 60%);
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.compat-card {
  padding: 1.4rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.compat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(15, 15, 32, 0.74);
}

.compat-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.12));
  color: var(--accent-gold-light);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.compat-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.compat-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.compat-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent-green);
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-size: 0.76rem;
}

.pricing-card {
  box-shadow: 0 18px 70px rgba(0,0,0,0.24);
}

.pricing-card.featured {
  box-shadow: 0 30px 120px rgba(99,102,241,0.18), 0 18px 70px rgba(0,0,0,0.35);
}

@media (max-width: 980px) {
  .enterprise-microcopy,
  .enterprise-shell,
  .compat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .enterprise-microcopy {
    margin-top: -0.5rem;
  }

  .enterprise-actions {
    flex-direction: column;
  }

  .enterprise-actions .btn {
    width: 100%;
  }

  .enterprise-shell {
    padding: 1rem;
  }
}

/* Docs page shared polish */
.docs-shell a:not(.btn),
.docs-card a:not(.btn) {
  color: var(--accent-primary);
}

.docs-card strong {
  color: var(--text-primary);
}

/* Premium polish layer — provider-neutral glass, depth, and focus states */
:root {
  --premium-surface: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  --premium-line: linear-gradient(90deg, rgba(129,140,248,.0), rgba(129,140,248,.55), rgba(34,211,238,.0));
}

.hero-content,
.pricing-card,
.feature-card,
.card,
.docs-card,
.dashboard-card,
.stat-card {
  box-shadow: 0 24px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.055);
}

.hero-content::before,
.pricing-card::after,
.feature-card::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: var(--premium-line);
  opacity: .8;
  pointer-events: none;
}

.pricing-card,
.feature-card,
.compat-card,
.enterprise-shell {
  background-image: var(--premium-surface);
}

.nav-logo img,
.logo img {
  filter: drop-shadow(0 18px 36px rgba(99,102,241,.18));
}

.btn,
.nav-btn,
.form-control,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.nav-link:focus-visible,
.mobile-link:focus-visible,
.form-control:focus-visible {
  outline: 2px solid rgba(129,140,248,.75);
  outline-offset: 3px;
}

.model-badge,
.trust-badge,
.hero-badge {
  backdrop-filter: blur(18px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
