/* ============================================
   AI RESUME BUILDER — Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* GenZ Vibrant Palette */
  --primary: #8B5CF6;
  /* Vibrant Purple */
  --primary-light: #A78BFA;
  --primary-dark: #7C3AED;
  --primary-glow: rgba(139, 92, 246, 0.3);

  /* Accent */
  --accent: #F43F5E;
  /* Hot Pink/Rose */
  --accent-light: #FB7185;
  --accent-dark: #E11D48;

  /* Emerald */
  --success: #10B981;
  --success-light: #34D399;
  --success-dark: #059669;

  /* Danger */
  --danger: #EF4444;
  --danger-light: #F87171;

  /* Navy/Dark -> Now used for Text */
  --navy: #e2e8f0;
  --navy-light: #f1f5f9;
  --navy-medium: #cbd5e1;
  --navy-soft: #94a3b8;

  /* Backgrounds */
  --bg-body: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);

  /* Text (Inverted) */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-accent: #7C3AED;

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-focus: rgba(139, 92, 246, 0.4);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #F43F5E 100%);
  --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  --gradient-accent: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);

  /* Shadows (Softer for light mode) */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 10px 30px rgba(139, 92, 246, 0.25);
  --shadow-glow-accent: 0 10px 30px rgba(244, 63, 94, 0.25);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Radius (More rounded for GenZ) */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --bg-glass: rgba(30, 41, 59, 0.85);
  --bg-glass-strong: rgba(30, 41, 59, 0.95);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);
  --navy: #1e293b;
  --navy-light: #0f172a;
  --navy-medium: #334155;
}

/* Dark Mode Specific Fixes */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .builder-page {
  background: var(--bg-body);
}

[data-theme="dark"] .form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg-body);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .form-group label {
  color: var(--text-secondary);
}

[data-theme="dark"] .btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .stepper-item {
  background: var(--bg-card);
  color: var(--text-muted);
}

[data-theme="dark"] .stepper-item.active {
  background: var(--primary);
  color: white;
}

[data-theme="dark"] .feature-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .preview-container {
  background: var(--bg-card);
  border-color: var(--border);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(244, 63, 94, 0.05) 0%, transparent 40%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-medium);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ============ UTILITIES ============ */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.glass-strong {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-light);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(108, 58, 237, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(108, 58, 237, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(108, 58, 237, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-glass-strong);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--navy);
  box-shadow: var(--shadow-glow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 24px;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.mobile-menu .close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  color: var(--text-primary);
  font-size: 28px;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 58, 237, 0.15) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(108, 58, 237, 0.15);
  border: 1px solid rgba(108, 58, 237, 0.3);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat .stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-mockup {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(108, 58, 237, 0.1), transparent);
  animation: rotateGradient 8s linear infinite;
}

.mockup-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) {
  background: #EF4444;
}

.mockup-dot:nth-child(2) {
  background: #F59E0B;
}

.mockup-dot:nth-child(3) {
  background: #10B981;
}

.mockup-content {
  position: relative;
  z-index: 1;
}

.mockup-line {
  height: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-line:nth-child(1) {
  width: 60%;
  background: var(--primary);
  opacity: 0.3;
}

.mockup-line:nth-child(2) {
  width: 85%;
}

.mockup-line:nth-child(3) {
  width: 70%;
}

.mockup-line:nth-child(4) {
  width: 90%;
}

.mockup-line:nth-child(5) {
  width: 45%;
  background: var(--accent);
  opacity: 0.2;
}

.mockup-line:nth-child(6) {
  width: 80%;
}

.mockup-line:nth-child(7) {
  width: 60%;
}

.mockup-score-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-success);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  color: white;
  font-family: 'Outfit', sans-serif;
  animation: pulseGlow 3s ease-in-out infinite;
}

.mockup-score-badge .score-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.mockup-score-badge .score-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(108, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ HOW IT WORKS ============ */
.steps-container {
  display: flex;
  gap: 24px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
  z-index: 0;
}

.step-card {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============ BEFORE / AFTER ============ */
.comparison {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  align-items: center;
}

.comparison-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  min-height: 340px;
}

.comparison-card.before {
  border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.after {
  border-color: rgba(16, 185, 129, 0.3);
}

.comparison-label {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.before .comparison-label {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-light);
}

.after .comparison-label {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-light);
}

.comparison-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
}

.comparison-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.comparison-text .improved {
  color: var(--success-light);
  font-weight: 600;
}

.comparison-text .weak {
  color: var(--danger-light);
  text-decoration: line-through;
  opacity: 0.7;
}

/* ============ TEMPLATES PREVIEW ============ */
.templates-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 30px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: auto;
  scrollbar-width: auto;
  scrollbar-color: var(--primary-light) var(--border-light);
}

.templates-scroll::-webkit-scrollbar {
  height: 10px;
  display: block;
}

.templates-scroll::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 5px;
}

.templates-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

.templates-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.template-preview-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.template-preview-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.template-thumb {
  height: 320px;
  background: white;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.template-thumb-content {
  transform: scale(0.5);
  transform-origin: top left;
  width: 200%;
  height: 200%;
}

.template-info {
  padding: 16px;
}

.template-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.template-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  margin: 16px 0;
}

.pricing-card .price small {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  margin: 24px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li .check {
  color: var(--success);
  font-size: 16px;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ CTA SECTION ============ */
.cta-section {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  border: 1px solid var(--border);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-direction: column;
  }

  .steps-container::before {
    display: none;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 40px 20px;
    margin: 0 16px;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .btn-lg {
    padding: 16px 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============ 3D CSS SHAPES ============ */
.css-3d-shape {
  position: absolute;
  z-index: 0;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.shape-sphere {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f43f5e, #8b5cf6, #3b82f6);
  top: -40px;
  left: -60px;
  animation: float 6s ease-in-out infinite, rotate3dSpin 10s linear infinite;
  box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.3), inset 15px 15px 30px rgba(255, 255, 255, 0.7);
}

.shape-torus {
  width: 180px;
  height: 180px;
  border-radius: 60px;
  background: radial-gradient(circle at 30% 30%, #34d399, #10b981);
  bottom: -50px;
  right: -70px;
  animation: float 8s ease-in-out infinite reverse, rotate3dSpin 15s linear infinite;
  box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.3), inset 15px 15px 30px rgba(255, 255, 255, 0.7);
}

.shape-cube {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #f59e0b);
  top: 50%;
  right: -40px;
  animation: float 7s ease-in-out infinite, rotate3dSpin 12s linear infinite reverse;
  box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.3), inset 15px 15px 30px rgba(255, 255, 255, 0.7);
}

@keyframes rotate3dSpin {
  0% {
    transform: rotate3d(1, 1, 0.5, 0deg);
  }

  100% {
    transform: rotate3d(1, 1, 0.5, 360deg);
  }
}

/* Feature Highlights */
.feature-card--highlight {
  background: var(--bg-glass);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  transform: translateY(-5px);
}

.feature-card--highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

.feature-new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}