/* MADLABZ Core Design System & Styling */

:root {
  /* Harmonious Dark SaaS Palette */
  --bg-primary: #060813;
  --bg-secondary: #0B1020;
  --card-bg: #11172A;
  --card-bg-hover: #151D35;
  --accent-blue: #3F6BFF;
  --accent-blue-glow: rgba(63, 107, 255, 0.25);
  --accent-coral: #FF5B68;
  --accent-coral-glow: rgba(255, 91, 104, 0.25);
  --accent-green: #10B981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  
  --text-white: #FFFFFF;
  --text-muted: #C7CBD6;
  --text-dark: #7E8594;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(63, 107, 255, 0.3);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Manrope', var(--font-sans);
  
  /* Layout constraints */
  --max-width: 1200px;
  --header-height: 80px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. RESET & GENERAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
  color: var(--text-muted);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Glow Effects */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(140px);
  opacity: 0.15;
}
.bg-glow-1 {
  top: 10%;
  right: -100px;
  background-color: var(--accent-blue);
}
.bg-glow-2 {
  top: 50%;
  left: -200px;
  background-color: var(--accent-coral);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Utility Helpers */
.text-center { text-align: center; }
.max-width-md { max-width: 700px; margin-left: auto; margin-right: auto; }
.text-gradient-blue {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-coral {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-green {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--text-white);
  box-shadow: 0 4px 15px var(--accent-blue-glow);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}
.btn-primary:hover {
  background-color: #557DFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 107, 255, 0.4);
}
.btn-primary:hover::after {
  left: 100%;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.05rem;
}
.btn-full {
  width: 100%;
}

/* BADGES */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background-color: rgba(63, 107, 255, 0.1);
  color: var(--accent-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(63, 107, 255, 0.15);
  margin-bottom: 1rem;
}
.section-badge.badge-coral {
  background-color: rgba(255, 91, 104, 0.1);
  color: var(--accent-coral);
  border-color: rgba(255, 91, 104, 0.15);
}

/* SECTION GLOBAL */
.section {
  padding: 6.5rem 0;
  position: relative;
}
.section-header {
  margin-bottom: 4rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 2. HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(6, 8, 19, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.site-header.scrolled {
  height: 70px;
  background-color: rgba(6, 8, 19, 0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Reusable brand logo */
.logo-img-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.logo-img-wrapper:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.logo-img {
  height: 30px; /* Reduced by an additional 10% for a sleeker look */
  width: auto;
  display: block;
}
.logo-img-footer {
  height: 25px; /* Reduced by an additional 10% for a tighter footer balance */
}

/* Navigation items */
.nav-menu {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  position: relative;
  transition: var(--transition-smooth);
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  left: 0;
  transition: var(--transition-smooth);
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hamburger Active State */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* 3. HERO SECTION */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 4.5rem;
  position: relative;
  background: radial-gradient(circle at 70% 30%, rgba(63, 107, 255, 0.08) 0%, transparent 60%);
}
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
  padding-bottom: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-coral);
  border-radius: 50%;
  animation: pulse-coral 2s infinite;
}

@keyframes pulse-coral {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 91, 104, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 91, 104, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 91, 104, 0); }
}

.hero-title {
  font-size: 3.15rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.hero-brand-statement {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 2.25rem;
  background-color: rgba(63, 107, 255, 0.05);
  border: 1px solid rgba(63, 107, 255, 0.12);
  padding: 0.65rem 1rem;
  border-radius: 12px;
}
.hero-brand-statement svg {
  color: var(--accent-coral);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-audience {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Hero Workflow Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.visual-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-glow);
  padding: 2rem;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 10;
}
.visual-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 60%);
  top: -10%;
  left: -10%;
  z-index: -1;
  pointer-events: none;
}

.workflow-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
  opacity: 0.3;
  transform: translateY(10px);
}
.workflow-card.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  animation: glow-cycle 5s infinite;
  animation-delay: var(--card-delay);
}
.workflow-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.workflow-card.active .workflow-icon {
  background-color: rgba(63, 107, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue-glow);
}
.workflow-card.active:nth-child(odd) .workflow-icon {
  background-color: rgba(255, 91, 104, 0.08);
  border-color: var(--accent-coral);
  box-shadow: 0 0 10px var(--accent-coral-glow);
}

.workflow-details {
  display: flex;
  flex-direction: column;
}
.workflow-status {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}
.workflow-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.workflow-line {
  width: 2px;
  height: 25px;
  background-color: var(--border-color);
  margin-left: 42px;
  position: relative;
}
.workflow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--accent-blue);
  transition: var(--transition-smooth);
}
.workflow-card.active + .workflow-line::after {
  height: 100%;
  animation: fill-line 5s infinite;
  animation-delay: var(--line-delay);
}

@keyframes fill-line {
  0% { height: 0; background-color: var(--accent-blue); }
  25% { height: 100%; background-color: var(--accent-blue); }
  50% { height: 100%; background-color: var(--accent-coral); }
  75% { height: 100%; background-color: var(--accent-coral); }
  100% { height: 0; }
}

@keyframes glow-cycle {
  0%, 100% { border-color: var(--border-color); box-shadow: none; }
  15%, 45% { border-color: var(--accent-blue); box-shadow: 0 0 15px rgba(63, 107, 255, 0.25); }
  55%, 85% { border-color: var(--accent-coral); box-shadow: 0 0 15px rgba(255, 91, 104, 0.25); }
}

/* Trust Strip Under Hero */
.hero-trust-strip {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.75rem 0;
  background-color: rgba(11, 16, 32, 0.4);
  backdrop-filter: blur(8px);
}
.trust-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-white);
}
.trust-check {
  color: var(--accent-coral);
  font-weight: 900;
  font-size: 1.1rem;
}

/* 4. PROBLEM SECTION */
.section-problem {
  background-color: var(--bg-secondary);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.problem-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
}
.problem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 91, 104, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: rgba(255, 91, 104, 0.08);
  border: 1px solid rgba(255, 91, 104, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-coral);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}
.problem-card:hover .problem-icon {
  background-color: var(--accent-coral);
  color: var(--text-white);
  box-shadow: 0 4px 15px var(--accent-coral-glow);
}
.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.problem-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 5. SOLUTION (JOURNEY MAP) SECTION */
.journey-map {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 4.5rem;
  position: relative;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 6px rgba(6, 8, 19, 0.8);
  transition: var(--transition-smooth);
}
.journey-step:hover .step-num {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-blue-glow);
  transform: scale(1.1);
}

.step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem 1.15rem;
  border-radius: 16px;
  width: 100%;
  min-height: 140px;
  transition: var(--transition-smooth);
}
.journey-step:hover .step-card {
  border-color: var(--border-hover);
  background-color: var(--card-bg-hover);
  transform: translateY(-3px);
}
.step-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-white);
}
.step-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0;
}

.journey-arrow {
  color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  flex-shrink: 0;
  margin-top: 0;
  align-self: flex-start;
  padding-top: 10px;
  z-index: 1;
}

/* 6. REVENUE LOSS CALCULATOR */
.section-calculator {
  background: radial-gradient(circle at 30% 60%, rgba(63, 107, 255, 0.05) 0%, transparent 60%);
}
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 28px;
  box-shadow: var(--glass-glow);
  margin-bottom: 4rem;
}

.calc-inputs-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.input-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.input-labels label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  font-size: 1.05rem;
}
.live-badge {
  background-color: rgba(63, 107, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(63, 107, 255, 0.2);
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 70px;
  text-align: center;
  box-shadow: 0 0 10px rgba(63, 107, 255, 0.05);
}

/* Styling Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #192138;
  outline: none;
  transition: background 0.3s;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-blue) var(--range-progress, 0%), #192138 var(--range-progress, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-coral);
  border: 3px solid #0B1020;
  box-shadow: 0 0 10px rgba(255, 91, 104, 0.5);
  cursor: pointer;
  margin-top: -8px;
  transition: transform 0.15s, background-color 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background-color: #ff7883;
}

/* Firefox sliders */
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #192138;
}
input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 5px;
  background-color: var(--accent-blue);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-coral);
  border: 3px solid #0B1020;
  box-shadow: 0 0 10px rgba(255, 91, 104, 0.5);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dark);
}

.calc-explanation-copy {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: auto;
}

/* Results section */
.calc-results-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 20px;
  justify-content: center;
}

.result-tile {
  padding: 1.15rem;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.result-tile.lost-revenue {
  border-color: rgba(255, 91, 104, 0.12);
  background: linear-gradient(135deg, rgba(255, 91, 104, 0.02) 0%, transparent 100%);
  box-shadow: inset 0 0 15px rgba(255, 91, 104, 0.03);
}
.result-tile.lost-revenue:hover {
  border-color: var(--accent-coral);
  box-shadow: 0 0 25px rgba(255, 91, 104, 0.12);
}
.result-tile.system-cost {
  border-color: rgba(63, 107, 255, 0.12);
  background: linear-gradient(135deg, rgba(63, 107, 255, 0.02) 0%, transparent 100%);
}
.result-tile.roi-percentage {
  border-color: rgba(16, 185, 129, 0.12);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, transparent 100%);
}
.result-tile.roi-percentage:hover {
  border-color: var(--accent-green);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.12);
}

.tile-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.tile-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}
.tile-note {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dark);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.calc-cta-block {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.calc-cta-block h3 {
  font-size: 1.35rem;
}

/* 7. SOLUTIONS / PRODUCT CARDS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Featured high-tier card highlight */
.product-card.featured {
  border-color: rgba(255, 91, 104, 0.2);
  background: linear-gradient(180deg, var(--card-bg) 0%, rgba(255, 91, 104, 0.02) 100%);
  box-shadow: 0 8px 32px 0 rgba(255, 91, 104, 0.03);
}
.product-card.featured:hover {
  border-color: var(--accent-coral);
  box-shadow: 0 15px 40px rgba(255, 91, 104, 0.15);
}

.product-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  background-color: rgba(63, 107, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(63, 107, 255, 0.15);
}
.product-badge.accent {
  color: var(--accent-coral);
  background-color: rgba(255, 91, 104, 0.1);
  border-color: rgba(255, 91, 104, 0.15);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { border-color: rgba(255, 91, 104, 0.15); }
  50% { border-color: rgba(255, 91, 104, 0.6); }
  100% { border-color: rgba(255, 91, 104, 0.15); }
}

.product-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  margin-top: 0.5rem;
}
.product-positioning {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 1.15rem;
}
.product-target {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.product-target strong {
  color: var(--text-white);
}

.product-divider {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}

.product-benefits h4, .product-features h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.product-benefits ul, .product-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.product-benefits li, .product-features li {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}
.product-benefits li::before, .product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-weight: 900;
}
.product-card.featured li::before {
  color: var(--accent-coral);
}

.product-cta {
  margin-top: auto;
  padding-top: 2rem;
}

/* 8. CUSTOMER LIST REACTIVATION SECTION */
.section-reactivation {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.reactivation-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
}
.reactivation-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 91, 104, 0.08) 0%, transparent 60%);
  top: -10%;
  right: -10%;
  pointer-events: none;
}

.reactivation-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.reactivation-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-coral);
  margin-bottom: 1rem;
}
.reactivation-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.reactivation-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.reactivation-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.reactivation-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 91, 104, 0.1);
  border: 1px solid rgba(255, 91, 104, 0.2);
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.reactivation-item h5 {
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}
.reactivation-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Reactivation panel visual */
.reactivation-visual {
  display: flex;
  justify-content: center;
}
.reactivation-card-panel {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--glass-glow);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
}
.panel-header {
  background-color: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.panel-dot.red { background-color: #EF4444; }
.panel-dot.yellow { background-color: #F59E0B; }
.panel-dot.green { background-color: #10B981; }
.panel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-white);
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 0.65rem;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
}
.stat-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-white);
}

.progress-bar-container {
  height: 8px;
  background-color: #192138;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-coral));
}

.panel-note {
  font-size: 0.75rem;
  color: var(--text-dark);
  line-height: 1.4;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* 9. WHO IT IS FOR SECTION */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.who-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.who-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.who-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.who-pain {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-white);
  margin-bottom: 1.15rem;
  display: block;
  font-weight: 500;
}
.who-outcome {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 1.15rem;
  display: block;
}

/* 10. WHY MADLABZ SECTION */
.why-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}
.why-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.why-intro-copy {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}
.why-point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.why-point-icon {
  color: var(--accent-blue);
  font-weight: 900;
  font-size: 1.05rem;
  margin-top: 0.05rem;
}
.why-point span {
  font-size: 0.95rem;
  line-height: 1.45;
}

.why-brand-line {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-white);
  border-left: 3px solid var(--accent-coral);
  padding-left: 1.15rem;
  line-height: 1.4;
}

/* Why visual circle */
.why-visual {
  display: flex;
  justify-content: center;
}
.why-stat-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--glass-glow);
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}
.circle-progress {
  position: relative;
  width: 180px;
  height: 180px;
}
.circle-progress svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.circle-progress circle {
  fill: none;
  stroke-width: 8px;
}
.circle-progress circle.base {
  stroke: #192138;
}
.circle-progress circle.fill {
  stroke: var(--accent-blue);
  stroke-dasharray: 251.2; /* 2 * pi * r (r=40) */
  stroke-dashoffset: 251.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 2s ease-out;
}
.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.circle-text .number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.15rem;
  color: var(--text-white);
  line-height: 1;
}
.circle-text .label {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.why-stat-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 11. FAQ ACCORDION SECTION */
.section-faqs {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item:hover {
  border-color: rgba(255,255,255,0.15);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-white);
  transition: var(--transition-smooth);
}
.faq-arrow {
  color: var(--text-dark);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.faq-item.active {
  border-color: var(--border-hover);
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(255,255,255,0.01);
}
.faq-answer p {
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* 12. FINAL CTA SECTION */
.section-final-cta {
  padding: 8.5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(63, 107, 255, 0.08) 0%, transparent 60%);
  position: relative;
}
.final-cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 91, 104, 0.06) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.final-cta-container {
  position: relative;
  z-index: 10;
}
.final-cta-content h2 {
  font-size: 2.85rem;
  margin-bottom: 1.5rem;
}
.final-cta-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.75rem;
}

/* 13. FOOTER */
.site-footer {
  background-color: #03040A;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 3.5rem 0;
  color: var(--text-dark);
}
.footer-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr 1fr;
  gap: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-top: auto;
}

.footer-links-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links, .footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dark);
}
.footer-links a:hover {
  color: var(--text-white);
  padding-left: 0.25rem;
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.85rem;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1rem;
  line-height: 1;
}
.footer-contact li span:last-child {
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}
.social-icon:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-legal {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-dark);
}
.footer-legal a:hover {
  color: var(--text-white);
}

/* 14. ANIMATIONS */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* 15. MOBILE STYLING & MEDIA QUERIES */

@media (max-width: 1024px) {
  h2 { font-size: 2rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-container { gap: 2.5rem; }
  .calculator-grid { gap: 2.25rem; padding: 2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .products-grid > .product-card:last-child { grid-column: span 2; }
  .who-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 900px) {
  .site-header {
    height: 70px;
  }
  .nav-toggle {
    display: block;
  }
  
  /* Mobile menu drawers */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #060813;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    gap: 2.25rem;
    width: 100%;
    text-align: center;
  }
  .nav-link {
    font-size: 1.25rem;
    display: block;
    padding: 0.5rem;
  }
  .nav-cta {
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    margin-top: 1rem;
  }
  
  /* Layout stacks */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-brand-statement {
    text-align: left;
  }
  .hero-ctas {
    justify-content: center;
  }
  
  .journey-map {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .journey-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
  }
  .journey-step {
    width: 100%;
    max-width: 360px;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .reactivation-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .why-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  h2 { font-size: 1.75rem; }
  .hero-title { font-size: 2rem; }
  .hero-brand-statement { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .trust-container { justify-content: center; }
  .trust-item { font-size: 0.8rem; }
  
  .problem-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid > .product-card:last-child { grid-column: span 1; }
  .who-grid { grid-template-columns: 1fr; }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

/* Legal Pages Styling */
.legal-page {
  padding-top: 8rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 2;
}

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3.5rem;
  margin-top: 2rem;
  box-shadow: var(--glass-glow);
}

.legal-title {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--text-white) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.legal-subtitle {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  display: block;
  font-family: var(--font-sans);
}

.legal-content h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
}

.legal-content h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background: var(--accent-blue);
  border-radius: 2px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.legal-content a:hover {
  text-shadow: 0 0 8px var(--accent-blue-glow);
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  .legal-card {
    padding: 2rem 1.5rem;
  }
  .legal-title {
    font-size: 2.25rem;
  }
}
