:root {
  --brand-primary: #2d7ff9;
  --brand-dark: #0a1633;
  --brand-accent: #76f1d4;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1b1f2f;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Funnel Display', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.site-header .navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(10, 22, 51, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.4rem;
  color: #1b1f2f;
}

.navbar-brand .brand-accent {
  color: var(--brand-accent);
}

.site-header .navbar .nav-link {
  font-weight: 500;
  color: rgba(27, 31, 47, 0.72);
  transition: color 0.2s ease;
}

.site-header .navbar .nav-link:hover,
.site-header .navbar .nav-link:focus {
  color: #1b1f2f;
}

.site-header .navbar-home {
  background-color: transparent;
  box-shadow: none;
}

.site-header .navbar-home:not(.is-solid) .navbar-brand,
.site-header .navbar-home:not(.is-solid) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.site-header .navbar-home:not(.is-solid) .nav-link:hover,
.site-header .navbar-home:not(.is-solid) .nav-link:focus {
  color: #ffffff;
}

.site-header .navbar-home .navbar-toggler {
  border: none;
}

.site-header .navbar-home .navbar-toggler:focus {
  box-shadow: none;
}

.site-header .navbar-home .navbar-toggler-icon {
  filter: invert(1);
}

.site-header .navbar-home.is-solid .navbar-toggler-icon {
  filter: none;
}

.site-header .navbar-home.is-solid {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(10, 22, 51, 0.08);
}

.site-header .navbar-home.is-solid .navbar-brand,
.site-header .navbar-home.is-solid .nav-link {
  color: rgba(27, 31, 47, 0.85);
}

.hero {
  min-height: 100vh;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, rgba(10, 22, 51, 0.95), rgba(10, 22, 51, 0.7)),
    url('/assets/img/traceid-hero.svg') center/cover no-repeat fixed;
  color: #ffffff;
}

.hero .badge.bg-primary-soft {
  background-color: rgba(118, 241, 212, 0.15);
  color: var(--brand-accent);
  letter-spacing: 0.12em;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.hero-card {
  background: rgba(13, 25, 49, 0.85);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(118, 241, 212, 0.2);
}

.hero-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(118, 241, 212, 0.12);
  color: var(--brand-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-kicker {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 127, 249, 0.12);
  color: var(--brand-primary);
  font-size: 1.5rem;
}

.feature-tile {
  height: 100%;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background-color: #ffffff;
  border: 1px solid rgba(27, 31, 47, 0.08);
  box-shadow: 0 18px 40px rgba(10, 22, 51, 0.04);
}

.feature-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(45, 127, 249, 0.12);
  color: var(--brand-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.blog-content > * + * {
  margin-top: 1.5rem;
}

.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

.cta-panel {
  border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--brand-primary), #5b9bff);
  padding: 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% -20%;
  height: 200%;
  background: radial-gradient(circle, rgba(118, 241, 212, 0.35), transparent 60%);
  transform: rotate(-8deg);
}

.cta-panel .btn {
  position: relative;
  z-index: 1;
}

.blog-card .badge {
  background-color: rgba(45, 127, 249, 0.12);
  color: var(--brand-primary);
}

.blog-card a {
  color: inherit;
  font-weight: 600;
}

.blog-card a:hover {
  color: var(--brand-primary);
}

.site-footer {
  background: var(--brand-dark);
}

.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 15px 30px rgba(10, 22, 51, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  font-weight: 600;
  z-index: 1050;
}

.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(10, 22, 51, 0.3);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  box-shadow: 0 15px 30px rgba(10, 22, 51, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1049;
}

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

/* When sticky CTA is visible, move back-to-top button up */
.sticky-cta.is-visible ~ .back-to-top {
  bottom: 5.5rem;
}

.page-hero {
  margin-top: 6rem;
}

.hero + section {
  margin-top: -4rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero {
    padding: 7rem 0 4rem;
    text-align: center;
  }

  .hero-card {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 400px) {
  .site-header .navbar {
    background-color: rgb(13, 23, 51);
    box-shadow: none;
  }

  .site-header .navbar .nav-link,
  .site-header .navbar .navbar-brand {
    color: #ffffff;
  }

  .site-header .navbar .nav-link:hover,
  .site-header .navbar .nav-link:focus {
    color: rgba(255, 255, 255, 0.8);
  }

  .site-header .navbar .btn-primary {
    background-color: rgba(118, 241, 212, 0.9);
    border-color: rgba(118, 241, 212, 0.9);
    color: #0a1633;
  }

  .site-header .navbar .navbar-toggler-icon {
    filter: invert(1);
  }
}
