/* ============================================
   BYOH — Build Your Own Hosting
   Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #06060e;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(15, 15, 35, 0.6);
  --bg-card-hover: rgba(20, 20, 50, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0f5;
  --text-secondary: #9d9db5;
  --text-muted: #5a5a7a;

  --accent-primary: #8b5cf6;
  --accent-primary-light: #a78bfa;
  --accent-secondary: #3b82f6;
  --accent-tertiary: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-pink: #ec4899;

  --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.06), transparent 40%);
  --gradient-text: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 50%, #67e8f9 100%);
  --gradient-starter: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --gradient-growth: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-pro: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-elite: linear-gradient(135deg, #ec4899, #f472b6);

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

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

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.15);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background animated gradients */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-label .icon {
  font-size: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-hero);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  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-hero);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.hero-stat .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero visual (right side floating elements) */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin-left: auto;
  z-index: 1;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.15);
  top: 50px;
  right: 50px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.12);
  top: 200px;
  right: 200px;
  animation-delay: -2s;
}

.hero-orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(6, 182, 212, 0.1);
  bottom: 100px;
  right: 100px;
  animation-delay: -4s;
}

/* Floating cards in hero */
.floating-card {
  position: absolute;
  width: 220px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  animation: floatCard 8s ease-in-out infinite;
  z-index: 3;
}

.floating-card-1 {
  top: 0;
  left: -40px;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 35%;
  right: -40px;
  animation-delay: -2s;
}

.floating-card-3 {
  bottom: 0;
  left: -20px;
  animation-delay: -4s;
}

.floating-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.floating-card .card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.floating-card .card-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  padding: 36px 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-primary-light);
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-secondary);
}

.feature-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-tertiary);
}

.feature-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-success);
}

.feature-icon.pink {
  background: rgba(236, 72, 153, 0.12);
  color: var(--accent-pink);
}

.feature-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-warning);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- How It Works Section --- */
.steps-container {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-success));
  opacity: 0.3;
}

.step-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.step-number.s1 { background: rgba(139, 92, 246, 0.15); color: var(--accent-primary-light); border: 2px solid rgba(139, 92, 246, 0.3); }
.step-number.s2 { background: rgba(59, 130, 246, 0.15); color: var(--accent-secondary); border: 2px solid rgba(59, 130, 246, 0.3); }
.step-number.s3 { background: rgba(6, 182, 212, 0.15); color: var(--accent-tertiary); border: 2px solid rgba(6, 182, 212, 0.3); }
.step-number.s4 { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); border: 2px solid rgba(245, 158, 11, 0.3); }
.step-number.s5 { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); border: 2px solid rgba(16, 185, 129, 0.3); }

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

/* --- Tiers Section --- */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.tier-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.tier-card.featured {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.1);
}

.tier-card.featured::after {
  content: 'MOST REWARDING';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-elite);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.tier-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tier-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tier-clients {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tier-percentage {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1;
}

.tier-card:nth-child(1) .tier-percentage { background: var(--gradient-starter); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tier-card:nth-child(2) .tier-percentage { background: var(--gradient-growth); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tier-card:nth-child(3) .tier-percentage { background: var(--gradient-pro); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tier-card:nth-child(4) .tier-percentage { background: var(--gradient-elite); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.tier-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.tier-perks {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.tier-perk .check {
  color: var(--accent-success);
  font-size: 1rem;
  flex-shrink: 0;
}

.tier-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 20px 0;
}

/* --- Resources Section --- */
.resources-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  margin-bottom: 36px;
}

.resource-tab {
  padding: 10px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.resource-tab:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
}

.resource-tab.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary-light);
}

.resource-table-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.resource-table thead {
  background: rgba(139, 92, 246, 0.08);
}

.resource-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.resource-table td {
  padding: 18px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.resource-table tbody tr {
  transition: background var(--transition-fast);
}

.resource-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.resource-table tbody tr:last-child td {
  border-bottom: none;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.tier-badge.starter { background: rgba(139, 92, 246, 0.12); color: var(--accent-primary-light); }
.tier-badge.growth { background: rgba(59, 130, 246, 0.12); color: var(--accent-secondary); }
.tier-badge.pro { background: rgba(245, 158, 11, 0.12); color: var(--accent-warning); }
.tier-badge.elite { background: rgba(236, 72, 153, 0.12); color: var(--accent-pink); }

/* --- Revenue Calculator --- */
.calculator-wrapper {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calculator-card {
  padding: 40px;
}

.calculator-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.calc-input-group {
  margin-bottom: 24px;
}

.calc-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-input-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 3px;
  outline: none;
}

.calc-input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-hero);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.calc-input-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-hero);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.calc-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.calc-value .current {
  font-weight: 700;
  color: var(--accent-primary-light);
  font-size: 1.1rem;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.calc-result-item .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-result-item .value {
  font-size: 1.4rem;
  font-weight: 800;
}

.calc-result-item .value.partner {
  color: var(--accent-success);
}

.calc-result-item .value.tier {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.15);
}

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.2);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

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

.faq-chevron {
  display: inline-block;
  font-size: 0.95rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  text-align: center;
  padding: 80px 60px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.06), transparent 50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-card .cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--accent-primary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-powered .powered-link {
  color: var(--accent-primary-light);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-0.5deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Apply Form --- */
.apply-section {
  padding: 120px 0;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}

.apply-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.apply-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.apply-benefit .benefit-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.12);
  font-size: 1.2rem;
}

.apply-benefit h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.apply-benefit p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.apply-form-card {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239d9db5' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

#applyStatus {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
  font-size: 0.95rem;
}

#applyStatus.success {
  display: block;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #10b981;
  box-shadow: 0 4px 30px rgba(16, 185, 129, 0.05);
}

#applyStatus.warning {
  display: block;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  box-shadow: 0 4px 30px rgba(245, 158, 11, 0.05);
}

#applyStatus.error {
  display: block;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  box-shadow: 0 4px 30px rgba(239, 68, 68, 0.05);
}

#applyStatus a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

#applyStatus a:hover {
  opacity: 0.8;
}

/* --- Section Dividers --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1), transparent);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    display: block;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
  }

  .hero {
    text-align: center;
  }

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

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

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

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

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

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

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-card {
    padding: 48px 28px;
  }

  .cta-card .cta-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .resource-table-wrapper {
    overflow-x: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .steps-container::before {
    left: 31px;
  }
}

@media (max-width: 480px) {
  .hero-stat .stat-value {
    font-size: 1.4rem;
  }

  .tier-percentage {
    font-size: 2.4rem;
  }
}
