.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg), transparent 18%);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo-header {
  height: 36px;
}

.brand-logo-footer {
  height: 42px;
}

.logo-variant {
  display: block;
  height: 100%;
  width: auto;
}

.logo-on-dark {
  display: none;
}

html[data-theme="dark"] .logo-on-light {
  display: none;
}

html[data-theme="dark"] .logo-on-dark {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.main-nav a {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--text-muted);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.theme-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange-soft), var(--brand-turquoise-soft));
  position: relative;
}

.theme-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .theme-knob {
  transform: translateX(18px);
}

.theme-label {
  font-size: 0.83rem;
  font-weight: 700;
  min-width: 38px;
  text-align: left;
}

.nav-actions .mobile {
  display: none;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 10%), var(--surface));
}

.footer-highlight {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 30%, rgba(255, 122, 24, 0.18), transparent 46%),
    radial-gradient(circle at 85% 20%, rgba(205, 214, 222, 0.22), transparent 40%);
}

.footer-highlight-inner {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-highlight h3 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
}

.footer-highlight-actions {
  display: flex;
  gap: 0.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  padding: 1.4rem 0 1rem;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-logo-link {
  display: inline-flex;
  margin-bottom: 0.55rem;
}

.footer-intro {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-grid h4 {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  display: block;
  margin: 0.25rem 0;
  color: var(--text-muted);
}

.footer-bottom {
  padding: 1rem 0 1.5rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  gap: 0.9rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 0.4rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card.feature {
  min-height: 180px;
}

.card.pricing .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
}

.pill.ok {
  color: var(--success);
  border-color: rgba(32, 215, 160, 0.4);
}

.pill.off {
  color: var(--danger);
  border-color: rgba(255, 77, 103, 0.4);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  background: var(--surface-soft);
}

.good {
  color: var(--success);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/images/hero-goal-net.jpg") center center / cover no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 5rem 0 4.5rem;
}

.hero-copy {
  max-width: 760px;
  color: #f5f8fb;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #ffffff;
}

.hero-copy p {
  color: rgba(245, 248, 251, 0.9);
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
}

.auth-card {
  padding: 1.2rem;
}

@media (max-width: 980px) {
  .card-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-highlight-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 3vw;
    right: 3vw;
    top: 68px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.7rem;
  }

  .brand-logo-header {
    height: 32px;
  }

  .nav-actions .mobile {
    display: inline-flex;
  }

  .card-grid.three,
  .card-grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content {
    padding: 4rem 0 3.5rem;
  }

  .footer-highlight-actions {
    width: 100%;
  }

  .footer-highlight-actions .btn {
    flex: 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
