:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  --bg: #f7f9fc;
  --body-bg:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(124, 58, 237, 0.08), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 45%, #eef1f7 100%);
  --grid-line: rgba(15, 23, 42, 0.035);
  --header-bg: rgba(255, 255, 255, 0.78);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-input: #ffffff;
  --surface-sidebar: #f1f4f9;
  --hover: rgba(15, 23, 42, 0.05);
  --track: #cbd5e1;
  --line: rgba(15, 23, 42, 0.12);
  --muted: #5b6478;
  --text: #0b1220;
  --ink-soft: #1e293b;
  --link: #0369a1;
  --brand: #0ea5e9;
  --brand-strong: #0284c7;
  --brand-tint: rgba(14, 165, 233, 0.1);
  --accent: #7c3aed;
  --success: #059669;
  --badge-bg: rgba(5, 150, 105, 0.12);
  --badge-ink: #047857;
  --warn-ink: #92400e;
  --warn-line: rgba(217, 119, 6, 0.45);
  --warn-bg: rgba(245, 158, 11, 0.08);
  --danger-ink: #b91c1c;
  --orange-ink: #c2410c;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

/* Dark theme follows the visitor's OS setting. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #06080d;
    --body-bg:
      radial-gradient(circle at top left, rgba(50, 211, 255, 0.24), transparent 34rem),
      radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.2), transparent 30rem),
      linear-gradient(180deg, #070a12 0%, #0a0f1d 45%, #05070c 100%);
    --grid-line: rgba(255, 255, 255, 0.035);
    --header-bg: rgba(6, 8, 13, 0.76);
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(12, 18, 31, 0.92);
    --surface-solid: #0b111e;
    --surface-input: #0c1220;
    --surface-sidebar: #090d17;
    --hover: rgba(255, 255, 255, 0.05);
    --track: #273248;
    --line: rgba(148, 163, 184, 0.22);
    --muted: #a8b3c7;
    --text: #f8fafc;
    --ink-soft: #d7deea;
    --link: #bff4ff;
    --brand: #32d3ff;
    --brand-strong: #12a6ff;
    --brand-tint: rgba(50, 211, 255, 0.1);
    --accent: #8b5cf6;
    --success: #30e6a1;
    --badge-bg: rgba(48, 230, 161, 0.14);
    --badge-ink: #9fffd8;
    --warn-ink: #ffe2a3;
    --warn-line: rgba(255, 209, 102, 0.45);
    --warn-bg: rgba(255, 209, 102, 0.05);
    --danger-ink: #ff8a8a;
    --orange-ink: #ffbf80;
    --shadow: 0 30px 120px rgba(0, 0, 0, 0.4);
  }
}

/* Terminal, code, and network-map cards stay dark in both themes. */
.map-card,
.terminal-card,
.snippet {
  --text: #f8fafc;
  --muted: #a8b3c7;
  --line: rgba(148, 163, 184, 0.22);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--body-bg);
  background-color: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

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

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.18rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 40px rgba(50, 211, 255, 0.35);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

nav a:hover,
.footer a:hover {
  color: var(--brand);
}

.header-actions,
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  padding: 0 18px;
  border: 1px solid var(--line);
}

.button:hover,
.link-button:hover {
  transform: translateY(-2px);
}

.link-button {
  color: var(--ink-soft);
}

.primary {
  color: #04101a;
  border-color: transparent;
  background: linear-gradient(135deg, #58e1ff, #32d3ff 42%, #a78bfa);
  box-shadow: 0 14px 42px rgba(50, 211, 255, 0.27);
}

.secondary,
.ghost {
  color: var(--text);
  background: var(--hover);
}

.large {
  min-height: 52px;
  padding: 0 24px;
}

.menu-button {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
}

.section,
.section-grid,
.metrics,
.footer,
.final-cta {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 760px;
  padding: 92px 0 58px;
  align-items: center;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(40px, 6vw, 82px);
}

.reverse {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 999px;
  color: var(--link);
  background: rgba(50, 211, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 8.2vw, 7.9rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.35rem;
}

.hero-lede {
  max-width: 690px;
  margin: 28px 0;
  font-size: clamp(1.1rem, 2vw, 1.34rem);
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.glass-card,
.feature-card,
.price-card,
.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(50, 211, 255, 0.24);
  border-radius: 999px;
  animation: spin 18s linear infinite;
}

.orbit-one {
  width: 540px;
  height: 540px;
}

.orbit-two {
  width: 380px;
  height: 380px;
  animation-duration: 24s;
  animation-direction: reverse;
}

.map-card {
  background: linear-gradient(160deg, #0b1220, #111827);
  border-color: rgba(255, 255, 255, 0.08);
  position: relative;
  width: min(100%, 470px);
  padding: 20px;
  border-radius: 34px;
  overflow: hidden;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 90deg, transparent, rgba(50, 211, 255, 0.24), transparent, rgba(139, 92, 246, 0.2), transparent);
  animation: spin 14s linear infinite;
}

.map-card > * {
  position: relative;
  z-index: 1;
}

.map-header,
.traffic-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.map-header {
  margin-bottom: 20px;
  color: #dbeafe;
}

.map-header strong {
  color: var(--success);
}

.globe {
  position: relative;
  height: 310px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 45% 45%, rgba(50, 211, 255, 0.22), transparent 26%),
    radial-gradient(circle, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 58%, transparent 59%),
    linear-gradient(135deg, rgba(18, 166, 255, 0.18), rgba(139, 92, 246, 0.18));
  overflow: hidden;
}

.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.globe::after {
  transform: scaleX(0.38);
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 28px var(--success);
}

.node-a { left: 18%; top: 42%; }
.node-b { right: 18%; top: 28%; }
.node-c { left: 48%; bottom: 20%; }
.node-d { right: 32%; bottom: 42%; }

.path {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform-origin: left center;
}

.path-one { width: 230px; left: 23%; top: 45%; transform: rotate(-18deg); }
.path-two { width: 170px; right: 18%; bottom: 36%; transform: rotate(28deg); }

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.traffic-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.traffic-grid b,
.metric strong,
.price strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
}

.traffic-grid span,
.metric span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.metric {
  padding: 24px;
  border-radius: 24px;
}

.metric strong {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.06em;
}

.section {
  padding: 120px 0 40px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading p,
.workflow p,
.final-cta p {
  font-size: 1.08rem;
}

.card-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.price-card {
  position: relative;
  min-height: 300px;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
}

.feature-card::after,
.price-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.feature-card:hover::after,
.price-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  color: var(--brand);
}

.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--link);
  font-weight: 800;
}

.workflow {
  padding: 110px 0 30px;
  align-items: center;
}

.terminal-card {
  padding: 22px;
  border-radius: 30px;
  background: #0f172a;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff6b6b;
}

.terminal-bar span:nth-child(2) { background: #ffd166; }
.terminal-bar span:nth-child(3) { background: #06d6a0; }

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.terminal-card code {
  display: grid;
  gap: 16px;
  color: #c4f1ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.92rem, 2vw, 1.08rem);
}


.terminal-card code span:first-child {
  color: #fff;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--hover);
  font-weight: 750;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
}

.price-card.highlighted {
  border-color: rgba(50, 211, 255, 0.62);
  transform: translateY(-14px);
}

.badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 22px 0;
}

.price strong {
  font-size: 3rem;
  letter-spacing: -0.08em;
}

.price-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
  color: var(--ink-soft);
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-card li svg {
  color: var(--success);
  flex: 0 0 auto;
}

.price-card .button {
  margin-top: auto;
}

.final-cta {
  margin-top: 100px;
  margin-bottom: 70px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(50, 211, 255, 0.28), transparent 28rem),
    var(--panel);
}

.final-cta svg {
  color: var(--brand);
  margin-bottom: 14px;
}

.final-cta p {
  max-width: 650px;
  margin: 18px auto 28px;
}

.center {
  justify-content: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1020px) {
  nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .section-grid,
  .reverse,
  .card-grid,
  .pricing-grid,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-copy,
  .workflow > div:last-child,
  .section-heading {
    grid-column: 1 / -1;
  }

  .hero-visual,
  .terminal-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .section,
  .workflow {
    padding-top: 76px;
  }

  .section-grid,
  .reverse,
  .card-grid,
  .pricing-grid,
  .metrics,
  .pill-grid,
  .traffic-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .orbit-one {
    width: 360px;
    height: 360px;
  }

  .orbit-two {
    width: 260px;
    height: 260px;
  }

  .globe {
    height: 250px;
  }

  .metrics {
    margin-top: 0;
  }

  .price-card.highlighted {
    transform: none;
  }

}

.feature-icon,
.cta-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border-radius: 14px;
  color: #03131d;
  background: linear-gradient(135deg, var(--brand), var(--success));
  font-size: 1.35rem;
  box-shadow: 0 16px 38px rgba(50, 211, 255, 0.22);
}

.cta-icon {
  margin-inline: auto;
  font-size: 1.65rem;
}

@media (max-width: 1020px) {
  .site-header.nav-open {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header.nav-open nav,
  .site-header.nav-open .header-actions {
    display: flex;
    width: 100%;
  }

  .site-header.nav-open nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
  }
}

/* ------------------------------------------------------------------ Multi-page site */

nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a span {
  font-size: 0.7rem;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -24px;
  width: min(680px, 80vw);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

/* Invisible bridge so the menu stays open while the pointer crosses the gap. */
.mega-menu::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto;
  height: 16px;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mega-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
}

.mega-item:hover {
  background: var(--hover);
}

.mega-item b {
  display: block;
  color: var(--text);
}

.mega-item small {
  color: var(--muted);
  line-height: 1.4;
}

.mega-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--brand);
  background: rgba(50, 211, 255, 0.1);
  font-weight: 800;
}

.mega-footer {
  display: block;
  margin-top: 10px;
  padding: 12px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--link);
  font-weight: 750;
}

.page-hero {
  padding: 110px 0 20px;
}

.page-hero h1,
.product-title {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 0.95;
}

.product-hero {
  min-height: auto;
  padding: 100px 0 30px;
}

.product-hero pre {
  margin: 0;
  overflow-x: auto;
}

.product-hero pre code,
.snippet code {
  display: block;
  white-space: pre;
  color: #c4f1ff;
  font-size: 0.95rem;
  line-height: 1.6;
}

code.inline {
  padding: 0 0.2em;
  border-radius: 0.2em;
  color: var(--brand);
  background: rgba(50, 211, 255, 0.08);
}

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

.feature-card.compact {
  min-height: 0;
}

.feature-card.compact h3 {
  margin-bottom: 4px;
}

.group-title {
  margin-bottom: 26px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.product-group {
  padding-top: 70px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-card .tag,
.tag {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.text-link {
  color: var(--link);
  font-weight: 750;
}

.text-link:hover {
  color: var(--brand);
}

.center-text {
  margin-top: 28px;
  text-align: center;
}

.pricing-section.tight {
  padding-top: 40px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 24px 24px 76px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #03131d;
  background: linear-gradient(135deg, var(--brand), var(--success));
  font-weight: 800;
}

.snippet {
  margin: 14px 0 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: 14px;
  background: #0f172a;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td code {
  color: var(--link);
  white-space: nowrap;
}

.compare td:not(:first-child),
.compare th:not(:first-child) {
  text-align: center;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

.faq p {
  margin-bottom: 0;
}

.network-map {
  padding: 18px;
  border-radius: 28px;
  color: var(--ink-soft);
}

.network-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.network-map .city {
  fill: var(--brand);
  filter: drop-shadow(0 0 2px rgba(50, 211, 255, 0.9));
}

.region-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.city-list li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-grid {
  padding: 100px 0 60px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-input);
  font: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid rgba(50, 211, 255, 0.5);
  outline-offset: 1px;
}

.form-card .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.form-card .checkbox input {
  width: auto;
}

.form-card button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-error {
  margin: 0;
  color: var(--danger-ink);
}

.auth-page {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  min-height: 100vh;
  padding: 40px 16px;
}

.auth-card {
  width: min(420px, 100%);
}

.auth-card h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.auth-card > p {
  margin: 0;
}

.preview-note {
  padding: 10px 12px;
  border: 1px dashed var(--warn-line);
  border-radius: 12px;
  color: var(--warn-ink);
}

.provider-buttons {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.form-card .provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-input);
  font-size: 0.98rem;
  transition: border-color 150ms ease, background 150ms ease;
}

.form-card .provider-button:hover {
  border-color: var(--brand);
  background: var(--hover);
}

.form-card .provider-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.provider-button svg {
  width: 20px;
  height: 20px;
}

.auth-switch {
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 40px;
  margin-top: 40px;
  padding: 56px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer .brand {
  color: var(--text);
}

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

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer h4 {
  margin: 0 0 6px;
  color: var(--text);
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
}

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

  .footer {
    grid-template-columns: 1fr;
  }

  .nav-dropdown .mega-menu {
    display: none;
  }

  .site-header.nav-open nav {
    gap: 16px;
  }
}

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

  .page-hero {
    padding-top: 64px;
  }

  .steps li {
    padding-left: 24px;
    padding-top: 70px;
  }
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  object-fit: cover;
}

.user-pill button.link-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

/* Mobile header: brand and menu toggle stay on the top row; the menu opens as a panel below. */
@media (max-width: 1020px) {
  .menu-button {
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .site-header.nav-open {
    align-items: center;
    max-height: 100vh;
    overflow-y: auto;
  }

  .site-header.nav-open .brand {
    order: -2;
    margin-right: auto;
  }

  .site-header.nav-open .menu-button {
    order: -1;
  }

  .site-header.nav-open nav {
    gap: 0;
    padding-top: 10px;
  }

  .site-header.nav-open nav > a,
  .site-header.nav-open .nav-dropdown > a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-header.nav-open .nav-dropdown {
    width: 100%;
  }

  .site-header.nav-open .nav-dropdown > a span {
    display: none;
  }

  .site-header.nav-open .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 0 8px;
  }

  .site-header.nav-open .header-actions .link-button,
  .site-header.nav-open .header-actions .user-pill {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 0;
    padding: 0 4px 6px;
  }
}
