/* ============================================================
   NEXT GEEKERS — Design System
   An ISP rooted in Kathmandu, Nepal.
   "Fiber light, reaching home."
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Apple-like Minimalist Clean White Aesthetic */

  /* Palette — Monochrome graphite, pure whites, soft neutral slate & refined electric blue */
  --color-primary:       #E01020;
  --color-primary-dark:  #B50D1A;
  --color-primary-light: #F0444F;
  --color-accent:        #1D1D1F;
  --color-success:       #34C759;
  --color-success-bg:   #F2FCEE;
  --color-danger:        #B3261E;
  --color-danger-dim:    rgba(179, 38, 30, 0.08);

  /* Modern Refined Fill & Shadows */
  --gradient-brand:      #E01020;
  --gradient-brand-subtle: rgba(224, 16, 32, 0.05);
  --gradient-hero-bg:    radial-gradient(ellipse at 50% 0%, rgba(224, 16, 32, 0.04) 0%, rgba(245, 245, 247, 0) 70%);
  --gradient-badge:      rgba(0, 0, 0, 0.04);

  /* Apple-style Surfaces & Glass */
  --color-bg:            #F5F5F7;
  --color-bg-alt:        #FFFFFF;
  --color-surface:       #FFFFFF;
  --color-surface-alt:   #F5F5F7;
  --color-border:        rgba(0, 0, 0, 0.08);
  --color-border-hover:  rgba(0, 0, 0, 0.18);

  --glass-bg:            rgba(255, 255, 255, 0.85);
  --glass-border:        rgba(255, 255, 255, 0.9);
  --glass-backdrop:      blur(20px) saturate(180%);

  /* Apple Typography Colors */
  --color-text:          #1D1D1F;
  --color-muted:         #6E6E73;
  --color-muted-dark:    #86868B;

  /* Legacy & Utility Aliases */
  --color-teal:          #C40E1D; /* deeper red for text-level contrast on white (AA ≥4.5:1) */
  --color-teal-glow:     rgba(196, 14, 29, 0.12);
  --color-teal-dim:      rgba(196, 14, 29, 0.06);
  --color-marigold:      #1D1D1F;

  /* Typography — Space Grotesk (engineered/technical, loaded in the head)
     carries display type; Inter stays for body; JetBrains Mono for data. */
  --font-display:  'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-mono:     'JetBrains Mono', SFMono-Regular, monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2.25rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;
  --text-6xl:  4.5rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6.5rem;

  /* Apple Radii */
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Soft Floating Apple Shadows */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:   0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg:   0 24px 60px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 16px 40px rgba(224, 16, 32, 0.15);

  /* Transitions */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --duration-snappy: 200ms;
  --duration-smooth: 400ms;
  --duration-slow:   800ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--duration-snappy) var(--ease-out);
}
a:hover { color: var(--color-primary-dark); }

ul { list-style: none; }

::selection {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  text-transform: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--duration-snappy) var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(224, 16, 32, 0.25);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(224, 16, 32, 0.35);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn--marigold {
  background: var(--color-text);
  color: #FFFFFF;
}
.btn--marigold:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
  position: relative;
  padding-left: var(--space-8);
}

.section__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1.5px;
  background: var(--color-teal);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.6;
}

.section__title--center,
.section__subtitle--center { text-align: center; margin-left: auto; margin-right: auto; }

.section--dark {
  background: var(--color-bg-alt);
  background-image: radial-gradient(circle at 10% 20%, rgba(224, 16, 32, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 40%);
}
.section--darker {
  background: var(--color-bg);
  background-image: radial-gradient(circle at 50% 50%, rgba(224, 16, 32, 0.02) 0%, transparent 60%);
}

/* ============================================================
   COVERAGE TEASER
   ============================================================ */
.coverage-teaser {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, rgba(224, 16, 32, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.coverage-teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(224, 16, 32, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   COVERAGE / CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #0A0A0D 0%, #000000 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.25) 0%, rgba(224, 16, 32, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-banner__desc {
  font-size: var(--text-lg);
  color: #94A3B8;
  max-width: 480px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: all var(--duration-smooth) var(--ease-out);
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar__logo-img {
  display: block;
  height: 34px;
  width: auto;
}

.footer__brand .navbar__logo-img { height: 40px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding: var(--space-1) 0;
  transition: color var(--duration-snappy) var(--ease-out);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-teal);
  transition: width var(--duration-smooth) var(--ease-out);
}

.navbar__link:hover { color: var(--color-teal); }
.navbar__link:hover::after { width: 100%; }
.navbar__link--active { color: var(--color-teal); }
.navbar__link--active::after { width: 100%; }

.navbar__cta {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

/* Mobile nav */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-snappy) var(--ease-out);
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-20) var(--space-8) var(--space-8);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    gap: var(--space-6);
    transition: right var(--duration-smooth) var(--ease-out);
    border-left: 1px solid var(--color-border);
  }

  .navbar__links--open { right: 0; }

  .navbar__link { font-size: var(--text-lg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* Fiber canvas — full screen */
#fiber-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero overlay gradient */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-bg) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: var(--space-20) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  background: var(--gradient-badge);
  border: 1px solid rgba(224, 16, 32, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(224, 16, 32, 0.08);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero__title .highlight {
  background: linear-gradient(135deg, #E01020 0%, #B50D1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Carousel / Slider Styles */
.hero-slider {
  position: relative;
  width: 100%;
}

.hero-slider__slides {
  position: relative;
  min-height: 420px;
}

.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--duration-smooth) var(--ease-out),
              transform var(--duration-smooth) var(--ease-out),
              visibility var(--duration-smooth);
  pointer-events: none;
}

.hero-slider__slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero Speed Slider Range Widget */
.hero-speed-slider {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
}

.hero-speed-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.hero-speed-slider__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-speed-slider__val {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
}

.hero-speed-slider__track {
  position: relative;
}

.hero-speed-slider__input {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #E5E5EA;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.hero-speed-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(224, 16, 32, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hero-speed-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.hero-speed-slider__marks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-speed-slider__marks span.active {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-slider__controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--duration-snappy) var(--ease-out);
}

.hero-slider__btn:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all var(--duration-snappy) var(--ease-out);
  padding: 0;
}

.hero-slider__dot:hover {
  background: rgba(224, 16, 32, 0.5);
}

.hero-slider__dot.active {
  width: 28px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-bar {
  background: linear-gradient(90deg, #111113 0%, #1D1D1F 50%, #B50D1A 100%);
  color: #FFFFFF;
  font-size: var(--text-xs);
  padding: 0.5rem 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-out;
}

.top-bar--hidden {
  display: none !important;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.top-bar__text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar__badge {
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.top-bar__link {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.top-bar__link:hover {
  color: #F0444F;
}

.top-bar__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}
.top-bar__close:hover {
  color: #FFFFFF;
}

/* ============================================================
   BANDWIDTH RANGE SLIDER CALCULATOR
   ============================================================ */
.hero-calc {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-smooth) var(--ease-out);
}

.hero-calc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.hero-calc__title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted-dark);
}

.hero-calc__badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(224, 16, 32, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.hero-calc__value-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero-calc__speed {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.hero-calc__unit {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-teal);
}

.hero-calc__slider-wrap {
  margin-bottom: var(--space-4);
}

.hero-calc__range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #E5E5EA;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.hero-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(224, 16, 32, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hero-calc__range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.hero-calc__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 6px;
  font-weight: 500;
}

.hero-calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.hero-calc__stat {
  display: flex;
  flex-direction: column;
}

.hero-calc__stat-label {
  font-size: 11px;
  color: var(--color-muted);
}

.hero-calc__stat-val {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
}

.hero-calc__cta {
  width: 100%;
  font-size: var(--text-xs);
  padding: 0.65rem 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted-dark);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float-down 2.5s ease-in-out infinite;
}

.hero__scroll-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
}

@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  letter-spacing: -0.03em;
}

.stats__number span {
  color: var(--color-primary);
}

.stats__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__header {
  margin-bottom: var(--space-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: end;
}

.services__header .section__subtitle {
  text-align: right;
  margin-left: auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration-smooth) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: all var(--duration-snappy) var(--ease-out);
}

.service-card:hover .service-card__icon {
  background: var(--color-text);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-text);
  transition: all var(--duration-snappy) var(--ease-out);
}

.service-card:hover .service-card__icon svg {
  color: #FFFFFF;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__header { grid-template-columns: 1fr; }
  .services__header .section__subtitle { text-align: left; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.pricing__header .section__subtitle { max-width: 500px; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: all var(--duration-smooth) var(--ease-out);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.pricing-card--featured {
  background: #FFFFFF;
  border: 2px solid var(--color-text);
  transform: scale(1.03);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.pricing-card__details {
  display: block;
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: color var(--duration-snappy) var(--ease-out);
}

.pricing-card__details:hover { color: var(--color-primary); }

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1.2rem;
  background: var(--color-text);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.pricing-card__speed {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.pricing-card__speed-unit {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-muted);
  font-family: var(--font-body);
}

.pricing-card__price {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.pricing-card__price strong {
  font-size: var(--text-2xl);
  color: var(--color-text);
  font-family: var(--font-display);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.pricing-card__feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-teal);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }
}

/* ============================================================
   WHY US (Features)
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.why-card {
  text-align: center;
  padding: var(--space-8);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-snappy) var(--ease-out);
}

.why-card:hover .why-card__icon {
  background: var(--color-teal-glow);
  transform: scale(1.08);
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-teal);
}

.why-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.why-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COVERAGE / CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner__desc {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-dark);
  transition: all var(--duration-snappy) var(--ease-out);
}

.footer__social-link:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: var(--color-teal-dim);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-muted-dark);
  transition: color var(--duration-snappy) var(--ease-out);
}

.footer__link:hover { color: var(--color-teal); }

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-muted-dark);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   PAGE HEADER (Inner Pages)
   ============================================================ */
.page-header {
  padding: var(--space-24) 0 var(--space-16);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  margin-top: 64px;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.page-header__breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-muted-dark);
}

.page-header__breadcrumb a {
  color: var(--color-muted);
}

.page-header__breadcrumb a:hover { color: var(--color-teal); }

/* ============================================================
   ABOUT PAGE SPECIFIC
   ============================================================ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-story__visual {
  position: relative;
}

.about-story__visual-box {
  background: linear-gradient(135deg, var(--color-teal-dim), transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  text-align: center;
  position: relative;
}

.about-story__visual-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-teal), transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

.about-story__number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
}

.about-story__label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

.about-story__content p {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.about-story__content .btn {
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .about-story { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal);
}

.contact-info__label {
  font-size: var(--text-xs);
  color: var(--color-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
}

.contact-info__value a { color: var(--color-text); }
.contact-info__value a:hover { color: var(--color-teal); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  /* Without min-width: 0, an input's default size forces the group (and any
     grid/flex column it sits in — e.g. the 2-up name/phone fields) wider than
     the viewport, causing horizontal scroll on mobile. */
  min-width: 0;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1.15rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all var(--duration-snappy) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(224, 16, 32, 0.15), 0 2px 8px rgba(224, 16, 32, 0.08);
}

/* Server-side validation failure — red border on the exact invalid fields */
.form-group--invalid input,
.form-group--invalid textarea,
.form-group--invalid select {
  border-color: var(--color-danger);
  background: #FDF8F8;
}

.form-group--invalid input:focus,
.form-group--invalid textarea:focus,
.form-group--invalid select:focus {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-dim);
}

.form-field-error {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-danger);
}

/* Math CAPTCHA — image row, refresh button, and hint (see captchaField()) */
.captcha-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.captcha-img {
  display: block;
  width: 150px;
  height: 50px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #F4F7FC;
}

.captcha-refresh {
  background: none;
  border: 0;
  padding: var(--space-1) var(--space-2);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--duration-snappy) var(--ease-out);
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  color: var(--color-primary-dark);
  text-decoration-thickness: 2px;
}

.form-hint {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Inline deep-links inside blog article bodies (rendered from markdown-style [text](/path)) */
.article-body a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-snappy) var(--ease-out);
}

.article-body a:hover,
.article-body a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration-thickness: 2px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

/* ============================================================
   PLAN PICKER WIZARD (Plans page)
   ============================================================ */
.plan-wizard {
  margin-bottom: var(--space-16);
}

.plan-wizard__inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-10) var(--space-12);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.plan-wizard__head {
  text-align: center;
  margin-bottom: var(--space-8);
}

.plan-wizard__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.plan-wizard__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.plan-wizard__step {
  border: none;
  padding: 0;
  margin: 0;
  animation: wizard-fade 0.25s ease;
}

@keyframes wizard-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.plan-wizard__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.plan-wizard__qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-teal-dim);
  color: var(--color-teal);
  font-size: var(--text-xs);
  font-weight: 700;
  flex: none;
}

.plan-wizard__opts {
  display: grid;
  gap: var(--space-3);
}

.plan-wizard__opt {
  display: block;
  cursor: pointer;
}

.plan-wizard__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-wizard__opt span {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.plan-wizard__opt span::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  flex: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-wizard__opt:hover span {
  border-color: var(--color-teal);
}

.plan-wizard__opt input:checked + span {
  border-color: var(--color-teal);
  background: var(--color-teal-dim);
  box-shadow: 0 0 0 1px var(--color-teal);
}

.plan-wizard__opt input:checked + span::before {
  border-color: var(--color-teal);
  box-shadow: inset 0 0 0 4px var(--color-surface);
  background: var(--color-teal);
}

.plan-wizard__opt input:focus-visible + span {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.plan-wizard__result {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-teal-dim);
  border: 1px solid rgba(224, 16, 32, 0.18);
  animation: wizard-fade 0.25s ease;
}

.plan-wizard__verdict {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  cursor: pointer;
}

.plan-wizard__verdict strong {
  color: var(--color-teal);
}

.plan-wizard__note {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

@media (max-width: 600px) {
  .plan-wizard__inner { padding: var(--space-6); }
  .plan-wizard__title { font-size: var(--text-xl); }
}

/* ============================================================
   PLANS TABLE (Plans page)
   ============================================================ */
.plans-comparison {
  overflow-x: auto;
  margin-top: var(--space-8);
}

.plans-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.plans-table th,
.plans-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.plans-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-surface-alt);
  color: var(--color-muted);
  padding: var(--space-5) var(--space-6);
}

.plans-table td {
  color: var(--color-text);
}

.plans-table tr:last-child td {
  border-bottom: none;
}

.plans-table tr:hover td {
  background: rgba(224, 16, 32, 0.03);
}

.plans-table .highlight {
  background: var(--color-teal-dim);
}

.plans-table .highlight td {
  color: var(--color-teal);
  font-weight: 500;
}

.plans-table .check {
  color: var(--color-teal);
}

/* Pricing matrix enhancements */
.plans-matrix th {
  white-space: nowrap;
}

.plans-matrix .matrix-pop {
  color: var(--color-teal);
  font-size: 0.8em;
  margin-left: 2px;
}

.plans-matrix .matrix-group td {
  background: var(--color-surface-alt);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.plans-matrix .matrix-group td::first-letter {
  color: var(--color-teal);
}

/* Wizard-recommended column — pulses gently until the user scrolls it in */
.plans-matrix th.matrix-reco,
.plans-matrix td.matrix-reco {
  background: var(--color-teal-dim);
  box-shadow: inset 0 0 0 2px var(--color-teal);
  animation: reco-pulse 1.6s ease-in-out infinite;
}

.plans-matrix th.matrix-reco {
  font-weight: 700;
}

@keyframes reco-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(224, 16, 32, 0.35); }
  50%      { box-shadow: inset 0 0 0 2px var(--color-teal); }
}

@media (prefers-reduced-motion: reduce) {
  .plan-wizard__step,
  .plan-wizard__result,
  .plans-matrix th.matrix-reco,
  .plans-matrix td.matrix-reco {
    animation: none;
  }
}

/* ============================================================
   COVERAGE PAGE
   ============================================================ */
.coverage-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.coverage-area {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--duration-snappy) var(--ease-out);
}

.coverage-area:hover {
  border-color: var(--color-teal);
  transform: translateY(-2px);
}

.coverage-area__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  flex-shrink: 0;
}

/* ============================================================
   ANIMATIONS (Intersection Observer)
   ============================================================ */
/* Scroll-reveal is a progressive enhancement: content is visible by
   default and only hidden once JS is confirmed running (html.js), so
   crawler renderers / no-JS users never see a blank page. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

html.js .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section__title { font-size: var(--text-3xl); }
  .hero__title { font-size: var(--text-4xl); }
  .hero__desc { font-size: var(--text-base); }
  .stats__number { font-size: var(--text-4xl); }
  .cta-banner__title { font-size: var(--text-3xl); }
  .page-header { padding: var(--space-16) 0 var(--space-10); }
  .page-header__title { font-size: var(--text-3xl); }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ALERT / TOAST
   ============================================================ */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.alert--success {
  background: rgba(18, 135, 75, 0.07);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.alert--error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid #B3261E;
  color: #9E1F16;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--color-primary);
  z-index: 2000;
  pointer-events: none;
}

/* ---------- Anchor offsets under fixed nav ---------- */
#services, #pricing, #why-fiber, #finder { scroll-margin-top: 96px; }

/* ---------- Mobile nav link stagger ---------- */
.navbar__links--open .navbar__link {
  animation: link-in 0.32s var(--ease-out) backwards;
}
.navbar__links--open .navbar__link:nth-child(1) { animation-delay: 0.03s; }
.navbar__links--open .navbar__link:nth-child(2) { animation-delay: 0.06s; }
.navbar__links--open .navbar__link:nth-child(3) { animation-delay: 0.09s; }
.navbar__links--open .navbar__link:nth-child(4) { animation-delay: 0.12s; }
.navbar__links--open .navbar__link:nth-child(5) { animation-delay: 0.15s; }
.navbar__links--open .navbar__link:nth-child(6) { animation-delay: 0.18s; }
.navbar__links--open .navbar__link:nth-child(7) { animation-delay: 0.21s; }
.navbar__links--open .navbar__link:nth-child(8) { animation-delay: 0.24s; }

@keyframes link-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   PLAN FINDER
   ============================================================ */
.finder {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

.finder__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.finder__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}

.finder__option { position: relative; cursor: pointer; }

.finder__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finder__option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  transition: border-color var(--duration-snappy) var(--ease-out),
              background var(--duration-snappy) var(--ease-out),
              color var(--duration-snappy) var(--ease-out);
}

.finder__option:hover .finder__option-label {
  border-color: var(--color-teal);
  color: var(--color-text);
}

.finder__radio:checked + .finder__option-label {
  border-color: var(--color-teal);
  background: var(--color-teal-dim);
  color: var(--color-teal);
  font-weight: 600;
}

.finder__radio:focus-visible + .finder__option-label {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.finder__result {
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.finder__result--visible { display: flex; }

.finder__result-kicker {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted-dark);
  margin-bottom: var(--space-1);
}

.finder__result-line {
  font-size: var(--text-lg);
  color: var(--color-text);
}

.finder__result-line strong {
  color: var(--color-teal);
  font-family: var(--font-display);
}

.finder__result-price {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.finder__result .btn { flex-shrink: 0; }

@media (max-width: 600px) {
  .finder { padding: var(--space-8); }
  .finder__result { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--duration-snappy) var(--ease-out);
}

.faq__item[data-open="true"] {
  border-color: var(--color-teal);
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--duration-snappy) var(--ease-out);
}

.faq__q:focus-visible { outline-offset: -2px; }

.faq__q:hover { color: var(--color-teal); }

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-teal);
  transition: transform var(--duration-snappy) var(--ease-out);
}

.faq__item[data-open="true"] .faq__icon { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-smooth) var(--ease-out);
}

.faq__a-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================================
   COVERAGE SEARCH
   ============================================================ */
.coverage-filter {
  max-width: 480px;
  position: relative;
  margin: var(--space-10) 0 0;
}

.coverage-filter input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--duration-snappy) var(--ease-out), box-shadow var(--duration-snappy) var(--ease-out);
}

.coverage-filter input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-dim);
}

.coverage-filter svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-muted-dark);
  pointer-events: none;
}

.coverage-filter__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted-dark);
  margin-top: var(--space-3);
}

.coverage-area--hidden { display: none; }

.coverage-empty {
  display: none;
  text-align: center;
  padding: var(--space-12) 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.coverage-empty--visible { display: block; }

/* ============================================================
   FAQ PAGE (searchable)
   ============================================================ */
.faq-search {
  max-width: 520px;
  position: relative;
  margin: 0 auto var(--space-12);
}

.faq-search input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--duration-snappy) var(--ease-out), box-shadow var(--duration-snappy) var(--ease-out);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-teal-dim);
}

.faq-search svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-muted-dark);
  pointer-events: none;
}

.faq-page {
  max-width: 820px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: var(--space-12);
}

.faq-group--hidden { display: none; }

.faq-group__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.faq__item--hidden { display: none; }

.faq-no-results {
  display: none;
  text-align: center;
  padding: var(--space-12) 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.faq-no-results--visible { display: block; }

/* ============================================================
   COVERAGE TEASER (Home)
   ============================================================ */
.coverage-teaser {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0;
}

.coverage-teaser__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.coverage-teaser__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.coverage-teaser__desc {
  color: var(--color-muted);
  max-width: 480px;
}

.coverage-teaser__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: min(100%, 420px);
}

.coverage-teaser__form svg {
  position: absolute;
  left: 1.1rem;
  width: 18px;
  height: 18px;
  color: var(--color-muted-dark);
  pointer-events: none;
}

.coverage-teaser__form input {
  flex: 1;
  padding: 0.8rem 1.25rem 0.8rem 2.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--duration-snappy) var(--ease-out), box-shadow var(--duration-snappy) var(--ease-out);
}

.coverage-teaser__form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-teal-dim);
}

.coverage-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.coverage-teaser__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color var(--duration-snappy) var(--ease-out),
              color var(--duration-snappy) var(--ease-out),
              transform var(--duration-snappy) var(--ease-out),
              box-shadow var(--duration-snappy) var(--ease-out);
}

.coverage-teaser__chip svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
}

.coverage-teaser__chip:hover,
.coverage-teaser__chip:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 16, 32, 0.12);
}

.coverage-teaser__chip--all {
  background: transparent;
  border-style: dashed;
  color: var(--color-muted);
}

.coverage-teaser__chip--all:hover,
.coverage-teaser__chip--all:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .coverage-teaser__inner { flex-direction: column; align-items: flex-start; }
  .coverage-teaser__form { width: 100%; }
  .coverage-teaser__chips { margin-top: var(--space-8); }
  .coverage-teaser__chip { font-size: var(--text-xs); padding: 0.45rem 0.9rem; }
}

/* ============================================================
   SECTORS (Who We Serve)
   ============================================================ */
.sectors__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
}

.sectors__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-snappy) var(--ease-out),
              transform var(--duration-snappy) var(--ease-out),
              box-shadow var(--duration-snappy) var(--ease-out);
}

.sectors__item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.08);
}

.sectors__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.sectors__icon svg { width: 20px; height: 20px; }

.sectors__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.sectors__desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.55;
}

/* ============================================================
   INCLUDED (What's included)
   ============================================================ */
.included__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.included__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.included__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
}

.fine-print {
  font-size: var(--text-xs);
  color: var(--color-muted-dark);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.testimonial {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  transition: border-color var(--duration-snappy) var(--ease-out),
              transform var(--duration-snappy) var(--ease-out),
              box-shadow var(--duration-snappy) var(--ease-out);
}

/* Placeholder reviews awaiting the owner's confirmation — visibly marked
   (dashed border + badge) so they can never be mistaken for real
   customer testimonials. Flip status to 'published' or delete the row in
   the admin CMS once a genuine review is confirmed. */
.testimonial[data-pending] {
  border-style: dashed;
  border-color: rgba(196, 14, 29, 0.35);
}

.testimonial__pending {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: 0.25rem 0.7rem;
  background: rgba(196, 14, 29, 0.08);
  border: 1px solid rgba(196, 14, 29, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal);
  z-index: 1;
}

.testimonial:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.10);
}

.testimonial__mark {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  opacity: 0.35;
}

.testimonial__quote {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  quotes: none;
}

/* Keep long quotes clear of the absolute pending badge on narrow cards */
.testimonial[data-pending] .testimonial__quote {
  padding-right: 2rem;
}

.testimonial__author {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COVERAGE MAP (server-rendered SVG)
   National map + Kathmandu Valley inset with data-driven pins.
   ============================================================ */
.coverage-map-section { margin-bottom: var(--space-12); }
.coverage-map-figure { margin: 0; display: block; }
.coverage-map__frame {
  display: block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.coverage-map__frame + .coverage-map__frame { margin-top: var(--space-6); }
.coverage-map__svg { display: block; width: 100%; height: auto; }
.map-outline { fill: var(--color-surface-alt); stroke: #D7DEE8; stroke-width: 1; }
.map-inset-bg { fill: var(--color-bg-alt); stroke: var(--color-border); stroke-width: 1; }
.map-inset-ring { fill: none; stroke: rgba(26, 86, 212, 0.10); stroke-width: 1; }
.map-leader { stroke: #B9C2CE; stroke-width: 1; }
.map-pin { fill: var(--color-primary); stroke: #fff; stroke-width: 1.5; }
.map-pin--planned { fill: #fff; stroke: var(--color-primary); stroke-width: 2; stroke-dasharray: 2 1.5; }
.map-pin--cluster { fill: var(--color-primary); stroke: rgba(224, 16, 32, 0.28); stroke-width: 6; }
.map-pin-link:hover .map-pin { stroke-width: 2.5; }
.map-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  fill: var(--color-text);
}
.map-label--small { font-size: 9px; font-weight: 500; fill: #556070; }
.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-1) 0;
}
.coverage-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.coverage-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(224, 16, 32, 0.45);
}
.coverage-legend__dot--planned {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}
.coverage-map__caption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.coverage-snapshot__big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-3) 0 var(--space-2);
}
.coverage-snapshot__split {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.coverage-snapshot__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ============================================================
   COOKIE CONSENT BANNER
   Shown until the visitor chooses. Rendered below the nav drawer
   (z-index 2000) so an open menu stays on top.
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1999;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(26, 35, 52, 0.16);
  padding: var(--space-5) var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity var(--duration-smooth) var(--ease-out),
              transform var(--duration-smooth) var(--ease-out),
              visibility 0s linear var(--duration-smooth);
}

.cookie-banner--visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity var(--duration-smooth) var(--ease-out),
              transform var(--duration-smooth) var(--ease-out);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner__text { flex: 1 1 320px; }

.cookie-banner__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.cookie-banner__text p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-muted);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-banner__link {
  font-size: var(--text-sm);
  color: var(--color-teal);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible { color: var(--color-primary-dark); }

.cookie-banner__btn { white-space: nowrap; }

@media (max-width: 640px) {
  .cookie-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .cookie-banner__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-banner--visible { transition: none; }
}

/* ============================================================
   HERO — PREMIUM REDESIGN (light theme + one dark hardware moment)
   ============================================================ */
:root {
  --color-ink:        #0A0A0D;   /* deep navy for the gateway + featured card */
  --color-ink-2:      #18181D;
}

/* Two-column hero: copy left, live gateway card right */
.hero__grid {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__grid .hero__content {
  max-width: 560px;
  padding: var(--space-16) 0;
}

/* Included-with-every-plan trust chips */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
}

.hero__trust svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---------- Gateway card (the signature element) ---------- */
.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 430px;
}

.gateway {
  position: relative;
  background: linear-gradient(160deg, var(--color-ink) 0%, var(--color-ink-2) 100%);
  border: 1px solid rgba(224, 16, 32, 0.35);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: #fff;
  box-shadow: 0 30px 60px rgba(11, 31, 51, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.gateway::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(224, 16, 32, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.gateway__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  position: relative;
}

.gateway__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.gateway__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18), 0 0 12px rgba(52, 199, 89, 0.7);
  animation: gateway-pulse 2.4s ease-in-out infinite;
}

@keyframes gateway-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18), 0 0 10px rgba(52, 199, 89, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.08), 0 0 16px rgba(52, 199, 89, 0.9); }
}

.gateway__as {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Valley contour map with a travelling light pulse */
.gateway__map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.gateway__map svg {
  display: block;
  width: 100%;
  height: auto;
}

.gateway__pulse {
  position: absolute;
  left: 0;
  top: 46%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 176, 245, 0.9) 0%, rgba(127, 176, 245, 0.25) 40%, transparent 70%);
  animation: gateway-pulse-travel 5.5s var(--ease-in-out) infinite;
  filter: blur(0.5px);
}

@keyframes gateway-pulse-travel {
  0%   { left: 0%;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 92%;   opacity: 0; }
}

/* Live connection readouts */
.gateway__speed {
  position: relative;
  margin-bottom: var(--space-5);
}

.gateway__speed-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
}

.gateway__speed-row {
  display: grid;
  grid-template-columns: 74px 1fr 72px;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
}

.gateway__speed-row > span { color: rgba(255, 255, 255, 0.6); }
.gateway__speed-row strong { font-family: var(--font-mono); font-size: var(--text-xs); text-align: right; color: #fff; font-weight: 600; }

.gateway__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.gateway__bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #F0444F, #F0808C);
  box-shadow: 0 0 10px rgba(224, 16, 32, 0.5);
}

.gateway__bar-fill--short { background: linear-gradient(90deg, #34C759, #5BE08A); box-shadow: 0 0 10px rgba(52, 199, 89, 0.5); }

/* Honest footnote under the gateway card (plan speeds, not fake live data) */
.gateway__note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.gateway__note a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gateway__note a:hover { color: #fff; }

/* Plan chips linking to each plan page */
.gateway__plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  position: relative;
}

.gateway__plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: #fff;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.gateway__plan:hover {
  background: rgba(224, 16, 32, 0.18);
  border-color: rgba(224, 16, 32, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.gateway__plan-name { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); }
.gateway__plan-speed { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.01em; }
.gateway__plan-speed em { font-style: normal; font-size: var(--text-xs); font-weight: 500; color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   MOBILE STICKY CTA BAR — conversion on small screens without
   sacrificing the clean design. Hidden on desktop.
   ============================================================ */
.mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--color-ink);
    border-top: 1px solid rgba(224, 16, 32, 0.4);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-cta a:hover { color: #fff; }
  .mobile-cta__call { background: rgba(255, 255, 255, 0.06); }
  .mobile-cta__call:hover { background: rgba(255, 255, 255, 0.12); }
  .mobile-cta__connect { background: var(--color-primary); }
  .mobile-cta__connect:hover { background: var(--color-primary-dark); }
  .mobile-cta svg { flex: none; }

  /* Give pages breathing room so the fixed bar never covers content */
  body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta a { transition: none; }
}

/* ============================================================
   STATS — dividers for a sharper band
   ============================================================ */
.stats__item { position: relative; padding: 0 var(--space-4); }
.stats__item + .stats__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56%;
  background: var(--color-border);
}

.stats__number span { color: var(--color-primary); }

/* ============================================================
   PRICING — clearer cards with a speed meter
   ============================================================ */
.pricing-card { display: flex; flex-direction: column; }

.pricing-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.pricing-card__top .pricing-card__banner { margin-bottom: 0; }

.pricing-card__speed { letter-spacing: -0.03em; }

/* Speed meter — how a plan compares to the fastest tier */
.pricing-card__meter {
  height: 7px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-5) 0 var(--space-5);
}

.pricing-card__meter-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width 900ms var(--ease-out);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}

.pricing-card__price strong {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.pricing-card__price span { font-size: var(--text-sm); color: var(--color-muted); }

.pricing-card__cycles {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-5);
}

.pricing-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__actions .btn { width: 100%; justify-content: center; }

.pricing-card__details { margin-top: 0; text-align: center; }

/* Featured card — the one dark hardware moment on the page */
.pricing-card--featured {
  background: linear-gradient(165deg, var(--color-ink) 0%, var(--color-ink-2) 100%);
  border: 1px solid rgba(224, 16, 32, 0.35);
  box-shadow: 0 30px 60px rgba(11, 31, 51, 0.28);
}

.pricing-card--featured .pricing-card__name { color: #fff; }
.pricing-card--featured .pricing-card__speed { color: #F0808C; }
.pricing-card--featured .pricing-card__meter { background: rgba(255, 255, 255, 0.12); }
.pricing-card--featured .pricing-card__meter-fill { background: linear-gradient(90deg, #F0808C, #F9C9CE); }
.pricing-card--featured .pricing-card__price strong { color: #fff; }
.pricing-card--featured .pricing-card__price span { color: rgba(255, 255, 255, 0.55); }
.pricing-card--featured .pricing-card__price { border-bottom-color: rgba(255, 255, 255, 0.14); }
.pricing-card--featured .pricing-card__feature { color: rgba(255, 255, 255, 0.78); }
.pricing-card--featured .pricing-card__feature svg { color: #5BE08A; }
.pricing-card--featured .pricing-card__banner {
  background: rgba(224, 16, 32, 0.18);
  border-color: rgba(127, 176, 245, 0.4);
  color: #F9C9CE;
}
.pricing-card--featured .pricing-card__details { color: #F0808C; }
.pricing-card--featured .pricing-card__details:hover { color: #F9C9CE; }

/* Featured badge — a solid blue chip that pops on the dark card */
.pricing-card--featured .pricing-card__badge {
  background: var(--color-primary);
  box-shadow: 0 6px 18px rgba(224, 16, 32, 0.45);
}

/* ============================================================
   HERO — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero__grid .hero__content { max-width: 640px; padding: var(--space-10) 0 0; }
  .hero__visual { justify-self: start; max-width: 430px; }
}

@media (max-width: 768px) {
  /* Badges read as noise on small screens — the trust chips below the
     slider already carry the same promises (free install, free router). */
  .hero__badge { display: none; }
  .hero__visual { max-width: 100%; }
  .gateway { padding: var(--space-5); }
  .gateway__plans { grid-template-columns: 1fr 1fr 1fr; }
  .stats__item + .stats__item::before { display: none; }
  .stats__item { padding: 0; }
  .stats__grid { row-gap: var(--space-8); }
}

@media (max-width: 480px) {
  .gateway__plan-speed { font-size: var(--text-base); }
  .gateway__speed-row { grid-template-columns: 64px 1fr 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .gateway__dot, .gateway__pulse { animation: none; }
}

/* Short laptop screens: let the hero grow naturally instead of forcing 100vh
   (a tall gateway card + two columns can exceed the fold on ~768px tall
   viewports, where the absolute scroll cue could also crowd the card). */
@media (max-height: 760px) and (min-width: 1025px) {
  .hero { min-height: auto; padding: 96px 0 var(--space-16); }
}
