:root {
  --bg-1: #16263e;
  --bg-2: #111e33;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #edf3ff;
  --muted: #9fb0c8;
  --accent: #8ef1cf;
  --accent-2: #7ab8ff;
  --danger: #ff6b6b;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.36), 0 6px 18px rgba(0, 0, 0, 0.22);
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --container-width: 1320px;
  --shell-padding: clamp(16px, 2vw + 10px, 40px);
  --topbar-gap: 12px;
  --anchor-offset: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: radial-gradient(circle at 20% 12%, rgba(122, 199, 255, 0.16), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(142, 241, 207, 0.14), transparent 38%),
    linear-gradient(140deg, #223555, #1a2c47, #122039);
  color-scheme: dark;
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: #122039;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #122039;
  display: flex;
  flex-direction: column;
  padding: var(--topbar-gap) var(--shell-padding) 0;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(24, 42, 72, 0.55), rgba(10, 20, 36, 0.78));
  z-index: -2;
}

.background {
  position: fixed;
  inset: -20vh 0 -20vh 0;
  pointer-events: none;
  z-index: -1;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 180px 180px, 180px 180px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.4), transparent 65%);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  mix-blend-mode: normal;
}

.ambient-a {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(142, 241, 207, 0.42), transparent 60%);
  top: 10%;
  left: 6%;
}

.ambient-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(122, 184, 255, 0.28), transparent 60%);
  right: 4%;
  bottom: 12%;
}

.topbar,
.hero,
.section,
.footer {
  width: min(var(--container-width), 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: var(--topbar-gap);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 14px clamp(12px, 2vw, 18px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 30, 50, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(74, 229, 165, 0.12);
  display: inline-block;
}

.brand-name {
  font-size: 1rem;
}

.topnav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  padding: 2px 0;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.1;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.topnav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border 0.15s ease, color 0.15s ease;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.primary {
  background: var(--accent);
  color: #042014;
  border-color: rgba(74, 229, 165, 0.35);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.primary:hover {
  background: #9af4d7;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.hero {
  margin: var(--topbar-gap) auto 60px;
  position: relative;
  z-index: 1;
  overflow: visible;
  scroll-margin-top: var(--anchor-offset);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.hero-copy h1 {
  margin: 14px 0;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.lede {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 720px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chip,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill {
  font-size: 0.9rem;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: rgba(142, 241, 207, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  background: rgba(18, 30, 50, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3 {
  margin: 4px 0 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.status {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.status.good {
  background: rgba(74, 229, 165, 0.14);
  color: #4ae5a5;
  border-color: rgba(74, 229, 165, 0.28);
}

.meter {
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meter-label {
  margin: 0 0 6px;
  color: var(--muted);
}

.meter-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.meter-info {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-value {
  margin: 4px 0 0;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124, 199, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(124, 199, 255, 0.24);
}

.tag.alt {
  background: rgba(245, 183, 89, 0.1);
  border-color: rgba(245, 183, 89, 0.32);
}

.cta-inline {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-arrow {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stat {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.section {
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 0 2px;
  scroll-margin-top: var(--anchor-offset);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
}

.muted {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(18, 30, 50, 0.6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 20px;
  min-height: 180px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: visible;
}

.feature-card h3 {
  margin: 12px 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 241, 207, 0.25);
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 229, 165, 0.14), rgba(124, 199, 255, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 30, 50, 0.55);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #042412;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step h4 {
  margin: 4px 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.speed-card {
  background: rgba(18, 30, 50, 0.6);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 14px;
  overflow: visible;
}

.speed-meter {
  display: grid;
  gap: 6px;
}

.speed-meter .meter-bar {
  height: 12px;
}

.speed-meter .meter-bar span {
  height: 100%;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

.meter-value {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.speed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mini-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.highlight .cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 26px;
  background: rgba(18, 30, 50, 0.75);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.cta-aside {
  display: grid;
  gap: 10px;
}

.aside-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(18, 30, 50, 0.55);
}

.tariff-builder {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.tariff-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tariff-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.tariff-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 30, 50, 0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease, color 0.15s ease;
}

.tariff-tab.is-active {
  background: rgba(142, 241, 207, 0.16);
  border-color: rgba(142, 241, 207, 0.4);
  color: #dffcf4;
}

.tariff-tab:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.tariff-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 600;
  font-family: inherit;
  min-width: 220px;
}

.tariff-select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.location-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 30, 50, 0.6);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border 0.15s ease, color 0.15s ease;
}

.location-chip.is-selected {
  background: rgba(142, 241, 207, 0.16);
  border-color: rgba(142, 241, 207, 0.4);
  color: #dffcf4;
}

.location-chip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.price-card .price-value {
  margin: 6px 0 2px;
  font-size: 1.6rem;
  font-weight: 700;
}

.price-card .price-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card .price-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  width: min(var(--container-width), 100%);
  margin: 32px auto 24px;
  border-top: 1px solid var(--border);
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  overflow: visible;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 30, 50, 0.92);
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border 0.2s ease;
  z-index: 20;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}


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

@media (max-width: 1180px) {
  :root {
    --container-width: 1080px;
    --anchor-offset: 96px;
  }

  .hero-grid,
  .split,
  .highlight .cta-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .topnav {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

}

@media (max-width: 820px) {
  body {
    padding: var(--topbar-gap) var(--shell-padding) 10px;
  }

  .topbar {
    top: var(--topbar-gap);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 10px 12px;
  }

  .topnav {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .topnav a {
    padding: 6px 8px;
    white-space: nowrap;
  }

  .tariff-select {
    min-width: 100%;
  }

  .tariff-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .location-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 2px;
  }

  .hero-grid .speed-card {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .top-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

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

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }

  .section {
    margin: 0 0 46px;
    padding: 0;
  }
}
