:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg: #0b1226;
  --ink: #0f172a;
  --muted: #6b7280;
  --card: #ffffff;
  --alt: #f7f8fc;
  --ring: rgba(37, 99, 235, 0.35);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

/* Layout helpers */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 1rem;
}

.brand {
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.2px;
}

.brand span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
}

.nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  padding: 0.5rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: clamp(2rem, 8vw, 4rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-copy p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.hero-points li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0.5rem 0;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.hero-points i {
  background: #fff1;
  border-radius: 999px;
  padding: 0.4rem;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-width: 100%;
}

/* Sections */
.section {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.section-alt {
  background: var(--alt);
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-head .lead {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Card / Form */
.card {
  background: #f9faff;
  padding: clamp(1.5rem, 5vw, 2rem);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 2rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

#leadForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1.2rem;
}

#leadForm button {
  grid-column: 1 / -1;
}

.field {
  margin: 14px 0;
}

.field label {
  display: block;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.field input {
  width: 100%;
  padding: clamp(0.8rem, 2.5vw, 1rem);
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: clamp(0.9rem, 2.2vw, 0.95rem);
  transition: all 0.3s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
  background: #fefeff;
}

.field.full-width {
  grid-column: 1 / -1;
}

.error {
  display: block;
  color: #b42318;
  font-size: clamp(0.75rem, 1.8vw, 0.8rem);
  min-height: 1.1rem;
  margin-top: 0.25rem;
}

.card-section {
  background-color: #2563eb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 2rem 0;
}

/* Button */
.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: clamp(0.8rem, 2.5vw, 0.9rem) 1rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: clamp(1rem, 4vw, 1.5rem);
  text-align: center;
}

.stat-value {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-weight: 700;
  margin-top: 0.2rem;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.stat p {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  margin: 0.5rem 0 0;
}

/* Testimonials */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.testimonial .person {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.testimonial .person img {
  width: clamp(40px, 8vw, 44px);
  height: clamp(40px, 8vw, 44px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial .person strong {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.testimonial .person .muted {
  font-size: clamp(0.8rem, 2vw, 0.85rem);
}

.stars {
  color: #f59e0b;
  margin: 0.4rem 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.testimonial p {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  line-height: 1.5;
  margin: 0.8rem 0 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service {
  text-align: center;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: clamp(1rem, 4vw, 1.5rem);
  background: #fff;
}

.service .icon {
  width: clamp(45px, 10vw, 54px);
  height: clamp(45px, 10vw, 54px);
  border-radius: 999px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Footer */
.site-footer {
  background: #091230;
  color: #e5e7eb;
  padding: clamp(2rem, 6vw, 2.5rem) 0 1.5rem;
}

/* Footer row: align horizontally + vertically */
.footer-grid {
  display: flex;
  /* override grid */
  align-items: center;
  /* vertical centering across the row */
  justify-content: space-between;
  gap: 2rem;
}

/* Ensure children don't overflow */
.footer-grid>* {
  min-width: 0;
}

/* Logo column */
.footer-brand img {
  height: 48px;
  /* consistent height */
  display: block;
  /* remove inline gap */
}

/* Contact column */
.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* centers the block vertically */
}

.footer-contact h4 {
  margin: 0 0 0.5rem;
  /* remove default top margin that pushes it down */
  line-height: 1;
}

/* Social column on the right */
.footer-social {
  margin-left: auto;
  /* pushes it to the right */
  display: flex;
  align-items: center;
  /* centers icons vertically against logo/contact */
  gap: 1rem;
}

.footer-social a {
  color: #93c5fd;
  font-size: 1.4rem;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  background: rgba(147, 197, 253, 0.15);
  color: #fff;
}



/* Mobile: stack centered */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 64px;
    /* same as header height */
    left: 0;
    padding: 1rem;
    border-top: 1px solid #eef0f4;
  }

  .nav.open {
    display: block;
    /* or flex if you prefer stacked flex items */
  }

  .nav a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: #334155;
    background: none;
    border: none;
  }


  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    margin-left: 0;
    justify-content: center;
  }
}

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social a {
  color: #93c5fd;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.social a:hover {
  background: rgba(147, 197, 253, 0.1);
}

.footer-grid h4 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 0.8rem;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-links li {
  margin: 0.5rem 0;
  color: #cbd5e1;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.foot-links i {
  width: 16px;
  flex-shrink: 0;
}

.copy {
  border-top: 1px solid #1f2937;
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    color: #334155;
  }

  .hero-grid {
    padding: 1rem 0;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #leadForm {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .field {
    margin: 10px 0;
  }

  .field.full-width {
    grid-column: 1;
  }

  .card-section {
    min-height: auto;
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0 0.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-points li {
    font-size: 0.9rem;
    gap: 0.6rem;
  }

  .hero-points i {
    padding: 0.3rem;
  }

  .card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .stats-grid,
  .cards-grid,
  .services-grid {
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .social {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .card {
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .field input {
    padding: 0.7rem;
  }

  .btn-primary {
    padding: 0.8rem;
  }
}

/* Utility classes for better mobile experience */
.mobile-center {
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-center {
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }
}

.action-plan {
  padding: 80px 1rem;
  background: linear-gradient(to right, #f0f4f8, #ffffff);
  text-align: center;
}

.action-plan h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

.action-plan .subheading {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.step-card .icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step-card h3 {
  font-size: 1.1rem;
  color: #1e293b;
  line-height: 1.4;
}

/* Container */
#implementation-guide {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f1f5f9, #dbeafe);
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: #475569;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  position: relative;
}

/* Step */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

/* Connector */
.step-connector {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, #3B82F6, #06B6D4);
  z-index: 0;
}

/* Step Icon */
.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}

.step-icon i {
  font-size: 1.5rem;
}

/* Active Step Shadow */
.step-active {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Step Colors */
.step-icon:nth-child(1) {
  background: linear-gradient(to right, #3B82F6, #06B6D4);
}

.step-icon:nth-child(2) {
  background: linear-gradient(to right, #10B981, #059669);
}

.step-icon:nth-child(3) {
  background: linear-gradient(to right, #8B5CF6, #EC4899);
}

.step-icon:nth-child(4) {
  background: linear-gradient(to right, #F97316, #EF4444);
}

.step-icon:nth-child(5) {
  background: linear-gradient(to right, #6366F1, #3B82F6);
}

.step-icon:nth-child(6) {
  background: linear-gradient(to right, #14B8A6, #06B6D4);
}

.step-icon:nth-child(7) {
  background: linear-gradient(to right, #F59E0B, #F97316);
}

.step-icon:nth-child(8) {
  background: linear-gradient(to right, #EC4899, #F43F5E);
}

.step-icon:nth-child(9) {
  background: linear-gradient(to right, #8B5CF6, #A78BFA);
}

/* Step Text */
.step-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.step-text p {
  font-size: 0.875rem;
  color: #475569;
}

/* Container */
#implementation-guide {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f1f5f9, #dbeafe);
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: #475569;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  position: relative;
}

/* Step */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Step Icon */
.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}

.step-icon i {
  font-size: 1.5rem;
}

/* Active Step Shadow */
.step-active {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Step Colors */
.step-icon:nth-of-type(1) {
  background: linear-gradient(to right, #3B82F6, #06B6D4);
}

.step-icon:nth-of-type(2) {
  background: linear-gradient(to right, #10B981, #059669);
}

.step-icon:nth-of-type(3) {
  background: linear-gradient(to right, #8B5CF6, #EC4899);
}

.step-icon:nth-of-type(4) {
  background: linear-gradient(to right, #F97316, #EF4444);
}

.step-icon:nth-of-type(5) {
  background: linear-gradient(to right, #6366F1, #3B82F6);
}

.step-icon:nth-of-type(6) {
  background: linear-gradient(to right, #14B8A6, #06B6D4);
}

.step-icon:nth-of-type(7) {
  background: linear-gradient(to right, #F59E0B, #F97316);
}

.step-icon:nth-of-type(8) {
  background: linear-gradient(to right, #EC4899, #F43F5E);
}

.step-icon:nth-of-type(9) {
  background: linear-gradient(to right, #8B5CF6, #A78BFA);
}

/* Step Text */
.step-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.step-text p {
  font-size: 0.875rem;
  color: #475569;
}

/* Connector Line */
.step-connector {
  position: absolute;
  top: 40px;
  /* aligns with center of icon */
  left: 100%;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3B82F6, #06B6D4);
}

.step:nth-child(3n) .step-connector {
  display: none;
  /* no connector at the end of each row */
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none;
  }
}

.nav #download-cta {
  background-color: #2563eb;
  color: white;
  border-radius: 10px;
}