/* ============================================
   SMART IGNITION — Warm & Approachable Design
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary warm palette */
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-200: #FDE68A;
  --amber-300: #FCD34D;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-700: #B45309;

  /* Warm coral/terracotta accent */
  --coral: #E07A5F;
  --coral-light: #F0A08C;
  --coral-dark: #C9604A;

  /* Teal for CTAs */
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;

  /* Neutrals */
  --charcoal: #1F2937;
  --charcoal-light: #374151;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --cream: #FFFBEB;
  --cream-warm: #FEF3C7;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.06), 0 1px 2px rgba(31, 41, 55, 0.04);
  --shadow-md: 0 4px 14px rgba(31, 41, 55, 0.08), 0 2px 6px rgba(31, 41, 55, 0.04);
  --shadow-lg: 0 10px 30px rgba(31, 41, 55, 0.1), 0 4px 10px rgba(31, 41, 55, 0.04);
  --shadow-xl: 0 20px 50px rgba(31, 41, 55, 0.12);
  --shadow-warm: 0 8px 30px rgba(245, 158, 11, 0.15);

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

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
}

p {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  max-width: 680px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 600px;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section base --- */
section {
  padding: var(--section-pad) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--amber-500);
  color: var(--amber-700);
  transform: translateY(-2px);
}

.btn-warm {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-warm:hover {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: var(--white);
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(255, 251, 235, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(31, 41, 55, 0.06);
  padding: 12px 0;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:hover {
  color: var(--charcoal);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-500);
  transition: width 0.3s var(--ease-out);
  border-radius: 2px;
}

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

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

.nav-cta {
  padding: 10px 24px !important;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

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

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(170deg, var(--cream) 0%, var(--amber-100) 50%, var(--cream) 100%);
  overflow: hidden;
}

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

.hero-bg .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 20s ease-in-out infinite;
}

.hero-bg .shape-1 {
  width: 500px;
  height: 500px;
  background: var(--amber-400);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-bg .shape-2 {
  width: 350px;
  height: 350px;
  background: var(--coral);
  bottom: -50px;
  left: -80px;
  animation-delay: -7s;
}

.hero-bg .shape-3 {
  width: 250px;
  height: 250px;
  background: var(--teal);
  top: 40%;
  right: 15%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero-content h1 {
  margin-bottom: 24px;
  color: var(--charcoal);
}

.hero-content h1 span {
  color: var(--amber-600);
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--amber-200);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-illustration {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--amber-100), var(--cream));
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.hero-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--gray-200);
  transition: transform 0.4s var(--ease-out);
}

.hero-stat-card:hover {
  transform: translateX(6px);
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-stat-icon.amber { background: var(--amber-100); }
.hero-stat-icon.teal { background: rgba(13, 148, 136, 0.1); }
.hero-stat-icon.coral { background: rgba(224, 122, 95, 0.12); }

.hero-stat-text {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.hero-stat-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--charcoal);
  font-family: var(--font-display);
}

/* --- Pain Points Section --- */
.pain-points {
  background: var(--white);
  position: relative;
}

.pain-points::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--cream), var(--white));
  pointer-events: none;
}

.pain-points .container {
  position: relative;
  z-index: 1;
}

.pain-header {
  text-align: center;
  margin-bottom: 60px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pain-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(245, 158, 11, 0.1);
  transition: all 0.3s var(--ease-out);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-300);
}

.pain-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.pain-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

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

/* --- Services Section --- */
.services {
  background: var(--cream);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber-300);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.service-icon.amber-bg { background: var(--amber-100); }
.service-icon.teal-bg { background: rgba(13, 148, 136, 0.1); }
.service-icon.coral-bg { background: rgba(224, 122, 95, 0.12); }

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-top: 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-features li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal-light);
  background: var(--gray-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}

/* Service addon module */
.service-addon {
  max-width: 800px;
  margin: 36px auto 0;
  background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 2px dashed var(--amber-300);
  position: relative;
}

.addon-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.addon-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.addon-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.addon-text h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.addon-text p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: none;
}

@media (max-width: 600px) {
  .addon-content {
    flex-direction: column;
    gap: 12px;
  }

  .service-addon {
    padding: 28px 20px;
  }
}

/* --- Industries Section --- */
.industries {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.industries-header {
  text-align: center;
  margin-bottom: 60px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.industry-card {
  background: linear-gradient(135deg, var(--cream), var(--amber-100));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: all 0.3s var(--ease-out);
}

.industry-card {
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: var(--amber-400);
}

.industry-card:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
}

.industry-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1;
}

.industry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 auto;
}

.industry-card p strong {
  color: var(--coral-dark);
  font-weight: 700;
}

.industry-learn-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: color 0.2s ease, transform 0.2s ease;
}

.industry-card:hover .industry-learn-more {
  color: var(--teal-dark);
  transform: translateX(3px);
}

/* --- Industry Modal --- */
.industry-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.industry-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.industry-modal {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 44px 40px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 -10px 50px rgba(31, 41, 55, 0.2);
}

.industry-modal-backdrop.active .industry-modal {
  transform: translateY(0);
}

.industry-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.industry-modal-close:hover {
  background: var(--gray-200);
  color: var(--charcoal);
}

.industry-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.industry-modal-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.industry-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--charcoal);
}

.industry-modal-headline {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: none;
}

/* Revenue at Stake callout */
.industry-modal-revenue {
  background: linear-gradient(135deg, rgba(224, 122, 95, 0.08), rgba(224, 122, 95, 0.15));
  border: 1px solid rgba(224, 122, 95, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 28px;
}

.industry-modal-revenue .revenue-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 6px;
}

.industry-modal-revenue .revenue-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--coral);
  line-height: 1.2;
}

.industry-modal-revenue .revenue-period {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Pain points table */
.industry-modal-pain-points {
  margin-bottom: 28px;
}

.pain-point-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}

.pain-point-row:first-child {
  border-top: 1px solid var(--gray-200);
}

.pain-point-row .pp-problem {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.92rem;
}

.pain-point-row .pp-stat {
  font-size: 0.88rem;
  color: var(--coral-dark);
  font-weight: 600;
}

.pain-point-row .pp-solution {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Pain points header row */
.pain-point-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 0 0 10px;
}

.pain-point-header span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

/* Key Insight callout */
.industry-modal-insight {
  background: linear-gradient(135deg, var(--cream), var(--amber-100));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.industry-modal-insight .insight-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 8px;
}

.industry-modal-insight .insight-text {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  line-height: 1.7;
  max-width: none;
  margin: 0;
}

.industry-modal-cta {
  text-align: center;
}

.industry-modal-cta .btn {
  width: 100%;
  max-width: 400px;
}

/* Modal responsive */
@media (max-width: 600px) {
  .industry-modal {
    padding: 36px 20px 28px;
  }

  .pain-point-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .pain-point-header {
    display: none;
  }

  .pain-point-row .pp-problem::before {
    content: '';
  }

  .pain-point-row .pp-stat::before {
    content: 'Impact: ';
    color: var(--gray-400);
    font-weight: 400;
  }

  .pain-point-row .pp-solution::before {
    content: 'Solution: ';
    color: var(--gray-400);
    font-weight: 400;
  }

  .industry-modal-revenue .revenue-value {
    font-size: 1.6rem;
  }

  .industry-modal-title {
    font-size: 1.3rem;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* --- Calculator Section --- */
.calculator {
  background: linear-gradient(170deg, var(--amber-100) 0%, var(--cream) 50%, var(--white) 100%);
  position: relative;
}

.calculator-header {
  text-align: center;
  margin-bottom: 50px;
}

.calculator-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field.full-width {
  grid-column: 1 / -1;
}

.calc-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.calc-field .label-hint {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.calc-field select,
.calc-field input[type="number"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.calc-field select:focus,
.calc-field input[type="number"]:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

/* Range slider styling */
.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-container input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  border: 3px solid var(--white);
  transition: transform 0.15s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  border: 3px solid var(--white);
}

.slider-value {
  min-width: 50px;
  text-align: center;
  font-weight: 700;
  color: var(--amber-700);
  font-size: 1.1rem;
  background: var(--amber-100);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Calculator results */
.calc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-300), transparent);
  margin: 10px 0 36px;
}

.calc-results-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--charcoal);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.result-card {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--cream), var(--amber-100));
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.result-card .result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 6px;
  line-height: 1.2;
}

.result-card .result-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.result-card.highlight {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-color: transparent;
}

.result-card.highlight .result-value {
  color: var(--white);
  font-size: 2.2rem;
}

.result-card.highlight .result-label {
  color: rgba(255, 255, 255, 0.85);
}

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

.calc-cta .btn {
  font-size: 1.1rem;
  padding: 18px 36px;
}

/* --- Testimonials Section --- */
.testimonials {
  background: var(--white);
  position: relative;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid rgba(245, 158, 11, 0.1);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

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

.testimonial-stars {
  color: var(--amber-400);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal-light);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}

.testimonial-info {
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--charcoal);
}

.testimonial-role {
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* --- How It Works Section --- */
.how-it-works {
  background: linear-gradient(170deg, var(--cream), var(--amber-100));
  position: relative;
}

.how-header {
  text-align: center;
  margin-bottom: 70px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 16%;
  right: 16%;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-300), var(--amber-500), var(--amber-300));
  border-radius: 2px;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-600);
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease-out);
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--white);
  transform: scale(1.08);
  box-shadow: var(--shadow-warm);
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0 auto;
  max-width: 280px;
}

/* --- Contact Section --- */
.contact {
  background: var(--white);
  position: relative;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-field label .required {
  color: var(--coral);
}

.form-field input,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.form-field input.error,
.form-field select.error {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.12);
}

.form-error-msg {
  font-size: 0.82rem;
  color: var(--coral);
  display: none;
}

.form-field.has-error .form-error-msg {
  display: block;
}

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

.form-submit .btn {
  width: 100%;
}

/* Form loading state */
.form-submit .btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-submit .btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  animation: popIn 0.5s var(--ease-spring);
}

@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.form-success p {
  margin: 0 auto;
  color: var(--gray-500);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  line-height: 1.7;
}

.footer-contact h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--amber-400);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.footer-socials a:hover {
  background: var(--amber-600);
  color: var(--white);
}

/* --- Scroll animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* --- Mobile menu overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

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

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

  .hero-visual {
    max-width: 400px;
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 0;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s var(--ease-out);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: inline-block !important;
    margin-top: 16px;
    text-align: center;
    width: 100%;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-overlay.active {
    display: block;
  }

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

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .calc-results {
    grid-template-columns: 1fr 1fr;
  }

  .calculator-wrapper {
    padding: 28px 20px;
  }

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

  .steps-grid::before {
    display: none;
  }

  .contact-wrapper {
    padding: 28px 20px;
  }

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

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

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    text-align: center;
  }

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

  .calc-results {
    grid-template-columns: 1fr;
  }

  .result-card .result-value {
    font-size: 1.6rem;
  }
}
