/* ============================================
   RoTrail Design System
   Premium SaaS-grade visual foundation
   ============================================ */

/* ============================================
   1. CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors - Vibrant Cyan/Teal */
  --color-primary-50: #ecfeff;
  --color-primary-100: #cffafe;
  --color-primary-200: #a5f3fc;
  --color-primary-300: #67e8f9;
  --color-primary-400: #22d3ee;
  --color-primary-500: #06b6d4;
  --color-primary-600: #0891b2;
  --color-primary-700: #0e7490;
  --color-primary-800: #155e75;
  --color-primary-900: #164e63;

  /* Accent - Purple for premium elements */
  --color-accent-400: #a78bfa;
  --color-accent-500: #8b5cf6;
  --color-accent-600: #7c3aed;

  /* Neutrals - Slate palette */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;

  /* Semantic colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes (using clamp for fluid typography) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: clamp(2.5rem, 5vw, 3rem);
  --text-6xl: clamp(3rem, 6vw, 3.75rem);
  --text-7xl: clamp(3.5rem, 8vw, 4.5rem);

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(6, 182, 212, 0.4);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ============================================
   2. Base Styles & Typography
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-slate-300);
  background-color: transparent;
  /* Let global-background show through */
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Light mode overrides */
html:not(.dark) body {
  color: var(--color-slate-700);
  background-color: transparent;
  /* Let global-background show through */
}

/* ============================================
   Theme-Aware Utility Classes
   ============================================ */
/* Heading colors that respond to theme */
.text-heading {
  color: white;
}

html:not(.dark) .text-heading {
  color: var(--color-slate-900);
}

/* Body text that responds to theme */
.text-body {
  color: var(--color-slate-300);
}

html:not(.dark) .text-body {
  color: var(--color-slate-600);
}

/* Muted text that responds to theme */
.text-muted {
  color: var(--color-slate-400);
}

html:not(.dark) .text-muted {
  color: var(--color-slate-500);
}

/* ============================================
   3. Animation Keyframes
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mesh gradient animation for hero */
@keyframes meshMove {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(5%, 5%) rotate(1deg);
  }

  50% {
    transform: translate(0, 10%) rotate(0deg);
  }

  75% {
    transform: translate(-5%, 5%) rotate(-1deg);
  }
}

/* ============================================
   4. Animation Utility Classes
   ============================================ */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* Stagger delays for sequential animations */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-600 {
  animation-delay: 600ms;
}

.delay-700 {
  animation-delay: 700ms;
}

.delay-800 {
  animation-delay: 800ms;
}

/* Initially hidden for scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   5. Hero Section Styles
   ============================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-16) var(--space-6);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Animated mesh gradient */
.hero-mesh {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

html:not(.dark) .hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Floating orbs */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.floating-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary-500);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--color-accent-500);
  top: 60%;
  right: 10%;
  animation-delay: -2s;
}

.floating-orb-3 {
  width: 200px;
  height: 200px;
  background: #3b82f6;
  bottom: 20%;
  left: 30%;
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-primary-400);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: var(--text-7xl);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: var(--space-6);
}

html:not(.dark) .hero-title {
  color: var(--color-slate-900);
}

.hero-title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-slate-400);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

html:not(.dark) .hero-subtitle {
  color: var(--color-slate-600);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-12);
}

/* ============================================
   6. Button Styles
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
}

/* Primary button */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(6, 182, 212, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary/Ghost button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-slate-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

html:not(.dark) .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-slate-700);
  border-color: var(--color-slate-200);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

html:not(.dark) .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--color-slate-300);
}

/* Button sizes */
.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Button icon */
.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ============================================
   7. Card Styles
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

html:not(.dark) .card {
  background: white;
  border-color: var(--color-slate-200);
  box-shadow: var(--shadow-md);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(6, 182, 212, 0.1);
}

html:not(.dark) .card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-200);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
  color: var(--color-primary-400);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-3);
}

html:not(.dark) .card-title {
  color: var(--color-slate-900);
}

.card-description {
  color: var(--color-slate-400);
  line-height: 1.7;
}

html:not(.dark) .card-description {
  color: var(--color-slate-600);
}

/* ============================================
   8. Section Styles
   ============================================ */
.section {
  padding: var(--space-24) var(--space-6);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-400);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

html:not(.dark) .section-title {
  color: var(--color-slate-900);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-slate-400);
}

html:not(.dark) .section-subtitle {
  color: var(--color-slate-600);
}

/* ============================================
   9. Steps/Timeline Component
   ============================================ */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.step-card {
  position: relative;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-slow);
}

html:not(.dark) .step-card {
  background: white;
  border-color: var(--color-slate-200);
  box-shadow: var(--shadow-md);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: white;
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: white;
  margin: var(--space-4) 0 var(--space-3);
}

html:not(.dark) .step-title {
  color: var(--color-slate-900);
}

.step-description {
  color: var(--color-slate-400);
}

html:not(.dark) .step-description {
  color: var(--color-slate-600);
}

/* ============================================
   10. Trust Badges
   ============================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

html:not(.dark) .trust-badge {
  background: white;
  border-color: var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.trust-badge:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
}

.trust-badge-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-primary-400);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.trust-badge-text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-slate-300);
}

html:not(.dark) .trust-badge-text {
  color: var(--color-slate-700);
}

/* ============================================
   11. Pricing Cards - REDESIGNED DARK MODE
   Premium, elevated, matching light mode quality
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

/* Base Card - Dark Mode Elevated Design */
.pricing-card {
  position: relative;
  background: linear-gradient(168deg,
      rgba(30, 41, 59, 0.95) 0%,
      rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Light Mode Card */
html:not(.dark) .pricing-card {
  background: white;
  border-color: var(--color-slate-200);
  box-shadow: var(--shadow-lg);
}

/* Dark Mode Card Hover */
.dark .pricing-card:hover,
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

html:not(.dark) .pricing-card:hover {
  border-color: var(--color-slate-300);
  box-shadow: var(--shadow-2xl);
}

/* Featured Card - Dark Mode */
.pricing-card.featured {
  background: linear-gradient(168deg,
      rgba(6, 182, 212, 0.12) 0%,
      rgba(15, 23, 42, 0.95) 40%,
      rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow:
    0 4px 32px rgba(6, 182, 212, 0.15),
    0 0 0 1px rgba(6, 182, 212, 0.1) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html:not(.dark) .pricing-card.featured {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, white 30%);
  border: 2px solid var(--color-primary-500);
}

.pricing-card.featured:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow:
    0 24px 60px rgba(6, 182, 212, 0.2),
    0 0 0 1px rgba(6, 182, 212, 0.15) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* Featured Card Top Glow */
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Badge - Integrated Design */
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-6);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  white-space: nowrap;
  box-shadow:
    0 4px 16px rgba(6, 182, 212, 0.35),
    0 0 0 3px rgba(15, 23, 42, 0.9);
}

/* Header Section */
.pricing-header {
  text-align: center;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: var(--space-6);
}

html:not(.dark) .pricing-header {
  border-color: var(--color-slate-200);
}

/* Plan Name - High Contrast */
.pricing-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

html:not(.dark) .pricing-name {
  color: var(--color-slate-900);
}

/* Price - Maximum Visibility */
.pricing-price {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: white;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

html:not(.dark) .pricing-price {
  color: var(--color-slate-900);
  text-shadow: none;
}

.pricing-price span {
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  color: rgba(148, 163, 184, 0.8);
  text-shadow: none;
}

html:not(.dark) .pricing-price span {
  color: var(--color-slate-500);
}

/* Feature List - Improved Spacing & Contrast */
.pricing-features {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: rgba(203, 213, 225, 0.9);
  font-size: var(--text-sm);
  line-height: 1.5;
}

html:not(.dark) .pricing-features li {
  color: var(--color-slate-600);
}

.pricing-features li i {
  color: var(--color-primary-400);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

/* CTA Button */
.pricing-cta {
  width: 100%;
}

/* ============================================
   12. FAQ Accordion
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html:not(.dark) .faq-item {
  border-color: var(--color-slate-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: white;
  transition: color var(--transition-base);
}

html:not(.dark) .faq-question {
  color: var(--color-slate-900);
}

.faq-question:hover {
  color: var(--color-primary-400);
}

.faq-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-base);
  color: var(--color-slate-500);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-slow);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: var(--space-6);
  color: var(--color-slate-400);
  line-height: 1.7;
}

html:not(.dark) .faq-answer p {
  color: var(--color-slate-600);
}

/* ============================================
   13. Header/Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

html:not(.dark) .header {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-slate-200);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: white;
  text-decoration: none;
}

html:not(.dark) .header-logo {
  color: var(--color-slate-900);
}

.header-logo img {
  width: 32px;
  height: 32px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-slate-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

html:not(.dark) .nav-link {
  color: var(--color-slate-600);
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

html:not(.dark) .nav-link:hover,
html:not(.dark) .nav-link.active {
  color: var(--color-slate-900);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Demo CTA link in navigation */
.nav-link-demo {
  color: var(--color-primary-400);
  position: relative;
}

.nav-link-demo::before {
  content: '';
  position: absolute;
  inset: -6px -12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-link-demo:hover::before {
  opacity: 1;
}

.nav-link-demo::after {
  display: none;
}

html:not(.dark) .nav-link-demo {
  color: var(--color-primary-600);
}

html:not(.dark) .nav-link-demo::before {
  background: rgba(6, 182, 212, 0.08);
}


.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ============================================
   14. Footer
   ============================================ */
.footer {
  background: var(--color-slate-950);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

html:not(.dark) .footer {
  background: var(--color-slate-100);
  border-color: var(--color-slate-200);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html:not(.dark) .footer-top {
  border-color: var(--color-slate-200);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand p {
  margin-top: var(--space-4);
  color: var(--color-slate-500);
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer-column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-400);
  margin-bottom: var(--space-4);
}

html:not(.dark) .footer-column-title {
  color: var(--color-slate-600);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--color-slate-500);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  color: var(--color-slate-600);
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-slate-400);
  font-size: var(--text-lg);
  transition: all var(--transition-base);
}

html:not(.dark) .footer-social a {
  background: var(--color-slate-200);
  color: var(--color-slate-600);
}

.footer-social a:hover {
  background: var(--color-primary-500);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   15. Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html:not(.dark) .glass {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   16. Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .section {
    padding: var(--space-16) var(--space-4);
  }

  .section-title {
    font-size: var(--text-4xl);
  }

  .header-nav {
    display: none;
  }

  .floating-orb {
    display: none;
  }
}

/* ============================================
   17. Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-slate-900);
}

::-webkit-scrollbar-thumb {
  background: var(--color-slate-700);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-600);
}

html:not(.dark) ::-webkit-scrollbar-track {
  background: var(--color-slate-100);
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: var(--color-slate-300);
}

html:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-400);
}

/* ============================================
   18. Modal Component
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay[style*="display: none"] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-slate-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  text-align: center;
  animation: scaleIn 0.2s ease-out;
}

html:not(.dark) .modal-content {
  background: white;
  border-color: var(--color-slate-200);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

html:not(.dark) .modal-close {
  background: var(--color-slate-100);
  color: var(--color-slate-600);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

html:not(.dark) .modal-close:hover {
  background: var(--color-slate-200);
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-4);
}

html:not(.dark) .modal-title {
  color: var(--color-slate-900);
}

.modal-subtitle {
  color: var(--color-slate-400);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

html:not(.dark) .modal-subtitle {
  color: var(--color-slate-600);
}

.modal-copyable {
  background: var(--color-slate-900);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--color-primary-400);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

html:not(.dark) .modal-copyable {
  background: var(--color-slate-100);
  border-color: var(--color-slate-200);
}

.modal-copyable:hover {
  background: var(--color-slate-800);
  border-color: var(--color-primary-500);
}

html:not(.dark) .modal-copyable:hover {
  background: var(--color-slate-200);
}

.modal-toast {
  margin-top: var(--space-4);
  background: var(--color-success);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.modal-toast.visible {
  opacity: 1;
}

/* Hidden utility */
.hidden {
  display: none !important;
}