:root {
  color-scheme: dark;
  --bg: #09131e;
  --text: #eef4f3;
  --muted: #9aacae;
  --accent: #a8dfca;
  --launched: #58d796;
  --setup: #86c4ef;
  --eligible: #f0c77e;
  --review: #bbaddc;
  --ineligible: #d98b86;
  --unknown: #738797;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }
button { font: inherit; }

.home {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 48%, #192e39 0%, #101e2a 41%, #09131e 78%);
}

.site-header {
  position: relative;
  z-index: 4;
  height: 86px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(203, 229, 222, .1);
}

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-mark { font-size: 1.65rem; font-weight: 750; letter-spacing: -.08em; }
.brand-mark span { color: var(--accent); }
.brand-logo { display: block; width: 64px; height: 64px; flex: none; }
.brand-name { color: #b1c2be; font-size: .72rem; letter-spacing: .04em; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a, .install-button { font-size: .77rem; text-decoration: none; font-weight: 600; }
.site-header nav a span { color: var(--accent); margin-left: .35rem; }
.install-button { background: transparent; border: 1px solid #6a8a82; color: var(--text); padding: .6rem .8rem; cursor: pointer; }
.install-button[hidden] { display: none; }

.globe-stage {
  position: relative;
  min-height: calc(100dvh - 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.globe-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#a6cfc3 1px, transparent 1px);
  background-size: 100px 100px;
  opacity: .09;
}

.stage-heading { position: absolute; z-index: 1; left: 5%; top: 8%; pointer-events: none; }
.eyebrow, .card-label {
  color: var(--accent);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: .55rem; background: var(--accent); border-radius: 50%; }
.stage-heading h1 { margin: 1.2rem 0 0; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }

#globe {
  display: block;
  width: min(94vw, calc(100dvh - 95px), 1050px);
  height: auto;
  max-width: 100%;
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(0 18px 70px rgba(0, 0, 0, .35));
}
#globe.dragging { cursor: grabbing; }
#globe:focus-visible { outline: 2px solid var(--accent); outline-offset: -30px; border-radius: 50%; }

.connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.connector line { stroke: #c6e8dc; stroke-width: 1; opacity: .8; }
.connector circle { fill: #d6fff1; }
.connector[hidden] { display: none; }

.country-card {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 5%;
  width: min(290px, 30vw);
  padding: 1.35rem;
  background: rgba(15, 31, 40, .9);
  border: 1px solid rgba(172, 210, 199, .3);
  box-shadow: 0 12px 50px rgba(0, 0, 0, .14);
  backdrop-filter: blur(12px);
}
.card-label { display: flex; justify-content: space-between; margin: 0 0 1.35rem; }
.card-index { color: #78968f; font-size: .85rem; }
.country-card h2 { margin: 0 0 .45rem; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.status { color: #b9c9c7; font-size: .83rem; line-height: 1.5; margin: 0 0 1rem; }
.action-link { color: var(--accent); font-size: .75rem; font-weight: 650; text-decoration: none; }
.action-link:hover, .site-header nav a:hover, .legend a:hover { text-decoration: underline; }

.stage-bottom { position: absolute; z-index: 3; left: 5%; right: 5%; bottom: 4%; display: flex; align-items: end; justify-content: space-between; }
.hint { margin: 0; color: #a1b5b1; font-size: .72rem; letter-spacing: .03em; }
.hint > span:first-child { color: var(--accent); margin-right: .6rem; font-size: 1rem; }
.legend { position: relative; font-size: .72rem; color: #bdcfca; }
.legend summary { cursor: pointer; list-style: none; }
.legend summary::-webkit-details-marker { display: none; }
.legend summary span { color: var(--accent); margin-left: .6rem; }
.legend-content { position: absolute; right: 0; bottom: 2rem; width: 245px; padding: 1rem; border: 1px solid #385249; background: #10232c; }
.legend-content p { margin: 0 0 .7rem; }
.legend-content a { color: var(--accent); text-decoration: none; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .55rem; }
.dot.launched { background: var(--launched); }
.dot.setup { background: var(--setup); }
.dot.eligible { background: var(--eligible); }
.dot.review { background: var(--review); }
.dot.ineligible { background: var(--ineligible); }
.dot.unknown { background: var(--unknown); }

@media (max-width: 700px) {
  .site-header { height: 68px; padding: 0 5%; }
  .brand-name { display: none; }
  .brand-logo { width: 52px; height: 52px; }
  .site-header nav { gap: .75rem; }
  .globe-stage { min-height: max(590px, calc(100dvh - 68px)); }
  .stage-heading { top: 3%; width: 38%; }
  .stage-heading h1 { font-size: clamp(1.05rem, 5vw, 1.35rem); margin-top: .8rem; }
  .eyebrow { font-size: .53rem; line-height: 1.5; letter-spacing: .05em; }
  .country-card { top: 3%; right: 4%; width: min(52%, 250px); padding: .85rem; }
  .card-label { margin-bottom: .8rem; font-size: .56rem; }
  .country-card h2 { font-size: 1.4rem; }
  .status { font-size: .73rem; margin-bottom: .7rem; }
  #globe { width: min(100vw, 650px); }
  .hint-keyboard { display: none; }
}

@media (max-width: 380px) {
  .stage-heading h1 { font-size: 1.05rem; }
  .eyebrow { font-size: .48rem; }
}

/* ---- Offer and content sections ---- */
html { scroll-behavior: smooth; }
.content { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.section { padding: 4.5rem 0; border-top: 1px solid rgba(203, 229, 222, .1); scroll-margin-top: 1rem; }
.section h2 { margin: .9rem 0 1.4rem; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; max-width: 22ch; }
.section h3 { margin: 0 0 .6rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.section p, .section li { color: #c3d2cf; line-height: 1.6; }
.section a { color: var(--accent); }
.lede { max-width: 62ch; font-size: 1.05rem; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.offer-card { padding: 1.35rem; background: rgba(15, 31, 40, .9); border: 1px solid rgba(172, 210, 199, .22); }
.offer-card p { margin: 0 0 .8rem; font-size: .92rem; }
.tech { color: var(--muted) !important; font-size: .8rem !important; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.pillar-num { display: block; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .7rem; }
.pillar p { margin: 0; font-size: .95rem; }
.tag { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #09131e; background: var(--eligible); border-radius: 3px; vertical-align: middle; }
.placeholder { padding: 1.2rem 1.35rem; border: 1px dashed var(--eligible); background: rgba(240, 199, 126, .06); }
.placeholder p { margin-top: 0; }
.placeholder-note { color: var(--eligible) !important; font-size: .9rem; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; border-left: 1px solid rgba(172, 210, 199, .3); }
.timeline li { position: relative; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0 0 1.4rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--setup); }
.timeline .when { color: var(--eligible); font-weight: 650; font-size: .9rem; }
.cta { text-align: left; }
.cta-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.button { display: inline-block; padding: .75rem 1.1rem; background: var(--accent); color: #09131e !important; font-weight: 700; text-decoration: none; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem 5%; border-top: 1px solid rgba(203, 229, 222, .1); color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 700px) {
  .nav-secondary { display: none; }
  .section { padding: 3rem 0; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---- Content pages: FAQ, operator signup, privacy, company details ---- */
.site-header nav a[aria-current="page"] { color: var(--accent); }
.page-wrap { max-width: 820px; margin: 2rem auto; padding: 1rem; }
.page-card { background: #111a2b; border: 1px solid #233149; border-radius: 16px; padding: 1.2rem; }
.page-card h2 { margin-top: 1.4rem; }
.page-card p, .page-card li, .page-card dd { color: #d2dbea; line-height: 1.6; }
.page-card a { color: #6bc4ff; }
.ph { background: rgba(240, 199, 126, .15); color: var(--eligible); padding: 0 .25rem; border-radius: 4px; }
.details-list { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: .4rem 1.2rem; }
.details-list dt { font-weight: 600; color: var(--muted); }
.details-list dd { margin: 0; }
.signup-form { display: grid; gap: .85rem; margin-top: 1rem; }
.signup-form label { font-weight: 600; }
.signup-form .hint-text { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.signup-form input:not([type="checkbox"]), .signup-form textarea { width: 100%; padding: .65rem; border-radius: 8px; border: 1px solid #364765; background: #0d1627; color: #e8ecf2; font: inherit; }
.signup-form textarea { min-height: 140px; resize: vertical; }
.signup-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: #d2dbea; }
.signup-form .check input { margin-top: .3rem; }
.signup-form button { width: fit-content; background: #6bc4ff; border: 0; color: #0b1220; padding: .65rem 1rem; border-radius: 8px; font-weight: 700; cursor: pointer; }
.signup-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; padding: .75rem 1rem; border-radius: 8px; background: #0d1627; border: 1px solid #364765; }
.form-status[hidden] { display: none; }
.form-status.error { border-color: var(--ineligible); }

@media (max-width: 700px) {
  .details-list { grid-template-columns: 1fr; }
  .details-list dd { margin-bottom: .5rem; }
}

.offer-card.later { border-style: dashed; opacity: .75; }
.tag-later { background: var(--review); }

/* ---- Masterplan sections: why, get started, operators ---- */
.reasons { margin-top: 2.2rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.offer-card.highlight { border-color: rgba(168, 223, 202, .45); }
.offer-card.highlight h3 { color: var(--accent); }
.node-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2rem; }
.node-status { display: flex; align-items: center; color: var(--muted) !important; font-size: .78rem !important; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.addr-list { margin: 1rem 0 0; font-size: .88rem; }
.addr-list dd { color: #c3d2cf; overflow-wrap: anywhere; }
.apps-card { margin-top: 1rem; }
.criteria { max-width: 62ch; padding-left: 1.3rem; }
.criteria li { margin-bottom: .4rem; }

/* ---- Country picker in the country card ---- */
.picker-label { display: block; margin: 1.1rem 0 .35rem; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.country-picker { width: 100%; padding: .45rem .5rem; background: #0d1b24; color: var(--text); border: 1px solid rgba(172, 210, 199, .3); font: inherit; font-size: .82rem; }
@media (max-width: 700px) { .picker-label { margin-top: .7rem; } }
