/* ==========================================================================
   HUXLEY MODERN REDESIGN DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* 1. Global Variables & Tokens */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;   /* Slate-50 */
  --bg-tertiary: #f1f5f9;    /* Slate-100 */
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.88);
  
  --primary: #4f46e5;       /* Vibrant Indigo */
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.06);
  --secondary: #10b981;     /* Emerald Green */
  --secondary-hover: #059669;
  --secondary-light: rgba(16, 185, 129, 0.08);
  --accent: #f97316;        /* Warm Coral */
  --accent-light: rgba(249, 115, 22, 0.08);
  
  --text-main: #0f172a;     /* Slate-900 */
  --text-muted: #475569;    /* Slate-600 */
  --text-dim: #64748b;      /* Slate-500 */
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-focus: #4f46e5;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 3. Utility Layout Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-main) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto;
}

/* 4. Button & Interaction Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* 5. Modern SaaS Dot Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-secondary);
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.star {
  display: none;
}

/* 6. Navigation Bar */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar-header.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
}

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

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-img-huxley {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.nav-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* 7. Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #edf2f7 0%, var(--bg-primary) 100%);
}

/* Edge-to-Edge Animated Canvas backdrop */
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(calc(var(--scroll-offset, 0) * 0.35px));
  width: 100vw;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.bg-gradient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.65; /* Slightly increased opacity for richer pop */
  mix-blend-mode: multiply;
  animation: floatBlobs 20s infinite alternate ease-in-out;
  will-change: transform;
}

.blob-1 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.32) 0%, rgba(79, 70, 229, 0) 70%);
  top: -15%;
  left: 5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: 5%;
  right: 10%;
  animation-duration: 22s;
  animation-delay: -6s;
}

.blob-3 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 70%);
  top: 15%;
  right: 30%;
  animation-duration: 19s;
  animation-delay: -12s;
}

/* Premium Noise Texture Overlay */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

/* Premium Charity Community Watermark Backdrop */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 1;
}

/* Mouse-tracking glowing highlight */
.mouse-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0) 70%);
  top: 0;
  left: 0;
  transform: translate(calc(var(--mouse-x, -999px) - 250px), calc(var(--mouse-y, -999px) - 250px));
  pointer-events: none;
  filter: blur(80px);
  z-index: 1;
  transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}



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

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.5rem;
  padding-top: 1rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.gradient-shine {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 40%, var(--accent) 60%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineFlow 6s linear infinite;
  display: inline-block;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content .hero-badge { animation-delay: 0.1s; }
.hero-content .hero-title { animation-delay: 0.25s; }
.hero-content .hero-subtitle { animation-delay: 0.4s; }
.hero-content .hero-actions { animation-delay: 0.55s; }

@keyframes shineFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero Visual Wrapper (No clipping, holds sphere backdrop, rocket and badges) */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Campaign Dashboard Mockup (Charity rebrand) */
.hero-dashboard-mock {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 380px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.dash-card {
  position: absolute;
  width: 320px; /* Standardised width for wheel carousel symmetry */
  height: 195px; /* Standardised height for wheel carousel symmetry */
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, z-index;
  backface-visibility: hidden;
}

/* Center state */
.dash-card.card-center {
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(60px) rotateY(0deg) scale(1.1);
  z-index: 10;
  opacity: 1;
}

/* Left state */
.dash-card.card-left {
  top: 35px;
  left: calc(50% - 240px);
  transform: translateX(-50%) translateZ(-100px) rotateY(32deg) scale(0.85);
  z-index: 5;
  opacity: 0.6;
}

/* Right state */
.dash-card.card-right {
  top: 35px;
  left: calc(50% + 240px);
  transform: translateX(-50%) translateZ(-100px) rotateY(-32deg) scale(0.85);
  z-index: 5;
  opacity: 0.6;
}

/* Hovers adapted to active state positions inside 3D space with scaled sizing */
.dash-card.card-center:hover {
  transform: translateX(-50%) translateZ(90px) translateY(-10px) rotateY(0deg) scale(1.12);
  box-shadow: 0 30px 60px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.4);
}

.dash-card.card-left:hover {
  transform: translateX(-50%) translateZ(-60px) translateY(-5px) rotateY(25deg) scale(0.87);
  opacity: 0.85;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.dash-card.card-right:hover {
  transform: translateX(-50%) translateZ(-60px) translateY(-5px) rotateY(-25deg) scale(0.87);
  opacity: 0.85;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGreen 1.5s infinite;
}

.campaign-type {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.dash-value-group {
  margin-bottom: 1.25rem;
}

.dash-label {
  font-size: 0.725rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
}

.dash-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
}

/* Progress bar styles */
.progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  width: 82%;
  transform-origin: left;
  animation: fillBarEffect 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.progress-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Card 2: Fee Optimisation details (static only) */

.fees-comparison-card h5 {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 700;
}

.fee-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fee-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fee-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.savings-badge {
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.fee-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.fee-bar-fill {
  height: 100%;
  border-radius: 10px;
  transform-origin: left;
}

.red-fill {
  background: var(--accent);
  width: 75%;
  animation: fillBarEffect 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.green-fill {
  background: var(--secondary);
  width: 12%;
  animation: fillBarEffect 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Card 3: Compliance Audit details (static only) */

.audit-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.audit-icon {
  width: 18px;
  height: 18px;
}

.compliance-audit-card h5 {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

.audit-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.audit-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Animations */
@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes fillBarEffect {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}



/* 8. Feature Cards / What is Huxley */
.about-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

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

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 9. Charity Benefits Grid */
.benefits-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

/* Emerald state */
.feature-card.card-emerald, .benefit-card.card-emerald {
  border-color: rgba(16, 185, 129, 0.18);
}
.feature-card.card-emerald:hover, .benefit-card.card-emerald:hover {
  border-color: var(--secondary);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
}
.feature-card.card-emerald .feature-icon, .benefit-card.card-emerald .benefit-icon-wrapper {
  background: var(--secondary-light);
  color: var(--secondary);
}

/* Indigo state */
.feature-card.card-indigo, .benefit-card.card-indigo {
  border-color: rgba(79, 70, 229, 0.18);
}
.feature-card.card-indigo:hover, .benefit-card.card-indigo:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.08);
}
.feature-card.card-indigo .feature-icon, .benefit-card.card-indigo .benefit-icon-wrapper {
  background: var(--primary-light);
  color: var(--primary);
}

/* Coral state */
.feature-card.card-coral, .benefit-card.card-coral {
  border-color: rgba(249, 115, 22, 0.18);
}
.feature-card.card-coral:hover, .benefit-card.card-coral:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.08);
}
.feature-card.card-coral .feature-icon, .benefit-card.card-coral .benefit-icon-wrapper {
  background: var(--accent-light);
  color: var(--accent);
}

.benefit-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.benefit-head h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.benefit-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon {
  width: 22px;
  height: 22px;
}

.benefit-body {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* 10. Easy Onboarding Timeline */
.onboarding-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  top: 25px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--bg-tertiary);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s ease-in-out;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 120px;
}

.step-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-dim);
  transition: var(--transition-smooth);
}

.step-label {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-dim);
  font-weight: 600;
  transition: var(--transition-fast);
}

/* Step Active & Completed States */
.step-item.active .step-bubble {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.12);
  transform: scale(1.1);
}

.step-item.active .step-label {
  color: var(--text-main);
}

.step-item.completed .step-bubble {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

/* Step Display Card */
.step-display-card {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  min-height: 250px;
  position: relative;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}

.step-content {
  display: none;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.step-content.active {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

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

.step-image-mock {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.mock-svg {
  width: 50px;
  height: 50px;
}

.step-info .step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.step-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.step-info p {
  line-height: 1.7;
}

.timeline-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 11. Pricing Cards Section */
.pricing-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.price-card.featured {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.12);
  transform: scale(1.02);
}

.price-card.featured:hover {
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.18);
}

.popular-ribbon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
}

.price-header {
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.price-card.featured .price-value {
  color: var(--primary);
}

.price-term {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-features li {
  position: relative;
  padding-left: 1.5rem;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.price-features li.disabled {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

.price-features li.disabled::before {
  content: "✕";
  color: var(--text-dim);
}

.price-footer {
  margin-top: auto;
}

.price-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.75rem 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-display);
  transition: var(--transition-smooth);
}

.price-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.price-card.featured .featured-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  border: none;
}

.price-card.featured .featured-btn:hover {
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.pricing-disclaimer {
  max-width: 850px;
  margin: 0 auto 5rem auto;
  font-size: 0.825rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.pricing-disclaimer p {
  margin-bottom: 0.5rem;
}

/* 12. Comparison Table */
.comparison-wrapper {
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.04);
}

.comparison-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
  width: 30%;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text-muted);
}

.comparison-table tr:hover {
  background: var(--bg-secondary);
}

.comparison-table td .chk {
  color: var(--secondary);
  font-weight: bold;
}

.recommend-row {
  font-weight: 600;
  color: var(--text-main);
}

.recommend-row td {
  border-bottom: none;
}

/* 13. Contact Form & Panel Section */
.contact-section {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info-panel h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.contact-info-panel p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.detail-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.detail-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-light);
}

.contact-human-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.contact-image-wrapper:hover .contact-human-image {
  transform: scale(1.05);
}

.contact-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0) 100%);
  color: #ffffff;
  box-sizing: border-box;
}

.impact-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.impact-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.4;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.9rem;
}

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

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* 14. Footer */
.footer-section {
  background-color: #03040a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 20px 0;
  color: #cbd5e1;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-column p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-logo-huxley {
  height: 36px;
  width: auto;
  display: block;
}

.footer-info-column h4, .footer-links-column h4 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-info-column p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-column a {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-links-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* 15. Responsive Styling Settings */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobirise collapse behavior */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-container {
    gap: 3rem;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-dashboard-mock {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .hero-dashboard-mock .dash-card {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
    animation: none !important;
  }
  

  
  .features-grid, .benefits-grid, .contact-grid, .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .timeline-steps {
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  
  .timeline-line {
    display: none;
  }
  
  .step-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .step-image-mock {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .step-display-card {
    padding: 1.5rem;
  }
}

/* 14. Scroll-driven Animations & Progress Elements */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.progress-circle {
  position: absolute;
  top: 1px;
  left: 1px;
  transform: rotate(-90deg);
}

.progress-circle-fill {
  transition: stroke-dashoffset 0.1s ease-out;
}

.arrow-icon {
  color: var(--text-main);
  z-index: 2;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover .arrow-icon {
  transform: translateY(-2px);
  color: var(--primary);
}

/* Scroll Reveal Fade-in/Slide-up */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


