/* ============================================
   The Better Place AI - Static Website Styles
   ============================================ */

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

:root {
  /* AWS Startups-inspired cosmic palette */
  --primary: #2074D5;
  --primary-dark: #1766C2;
  --primary-light: #4a9bf0;
  --primary-50: #eef5fc;
  --primary-100: #d6e6f7;
  --secondary: #7C5AED;       /* violet */
  --accent: #7CE8F4;          /* cyan */
  --magenta: #DF2A5D;         /* cosmos magenta */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #F9F9FB;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #232F3E;
  --gray-900: #16191F;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Soft purple-tinted shadows like AWS Startups */
  --shadow-sm: 0 1px 2px rgba(51, 0, 102, 0.04);
  --shadow: 0 2px 8px rgba(51, 0, 102, 0.05);
  --shadow-md: 0 4px 16px rgba(51, 0, 102, 0.06);
  --shadow-lg: 0 8px 30px rgba(51, 0, 102, 0.08);
  --shadow-xl: 0 4px 40px rgba(51, 0, 102, 0.1);
  /* Gradients */
  --grad-aurora: linear-gradient(135deg, #7CE8F4 0%, #7C5AED 100%);
  --grad-galaxy: linear-gradient(135deg, #7C5AED 0%, #7CE8F4 100%);
  --grad-sunset: linear-gradient(90deg, #DF2A5D 0%, #7C5AED 50%, #2074D5 100%);
  --grad-cosmos: linear-gradient(135deg, #2074D5 0%, #7C5AED 50%, #DF2A5D 100%);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
}

/* Gradient accent bar at very top of page */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-sunset);
  z-index: 1001;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-50);
}

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

.btn-white:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

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

/* --- Section Layout --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--white);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(124, 90, 237, 0.2);
  box-shadow: var(--shadow-sm);
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-top: 12px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.logo-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: all 0.3s;
}

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

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

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

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

.hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #7CE8F4 0%, transparent 70%);
  top: -250px;
  right: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7C5AED 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #DF2A5D 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.18;
  top: 30%;
  left: 30%;
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid rgba(124, 90, 237, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* Dashboard Preview */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-preview {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(124, 90, 237, 0.18), 0 0 0 1px rgba(124, 90, 237, 0.08);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  animation: float 6s ease-in-out infinite;
}

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

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

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

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #10b981; }

.preview-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
}

.preview-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}

.match-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.match-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-cosmos);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.match-info {
  flex: 1;
  min-width: 0;
}

.match-name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-800);
}

.match-detail {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.match-score {
  font-size: 1.125rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

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

.score-mid {
  color: var(--secondary);
  background: rgba(124, 90, 237, 0.1);
}

.match-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.factor {
  font-size: 0.6875rem;
  padding: 3px 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 4px;
  font-weight: 500;
}

/* --- Trusted By --- */
.trusted-by {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-100);
}

.trusted-label {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 8px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  transition: all 0.3s;
}

.trust-item:hover {
  border-color: rgba(124, 90, 237, 0.3);
  color: var(--secondary);
}

/* --- Problem Section --- */
.problem-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(223, 42, 93, 0.12) 0%, rgba(124, 90, 237, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--magenta);
}

.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.problem-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- AI Section --- */
.ai-section {
  padding: 100px 0;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.ai-feature-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.ai-feature-card:hover {
  border-color: rgba(124, 90, 237, 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.ai-feature-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(124, 232, 244, 0.12) 0%, rgba(124, 90, 237, 0.08) 50%, rgba(223, 42, 93, 0.06) 100%),
    var(--white);
  border-color: rgba(124, 90, 237, 0.2);
}

.ai-feature-card.featured h3 {
  font-size: 1.5rem;
}

.ai-feature-card.featured p {
  font-size: 1rem;
}

.ai-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(124, 90, 237, 0.25);
}

.ai-feature-card:nth-child(2n) .ai-feature-icon { background: linear-gradient(135deg, #2074D5 0%, #7C5AED 100%); }
.ai-feature-card:nth-child(3n) .ai-feature-icon { background: linear-gradient(135deg, #DF2A5D 0%, #7C5AED 100%); box-shadow: 0 8px 24px rgba(223, 42, 93, 0.25); }
.ai-feature-card.featured .ai-feature-icon { background: var(--grad-cosmos); box-shadow: 0 8px 30px rgba(124, 90, 237, 0.35); }

.ai-feature-card h3 {
  margin-bottom: 8px;
}

.ai-feature-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ai-metric-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  grid-column: 2;
  align-self: end;
}

.ai-metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-cosmos);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.ai-metric-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.ai-impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--grad-cosmos);
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: 0 12px 40px rgba(124, 90, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.impact-card > * {
  position: relative;
}

.impact-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* --- Features Section --- */
.features-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: rgba(124, 90, 237, 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.scheduling-icon { background: rgba(32, 116, 213, 0.1); color: var(--primary); }
.docs-icon { background: rgba(124, 232, 244, 0.18); color: #0891b2; }
.compliance-icon { background: rgba(223, 42, 93, 0.1); color: var(--magenta); }
.family-icon { background: rgba(124, 90, 237, 0.12); color: var(--secondary); }
.mobile-icon { background: rgba(124, 232, 244, 0.18); color: #0891b2; }
.analytics-icon { background: rgba(32, 116, 213, 0.1); color: var(--primary); }
.team-icon { background: rgba(124, 90, 237, 0.12); color: var(--secondary); }
.multi-icon { background: rgba(223, 42, 93, 0.1); color: var(--magenta); }

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Solutions Section --- */
.solutions-section {
  padding: 100px 0;
}

.solutions-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-pill);
  max-width: 540px;
  margin: 0 auto 56px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  flex: 1;
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.tab-btn {
  border-radius: var(--radius-pill);
}

.tab-btn.active {
  background: var(--grad-cosmos);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(124, 90, 237, 0.3);
}

.tab-btn:hover:not(.active) {
  color: var(--gray-700);
}

.solution-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution-panel.active {
  display: grid;
}

.solution-text h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.solution-text > p {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.solution-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.solution-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Phone Mockup */
.phone-mockup {
  width: 300px;
  margin: 0 auto;
  border-radius: 32px;
  border: 4px solid var(--gray-800);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
}

.phone-screen {
  background: var(--gray-50);
}

.phone-header {
  padding: 16px 20px;
  background: var(--grad-cosmos);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
}

.phone-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-card {
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.phone-card.highlight {
  border-color: rgba(124, 90, 237, 0.3);
  background: linear-gradient(135deg, rgba(124, 232, 244, 0.15) 0%, rgba(124, 90, 237, 0.08) 100%);
}

.phone-card-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.phone-card-text {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* --- Pricing Section --- */
.pricing-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.2s;
}

.toggle-label.active {
  color: var(--gray-900);
  font-weight: 600;
}

.save-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--success);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 10px;
  margin-left: 4px;
}

.toggle-switch {
  width: 48px;
  height: 28px;
  border: none;
  border-radius: 14px;
  background: var(--gray-300);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active .toggle-knob {
  transform: translateX(20px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

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

.pricing-card.popular {
  border-color: transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad-cosmos) border-box;
  border: 2px solid transparent;
  box-shadow: 0 20px 50px rgba(124, 90, 237, 0.18);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-cosmos);
  color: var(--white);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(124, 90, 237, 0.35);
}

.pricing-header {
  margin-bottom: 20px;
}

.pricing-header h3 {
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.pricing-audience {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.pricing-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
}

.price-period {
  font-size: 1rem;
  color: var(--gray-500);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.7 3.5L5.25 9.95 2.3 7' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.pricing-features .feature-highlight {
  font-weight: 600;
  color: var(--gray-800);
}

/* Pricing Add-ons */
.pricing-addons {
  text-align: center;
}

.pricing-addons h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.addons-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.addon-name {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.addon-price {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.875rem;
}

/* --- Market Section --- */
.market-section {
  padding: 100px 0;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.market-stat {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

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

.market-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-cosmos);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.market-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.market-approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach-card {
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

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

.approach-phase {
  display: inline-block;
  padding: 6px 16px;
  background: var(--grad-aurora);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.approach-card h3 {
  margin-bottom: 8px;
}

.approach-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 232, 244, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(223, 42, 93, 0.3) 0%, transparent 50%),
    var(--grad-cosmos);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-section .container {
  position: relative;
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  padding: 64px 0 32px;
  color: var(--gray-400);
}

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

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

.footer-brand .logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-400);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

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

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

  .hero-visual {
    display: none;
  }

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

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

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

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

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

  .pricing-card.popular {
    transform: none;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

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

  .nav-actions {
    display: none;
  }

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

  .navbar.scrolled {
    background: var(--white);
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .problem-grid,
  .ai-features,
  .features-grid,
  .pricing-grid,
  .market-stats,
  .market-approach {
    grid-template-columns: 1fr;
  }

  .ai-feature-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

  .solution-panel.active {
    grid-template-columns: 1fr;
  }

  .solution-visual {
    order: -1;
  }

  .solutions-tabs {
    flex-direction: column;
    max-width: 300px;
  }

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

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

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

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

  .addons-grid {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .ai-impact {
    grid-template-columns: 1fr;
  }

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

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

/* ─── Workflows deep-dive section ──────────────────────────────────────── */
.workflows-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .workflow-grid { grid-template-columns: 1fr; }
}

.workflow-card {
  background: #fff;
  border: 1px solid #e5e9f5;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(24, 40, 80, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(24, 40, 80, 0.10);
}

.workflow-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.workflow-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2074D5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-header h3 {
  font-size: 1.25rem;
  margin: 0 0 4px 0;
  color: var(--gray-900);
}

.workflow-tagline {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.workflow-body {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin: 4px 0 8px 0;
}

.workflow-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.45;
}

.workflow-benefits li {
  position: relative;
  padding-left: 22px;
}

.workflow-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d4ed8;
}

.workflow-benefits strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* ─── Migration section ──────────────────────────────────────────────── */
.migration-section {
  padding: 96px 0;
  background: #f9fbff;
}

.migration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .migration-grid { grid-template-columns: 1fr; }
}

.migration-card {
  background: #fff;
  border: 1px solid #e5e9f5;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(24, 40, 80, 0.05);
}

.migration-card h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.migration-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.migration-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.migration-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d4ed8;
}

.migration-cta {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.migration-cta p {
  color: var(--gray-700);
  font-size: 1.05rem;
}
