:root {
  color-scheme: dark;
  --ink: #f7f0df;
  --muted: #c7c3b8;
  --paper: #fff8ea;
  --charcoal: #151514;
  --charcoal-2: #20201d;
  --line: rgba(255, 248, 234, 0.18);
  --amber: #ffc857;
  --coral: #ff6b5f;
  --mint: #70e0a8;
  --cyan: #75d7ff;
  --violet: #9582ff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 200, 87, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 4%, rgba(112, 224, 168, 0.12), transparent 22rem),
    #151514;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 248, 234, 0.12);
  background: rgba(21, 21, 20, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 200, 87, 0.65);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.92), rgba(255, 107, 95, 0.9));
  color: #151514;
  font-weight: 900;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 248, 234, 0.1);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.06);
}

.main-nav a {
  min-width: 78px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(255, 248, 234, 0.08);
}

.header-cta,
.primary-btn,
.secondary-btn,
.copy-btn,
.price-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 800;
}

.header-cta {
  padding: 0 16px;
  color: #141413;
  background: var(--amber);
  box-shadow: 0 10px 28px rgba(255, 200, 87, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(790px, calc(100svh - 36px));
  padding: clamp(44px, 7vw, 88px) clamp(18px, 4vw, 56px) 64px;
  border-bottom: 1px solid rgba(255, 248, 234, 0.12);
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 20, 0.92), rgba(21, 21, 20, 0.62) 48%, rgba(21, 21, 20, 0.82)),
    linear-gradient(180deg, rgba(21, 21, 20, 0.08), #151514 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #e4dfd0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.primary-btn,
.secondary-btn {
  min-width: 144px;
  padding: 0 18px;
}

.primary-btn {
  color: #141413;
  background: var(--mint);
}

.secondary-btn {
  border: 1px solid rgba(255, 248, 234, 0.22);
  color: var(--ink);
  background: rgba(255, 248, 234, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0;
}

.hero-metrics div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 248, 234, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.07);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.route-console {
  width: min(100%, 460px);
  justify-self: end;
  padding: 18px;
  border: 1px solid rgba(255, 248, 234, 0.16);
  border-radius: var(--radius);
  background: rgba(20, 20, 18, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.console-topline,
.route-path,
.site-footer,
.billing-toggle {
  display: flex;
  align-items: center;
}

.console-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.console-topline div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(112, 224, 168, 0.14);
}

.region-pill,
.best-badge {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(117, 215, 255, 0.28);
  color: var(--cyan);
  background: rgba(117, 215, 255, 0.08);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.08);
}

.segment,
.model-chip,
.copy-btn {
  border: 0;
  cursor: pointer;
}

.segment {
  min-height: 38px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.segment.active {
  color: #151514;
  background: var(--paper);
}

.model-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.model-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 248, 234, 0.05);
}

.model-chip.active {
  border-color: rgba(255, 200, 87, 0.65);
  color: #151514;
  background: var(--amber);
}

.route-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.status-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 248, 234, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.06);
}

.status-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
}

.status-card strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
}

.route-path {
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 9px 10px;
  border: 1px solid rgba(112, 224, 168, 0.22);
  border-radius: var(--radius);
  color: #dcf9e8;
  background: rgba(112, 224, 168, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.route-path i {
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 224, 168, 0.8), transparent);
}

.code-block,
.quickstart-code {
  overflow-x: auto;
  margin: 0;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: var(--radius);
  color: #f8ead0;
  background: rgba(0, 0, 0, 0.34);
  line-height: 1.65;
}

.code-block {
  min-height: 126px;
  padding: 14px;
  font-size: 12px;
}

.copy-btn {
  width: 100%;
  margin-top: 12px;
  color: #151514;
  background: var(--cyan);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 248, 234, 0.12);
  background: var(--paper);
  color: #171714;
}

.signal-item {
  min-height: 106px;
  padding: 24px clamp(18px, 3vw, 42px);
  border-right: 1px solid rgba(21, 21, 20, 0.12);
}

.signal-item:last-child {
  border-right: 0;
}

.signal-item span {
  display: block;
  margin-bottom: 11px;
  color: #776f60;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signal-item strong {
  font-size: clamp(18px, 2vw, 25px);
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.section-heading h2,
.quickstart-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}

.model-section .section-heading h2,
.ops-section .section-heading h2 {
  grid-column: 1 / -1;
  max-width: 780px;
}

.model-section {
  background: #151514;
}

.model-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.model-card,
.price-card {
  border: 1px solid rgba(255, 248, 234, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.06);
}

.model-card {
  min-height: 268px;
  padding: 23px;
}

.card-kicker {
  margin-bottom: 38px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.model-card h3,
.ops-copy h3,
.price-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.model-card p,
.ops-copy p,
.price-card p,
.quickstart-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.ops-section {
  color: #171714;
  background: #e9f3e6;
}

.ops-section .eyebrow {
  color: #0f8f5c;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(22px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
}

.ops-copy p {
  max-width: 540px;
  color: #4b544c;
}

.timeline {
  border: 1px solid rgba(21, 21, 20, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(21, 21, 20, 0.1);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row span {
  color: #69736a;
  font-size: 13px;
}

.timeline-row em {
  color: #0f8f5c;
  font-style: normal;
  font-weight: 900;
}

.pricing-section {
  background: #151514;
}

.billing-toggle {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.billing-toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-track {
  position: relative;
  width: 52px;
  height: 30px;
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.1);
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  transition: transform 180ms ease;
}

.billing-toggle input:checked + .toggle-track::after {
  transform: translateX(22px);
  background: var(--mint);
}

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

.price-card {
  position: relative;
  min-height: 414px;
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(255, 200, 87, 0.5);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.16), rgba(255, 248, 234, 0.06));
}

.best-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--amber);
  border-color: rgba(255, 200, 87, 0.36);
  background: rgba(255, 200, 87, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.price-card h3 {
  padding-right: 72px;
}

.price {
  display: block;
  margin: 18px 0;
  font-size: 43px;
  line-height: 1;
}

.price-card ul {
  min-height: 124px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.price-card li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 248, 234, 0.1);
}

.price-card a {
  width: 100%;
  color: #151514;
  background: var(--paper);
}

.quickstart-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: start;
  background: #27231d;
}

.quickstart-copy,
.quickstart-code {
  max-width: 620px;
}

.quickstart-code {
  justify-self: end;
  width: 100%;
  min-height: 260px;
  padding: 22px;
  font-size: 14px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 248, 234, 0.12);
  color: var(--muted);
  background: #111110;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 6px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .ops-layout,
  .quickstart-section {
    grid-template-columns: 1fr;
  }

  .route-console {
    justify-self: stretch;
    width: 100%;
  }

  .hero-metrics,
  .signal-band,
  .model-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .billing-toggle {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .quickstart-code {
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
    gap: 12px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .model-selector {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .model-chip {
    width: 100%;
  }

  .hero-metrics,
  .route-status,
  .signal-band,
  .model-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .signal-item {
    border-right: 0;
    border-bottom: 1px solid rgba(21, 21, 20, 0.12);
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 92px;
    padding: 14px 16px;
  }

  .route-path {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .route-path i {
    width: 1px;
    height: 16px;
    justify-self: center;
    background: linear-gradient(180deg, transparent, rgba(112, 224, 168, 0.8), transparent);
  }

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