:root {
  color-scheme: dark;
  --atlas-ground: #0b1119;
  --atlas-surface: #111923;
  --ink: #f3f6f8;
  --atlas-copy: #b6c2ce;
  --muted: #9aaaba;
  --cyan: #73d8e3;
  --line: #f3f6f819;
  --panel: var(--atlas-surface);
  --panel-strong: var(--atlas-surface);
  --atlas-gutter: 56px;
  --atlas-width: min(100% - 2 * var(--atlas-gutter), 1240px);
}

body {
  background: var(--atlas-ground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

body::before,
.satellite-backdrop {
  display: none;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-header,
.faq-body .site-header,
.policy-body .site-header,
.creator-body .site-header {
  position: relative;
  inset: auto;
  width: var(--atlas-width);
  min-height: 72px;
  margin-inline: auto;
  padding: 12px 0;
  gap: 16px;
  border-color: var(--line);
  background: var(--atlas-ground);
  backdrop-filter: none;
}

.brand {
  flex: none;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}

.site-header .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: none;
}

.site-header .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(12px, 2vw, 28px);
  color: var(--atlas-copy);
  font-size: 14px;
  font-weight: 400;
}

.site-header .nav a:hover,
.site-language:hover {
  color: var(--ink);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-language {
  color: var(--atlas-copy);
  font-size: 13px;
  white-space: nowrap;
}

.app-store-button,
.site-menu-toggle,
.site-header .header-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
}

.site-header .header-cta,
.site-menu-toggle {
  flex: none;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.site-menu-toggle {
  display: none;
  font-family: inherit;
  cursor: pointer;
}

.app-store-button:hover,
.site-header .header-cta:hover,
.site-menu-toggle:hover {
  background: var(--atlas-surface);
  box-shadow: none;
  transform: none;
}

.site-header .app-store-copy {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.site-header .app-store-copy :is(span, strong) {
  color: inherit;
  font: inherit;
}

.site-header .app-store-icon {
  display: none;
}

.atlas-hero,
.atlas-demo {
  width: var(--atlas-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
}

.atlas-hero {
  padding-block: 56px 48px;
}

.atlas-hero-copy {
  padding-bottom: 24px;
}

.atlas-hero h1 {
  margin: 0;
  font-size: clamp(44px, 4.7vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

:lang(zh) .atlas-hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.17;
  letter-spacing: -.025em;
}

.atlas-hero-copy p {
  max-width: 380px;
  margin: 20px 0 0;
  color: var(--atlas-copy);
  font-size: 18px;
  line-height: 1.55;
}

.atlas-hero .hero-actions {
  width: auto;
  gap: 16px;
  margin: 28px 0 0;
}

.primary-button,
.secondary-button {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.primary-button {
  color: var(--atlas-ground);
  background: var(--ink);
}

.primary-button:hover {
  background: #dfe7ec;
  transform: none;
}

.secondary-button:hover {
  transform: none;
}

.atlas-hero .hero-actions a {
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
}

.atlas-hero .hero-actions .secondary-button {
  padding-inline: 0;
  border: 0;
  color: var(--atlas-copy);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

.atlas-hero .hero-actions .secondary-button:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.atlas-hero figure,
.atlas-demo figure {
  min-width: 0;
  margin: 0;
}

.atlas-hero img,
.atlas-demo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
}

.atlas-hero figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.atlas-hero figcaption span:first-child {
  color: var(--atlas-copy);
}

.atlas-demo-section {
  border-block: 1px solid var(--line);
}

.atlas-demo {
  padding-block: 56px 72px;
}

.atlas-demo h2,
.section-heading h2,
.download-section h2,
.faq-cta h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

:lang(zh) .atlas-demo h2 {
  letter-spacing: -.02em;
  line-height: 1.2;
}

.atlas-demo p {
  max-width: 360px;
  margin: 16px 0 0;
  color: var(--atlas-copy);
  line-height: 1.6;
}

.atlas-home .section,
.atlas-home .download-section,
.atlas-home .signal-strip {
  width: var(--atlas-width);
  margin-inline: auto;
  padding-inline: 0;
}

.atlas-home .section {
  padding-block: 64px;
  border-bottom: 1px solid var(--line);
}

.atlas-home .signal-strip {
  margin-top: 0;
  border-top: 0;
  background: transparent;
}

.signal-strip div,
.download-section,
.regions-section,
.faq-cta {
  background: transparent;
}

.site-footer {
  width: var(--atlas-width);
  margin-inline: auto;
  padding: 24px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 20px;
  font-size: 13px;
}

.site-footer span:first-child,
.site-footer a {
  font-weight: 500;
}

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

.eyebrow,
.map-label,
.region-gallery figcaption,
.facts-grid dt {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.feature-grid .feature-icon {
  display: none;
}

.feature-grid article,
.price-card,
.creator-card,
.facts-grid div,
.region-display,
.faq-list details,
.faq-cta,
.topic-link-grid a,
.policy-content {
  background: var(--atlas-surface);
  backdrop-filter: none;
  box-shadow: none;
}

.feature-grid article,
.price-card {
  min-height: 0;
  padding: 24px;
}

.atlas-home .pricing-section,
.atlas-home .regions-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.price-card p {
  margin-bottom: 24px;
  font-weight: 500;
}

.price-card h3 {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.featured-price {
  border-color: var(--atlas-copy);
}

.atlas-home .download-section {
  min-height: 0;
  padding-block: 48px 64px;
}

.download-section .app-store-button {
  margin-top: 24px;
}

.region-tabs {
  margin: 0;
  gap: 8px;
}

.region-tab {
  flex: none;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.region-tab.is-active {
  color: var(--ink);
  background: var(--atlas-surface);
  border-color: var(--cyan);
}

.region-display {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  padding: 24px;
  gap: 24px;
}

.region-image-frame {
  grid-column: 2;
  grid-row: 1;
  box-shadow: none;
}

.region-image-frame::after {
  content: none;
}

.region-image-frame img {
  filter: none;
  transition: opacity 150ms ease;
}

.region-image-frame figcaption,
.region-gallery figcaption {
  position: static;
  padding: 8px 12px;
  color: var(--atlas-copy);
  background: var(--atlas-ground);
}

.region-gallery img,
.region-gallery figure:hover img {
  transform: none;
  filter: none;
}

.region-sample {
  margin: 20px 0 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.region-sample strong {
  color: var(--ink);
  font-weight: 500;
}

.faq-hero,
.policy-hero,
.creator-hero,
.faq-list,
.policy-content {
  width: var(--atlas-width);
  margin-inline: auto;
  padding-inline: 0;
}

.faq-hero,
.policy-hero,
.creator-hero {
  max-width: 1240px;
  padding-top: 56px;
}

.faq-hero h1,
.policy-hero h1,
.creator-hero h1,
body[data-lang="zh"] :is(.faq-hero, .policy-hero, .creator-hero) h1 {
  max-width: 940px;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
}

:is(.faq-hero, .policy-hero, .creator-hero) p:not(.eyebrow) {
  color: var(--atlas-copy);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.policy-content {
  max-width: 1240px;
  background: transparent;
  border: 0;
}

.policy-content :where(p, li),
.faq-list p {
  max-width: 76ch;
  color: var(--atlas-copy);
}

.policy-content h2,
.faq-list summary,
.feature-grid h3,
.region-display h3 {
  font-weight: 500;
}

.faq-list summary {
  min-height: 56px;
  padding-block: 16px;
  font-size: clamp(16px, 2vw, 22px);
}

.faq-list summary::after {
  border: 0;
  color: var(--muted);
}

.faq-cta {
  min-height: 0;
  gap: 24px;
}

@media (max-width: 1020px) {
  :root { --atlas-gutter: 32px; }

  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-header .nav {
    display: none;
    position: absolute;
    inset: calc(100% + 4px) 0 auto;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 12px;
    background: var(--atlas-surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .site-header .nav.is-open {
    display: flex;
  }

  .site-header .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 820px) {
  :root { --atlas-gutter: 20px; }

  .site-header,
  .faq-body .site-header,
  .policy-body .site-header,
  .creator-body .site-header {
    min-height: 64px;
    padding-block: 8px;
    gap: 8px;
  }

  .brand,
  .site-actions {
    gap: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .site-header .brand-mark {
    width: 28px;
    height: 28px;
  }

  .site-header .header-cta,
  .site-menu-toggle {
    display: inline-flex;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .atlas-hero,
  .atlas-demo,
  .region-display {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-hero {
    gap: 28px;
    padding-block: 40px 28px;
  }

  .atlas-hero-copy {
    padding: 0;
  }

  .atlas-hero h1 {
    font-size: clamp(36px, 9vw, 52px);
  }

  :lang(zh) .atlas-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .atlas-hero-copy p {
    margin-top: 16px;
    font-size: 15px;
  }

  .atlas-hero .hero-actions {
    margin-top: 20px;
  }

  .atlas-hero .hero-actions a {
    min-height: 44px;
    font-size: 13px;
  }

  .atlas-hero figcaption {
    padding-top: 8px;
    font-size: 12px;
  }

  .atlas-demo {
    gap: 20px;
    padding-block: 32px 48px;
  }

  .atlas-demo p {
    margin-top: 12px;
    font-size: 14px;
  }

  .atlas-home .section {
    padding-block: 40px;
  }

  .region-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px;
    margin-inline: -4px;
  }

  .region-display {
    padding: 16px;
  }

  .region-image-frame {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 360px) {
  :root { --atlas-gutter: 16px; }

  .site-actions { gap: 4px; }
  .site-header .header-cta,
  .site-menu-toggle { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .region-image-frame img,
  .primary-button,
  .secondary-button,
  .app-store-button {
    transition: none;
  }
}
