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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #0b1020;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #38bdf8, #4f46e5 45%, #22c55e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1020;
  font-weight: 700;
}

.logo-text {
  color: #e5e7eb;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #9ca3af;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #38bdf8, #22c55e);
  transition: width 0.18s ease-out;
}

.nav a:hover {
  color: #e5e7eb;
}

.nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, transform 0.1s ease-out, box-shadow 0.1s ease-out;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #020617;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.35);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.btn-outline:hover {
  border-color: #38bdf8;
  color: #f9fafb;
}

.btn-link {
  padding-inline: 0;
  border-radius: 0;
  border: none;
  color: #93c5fd;
}

.btn-link:hover {
  color: #bfdbfe;
  background: transparent;
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 52%),
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.28), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(37, 99, 235, 0.3), transparent 58%),
    #020617;
  color: #f9fafb;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  margin: 12px 0 24px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 16px;
  color: #e5e7eb;
  font-style: italic;
  margin-bottom: 8px;
}

.hero-tagline-line {
  display: block;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 14px;
  border-radius: 6px;
  background: #00509e;
  color: #f9fafb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), transparent 65%),
              radial-gradient(circle at 80% 100%, rgba(34, 197, 94, 0.4), transparent 60%),
              rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(26px);
}

.hero-figure {
  margin: 0;
  width: 100%;
  max-width: 560px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #e5e7eb;
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #e5e7eb;
}

.hero-card-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.section {
  padding: 52px 0;
  background: #020617;
  color: #e5e7eb;
}

.section-alt {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.1), transparent 65%),
              radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.1), transparent 70%),
              #020617;
}

.section h2 {
  font-size: 24px;
  margin: 0 0 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.15), transparent 60%),
              rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
}

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.benefits-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.benefits-list p {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
}

.benefits-note {
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 14px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.location-text p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: #d1d5db;
}

.location-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #e5e7eb;
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.location-list li::before {
  content: "—";
  margin-right: 6px;
  color: #38bdf8;
}

.location-map-placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: repeating-linear-gradient(
      45deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.95) 10px,
      rgba(15, 23, 42, 0.8) 10px,
      rgba(15, 23, 42, 0.8) 20px
  );
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.location-map-figure {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
  min-height: 210px;
}

.location-map-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.location-map-figure figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contacts-info p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: #d1d5db;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #e5e7eb;
  display: grid;
  gap: 6px;
}

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.9);
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-family: inherit;
  font-size: 14px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.form-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9ca3af;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 16px;
  font-size: 12px;
}

.footer-inner a {
  color: #93c5fd;
}

.footer-inner a:hover {
  color: #bfdbfe;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    justify-content: flex-start;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-layout,
  .location-layout,
  .contacts-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    position: static;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 36px;
  }

  .header-inner {
    padding-block: 10px;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

/* Slides-mode landing (pixel-accurate by using slide images) */
:root {
  --topbar-h: 60px;
}

html {
  scroll-padding-top: var(--topbar-h);
  scroll-behavior: smooth;
}

body {
  background: #f3f3f3 !important;
  color: #0b1020 !important;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 1000;
  background: rgba(243, 243, 243, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  height: 100%;
  width: min(100%, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}

.brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #00509e;
  text-decoration: none;
  white-space: nowrap;
}

.topnav {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 1px;
  -webkit-overflow-scrolling: touch;
}

.topnav--compact {
  max-width: calc(100vw - 110px);
}

.nav-link {
  display: block;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: #00509e;
  border: 1px solid rgba(0, 80, 158, 0.18);
  background: rgba(0, 80, 158, 0.06);
}

.nav-link:hover {
  background: rgba(0, 80, 158, 0.12);
}

.nav-link.is-active {
  color: #ffffff;
  background: #00509e;
  border-color: #00509e;
  box-shadow: 0 8px 18px rgba(0, 80, 158, 0.14);
}

.slides {
  width: 100%;
  padding-top: calc(var(--topbar-h) + 2px);
  padding-bottom: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  scroll-snap-type: y proximity;
}

.slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: auto;
  padding: 0 clamp(4px, 0.8vw, 10px);
  scroll-margin-top: calc(var(--topbar-h) + 2px);
  scroll-snap-align: start;
}

.slide img {
  width: min(100%, 1600px);
  max-height: calc(100dvh - var(--topbar-h) - 4px);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transform: none;
  transform-origin: center;
  border-radius: 6px;
}

@media (max-width: 600px) {
  :root {
    --topbar-h: 54px;
  }

  .topbar-inner {
    padding: 0 8px;
    gap: 8px;
  }

  .brand {
    font-size: 13px;
  }

  .topnav {
    gap: 6px;
  }

  .topnav--compact {
    max-width: calc(100vw - 96px);
  }

  .nav-link {
    padding: 5px 7px;
    font-size: 11px;
  }

  .slides {
    padding-top: calc(var(--topbar-h) + 2px);
    gap: 1px;
  }

  .slide {
    padding: 0 3px;
    min-height: auto;
  }

  .slide img {
    width: 100%;
    max-height: none;
    border-radius: 4px;
  }
}

@media (max-width: 430px) {
  .nav-link--secondary {
    display: none;
  }

  .topnav--compact {
    max-width: calc(100vw - 82px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slides {
    scroll-snap-type: none;
  }
}


.anchor-target { display:block; height:0; visibility:hidden; scroll-margin-top: calc(var(--topbar-h) + 2px); }
.topnav { scrollbar-width:none; }
.topnav::-webkit-scrollbar { display:none; }


/* Mobile portrait fix: always show PoP / points-of-presence item */
@media (max-width: 768px) and (orientation: portrait) {
  .nav-links,
  .nav-pills,
  .top-nav,
  .header-nav,
  nav ul,
  nav {
    flex-wrap: wrap !important;
    row-gap: 6px !important;
  }

  .nav-links a,
  .nav-pills a,
  .top-nav a,
  .header-nav a,
  nav a,
  .nav-pill,
  .pill {
    font-size: 11px !important;
    padding: 6px 8px !important;
    white-space: nowrap !important;
  }

  a[href*="points-of-presence"],
  a[href*="#points-of-presence"],
  a[href*="#pop"],
  .pop-pill,
  .points-of-presence-pill,
  .nav-links a:last-child,
  .nav-pills a:last-child,
  .top-nav a:last-child,
  .header-nav a:last-child,
  nav a:last-child {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Premium desktop nav */
@media (min-width: 1024px) {
  .topnav {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .topnav .nav-link {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.25s ease;
  }

  .topnav .nav-link:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
  }

  .topnav .nav-link.active {
    background: white;
    color: black;
  }
}
