:root {
  --header: #1e40af;
  --main-theme-color: #3b82f6;
  --main-theme-dark: #1e3a8a;
  --accent-soft: #eff6ff;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --header-bg: rgba(30, 64, 175, 0.97);
  --feature-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
  --shadow-sm: 0 2px 12px rgba(30, 58, 138, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 58, 138, 0.12);
  --border-light: rgba(30, 58, 138, 0.08);
}

#headerSub {
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--header);
}

#headerSub.header-scrolled,
#headerSub.header-inner-pages {
  background: var(--header-bg);
}

#headerSub .logo img {
  max-height: 45px;
}

#intro-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #ffffff 0%, var(--light-bg) 55%, var(--accent-soft) 100%);
  padding: 80px 0 60px;
}

.sparkmailr-logo-hero {
  max-width: 220px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  min-width: 100px;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--main-theme-dark);
  font-family: 'Nunito', sans-serif;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subtitle {
  color: var(--main-theme-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.highlight {
  color: var(--main-theme-dark);
}

.button-styling {
  background-color: var(--main-theme-dark);
  color: white;
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border: 2px solid var(--main-theme-dark);
  display: inline-block;
  transition: all 0.3s ease;
}

.button-styling:hover {
  text-decoration: none;
  background-color: var(--main-theme-color);
  border-color: var(--main-theme-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-styling-outline {
  background: transparent;
  color: var(--main-theme-dark);
  border: 2px solid var(--main-theme-dark);
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  display: inline-block;
  transition: all 0.3s ease;
  margin-left: 0.75rem;
}

.button-styling-outline:hover {
  text-decoration: none;
  background: var(--main-theme-dark);
  color: #fff;
}

@media (max-width: 575.98px) {
  .button-styling-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
    text-align: center;
  }
}

#features-section {
  padding: 80px 0;
  background: var(--card-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card .fc-icon {
  width: 48px;
  height: 48px;
  background: var(--main-theme-dark);
  color: #93c5fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

#sdk-section {
  padding: 70px 0;
  background: var(--feature-gradient);
  color: #fff;
  text-align: center;
}

.sdk-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.sdk-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

#compliance-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.compliance-badge {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.compliance-badge i {
  font-size: 1.75rem;
  color: var(--main-theme-color);
  margin-bottom: 0.5rem;
  display: block;
}

.compliance-badge span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

#cta-section {
  padding: 70px 0;
  background: var(--card-bg);
  text-align: center;
}

#features-section,
#cta-section,
#contact {
  scroll-margin-top: 90px;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--text-primary);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text-primary);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.intro-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 500;
  font-family: "Raleway", sans-serif;
}

@media (max-width: 575.98px) {
  #intro-section {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .sparkmailr-logo-hero {
    max-width: 160px;
    margin-top: 2rem;
  }
}
