:root {
  --bg: #07080c;
  --ink: #f4f4f5;
  --muted: #9aa3b2;
  --card: #12141c;
  --line: #262a36;
  --accent: #2dd4bf;
  --accent-deep: #087f8c;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --soon: #fbbf24;
  --soon-bg: rgba(251, 191, 36, 0.14);
  --live: #34d399;
  --live-bg: rgba(52, 211, 153, 0.16);
  --shadow: 0 20px 60px rgb(0 0 0 / 0.45);
  --panel: #10131b;
  --wash: rgba(255, 255, 255, 0.05);
  --orbit-faint: rgba(255, 255, 255, 0.08);
  --city-wash: rgba(45, 212, 191, 0.16);
  --radius: 1.25rem;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f6f8;
  --ink: #12202b;
  --muted: #526170;
  --card: #ffffff;
  --line: #d5dee6;
  --accent: #0f766e;
  --accent-deep: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --soon: #b45309;
  --soon-bg: rgba(180, 83, 9, 0.12);
  --live: #047857;
  --live-bg: rgba(4, 120, 87, 0.12);
  --shadow: 0 16px 40px rgb(18 32 43 / 0.08);
  --panel: #ffffff;
  --wash: rgba(18, 32, 43, 0.05);
  --orbit-faint: rgba(18, 32, 43, 0.12);
  --city-wash: rgba(15, 118, 110, 0.1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% -10%, rgba(8, 127, 140, 0.38), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(45, 212, 191, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 120%, rgba(15, 23, 42, 0.9), transparent 40rem);
}

html[data-theme="light"] .atmosphere {
  background:
    radial-gradient(circle at 18% -10%, rgba(15, 118, 110, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(45, 212, 191, 0.2), transparent 24rem),
    #f3f6f8;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.4rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: Syne, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(45, 212, 191, 0.22);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-frame--nav {
  width: 2.55rem;
  height: 2.55rem;
}

.logo-frame--hero {
  position: relative;
  z-index: 2;
  width: min(42vw, 12.75rem);
  height: min(42vw, 12.75rem);
  animation: glow 4.8s ease-in-out infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.05rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #2dd4bf, var(--accent-deep));
  color: #041416;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
  touch-action: manipulation;
}

.btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .icon-moon,
html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.download {
  position: relative;
}

.download-trigger .chevron {
  display: block;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.download.is-open .download-trigger {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: var(--accent-soft);
  filter: none;
}

.download.is-open .chevron {
  transform: rotate(180deg);
}

.download-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.25rem;
  min-width: 14.5rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.4rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-panel--left {
  right: auto;
  left: 0;
}

.download-panel[hidden] {
  display: none;
}

.download-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.download-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: var(--wash);
  color: var(--accent);
}

.download-option strong,
.download-option small {
  display: block;
}

.download-option strong {
  font-size: 0.95rem;
}

.download-option small {
  color: var(--muted);
  font-weight: 600;
}

a.download-option:hover,
a.download-option:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.download-option.soon {
  cursor: default;
  opacity: 0.62;
}

.download-option.soon .download-icon {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4.2rem 0 3.2rem;
  overflow: clip;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px var(--live-bg);
  animation: pulse 1.8s ease-out infinite;
}

h1,
h2,
h3 {
  font-family: Syne, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.35rem);
}

.lede {
  max-width: 38rem;
  margin: 1.15rem 0 1.6rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.mark-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 26rem);
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  justify-self: center;
}

.orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(45, 212, 191, 0.28);
}

.orbit--fast {
  inset: 0;
  border-color: var(--orbit-faint);
  animation: spin 28s linear infinite;
}

.orbit--slow {
  animation: spin 48s linear infinite reverse;
}

.node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transform: rotate(var(--a)) translate(min(28vw, 10.15rem)) rotate(calc(var(--a) * -1)) translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}

.node i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4b5563;
  box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.2);
}

.node--live {
  color: var(--accent);
}

.node--live i {
  background: var(--live);
  box-shadow: 0 0 0 4px var(--live-bg);
}

.city-chips {
  display: none;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-chips li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cities {
  padding: 1rem 0 4rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head p {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cities-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.city {
  position: relative;
  overflow: hidden;
  min-height: 11.5rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.city.live {
  background:
    linear-gradient(180deg, var(--city-wash), var(--card) 52%);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.city.soon {
  background-image: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 11px
  );
}

.status {
  display: inline-flex;
  margin-bottom: 2.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.live {
  background: var(--live-bg);
  color: var(--live);
}

.status.soon {
  background: var(--soon-bg);
  color: var(--soon);
}

.status.wait {
  background: rgba(165, 180, 252, 0.12);
  color: #c7d2fe;
}

.city h3 {
  font-size: 1.45rem;
}

.city p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.city-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.city-actions .btn {
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
}

.feature {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0.3rem 0 0.45rem;
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

footer {
  padding: 1.4rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
}

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

@keyframes glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 32px rgba(45, 212, 191, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(45, 212, 191, 0.45),
      0 0 48px rgba(45, 212, 191, 0.4);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--live-bg);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

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

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

  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav {
    gap: 0.4rem;
  }

  .nav .btn {
    min-height: 2.3rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .theme-toggle {
    width: 2.3rem;
    height: 2.3rem;
    flex-shrink: 0;
  }

  .nav .hide-sm,
  .node,
  .orbit {
    display: none;
  }

  .city-chips {
    display: flex;
    justify-content: center;
  }

  .mark-stage {
    width: min(100%, 16rem);
  }

  .logo-frame--hero {
    width: min(52vw, 13rem);
    height: min(52vw, 13rem);
  }
}

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

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .logo-frame--hero,
  .dot {
    animation: none;
  }
}
