:root {
  --bg: #07111a;
  --bg-soft: #0b1823;
  --panel: rgba(17, 38, 52, 0.82);
  --panel-solid: #102534;
  --line: rgba(169, 213, 223, 0.16);
  --text: #f4f7f6;
  --muted: #a9b9bd;
  --mint: #65e6c4;
  --mint-soft: rgba(101, 230, 196, 0.15);
  --coral: #ff8066;
  --ocean: #0c2634;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 10%, rgba(44, 118, 126, 0.18), transparent 33rem),
    radial-gradient(circle at 87% 36%, rgba(255, 128, 102, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover { color: var(--mint); }

button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: var(--mint);
  color: #04120f;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0;
  background: rgba(7, 17, 26, 0.78);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(101, 230, 196, 0.6);
  border-radius: 50%;
  color: var(--mint);
  font-weight: 800;
  box-shadow: inset 0 0 20px rgba(101, 230, 196, 0.08);
}

.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 1rem; letter-spacing: .02em; }
.brand small { margin-top: .23rem; color: var(--muted); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }

.site-header nav { display: flex; align-items: center; gap: 1.65rem; color: #c9d4d5; font-size: .9rem; }
.nav-cta { padding: .58rem .9rem; border: 1px solid var(--line); border-radius: 999px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  width: min(1240px, calc(100% - 2.5rem));
  min-height: 760px;
  margin: 0 auto;
  padding: 5rem 0 6rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--mint);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1, .subpage-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 6.8vw, 6.6rem);
  font-weight: 620;
  letter-spacing: -.065em;
  line-height: .95;
}

.hero h1 span { display: block; color: var(--mint); }

.hero-lead, .subpage-heading > p:last-child {
  max-width: 690px;
  margin: 1.7rem 0 0;
  color: #b8c6c8;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--mint); color: #041713; }
.button-primary:hover { color: #041713; background: #8bf0d5; }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.025); color: var(--text); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin: 1.7rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .78rem;
  list-style: none;
}

.trust-list li::before { content: "✓"; margin-right: .4rem; color: var(--mint); }

.hero-map-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(9, 24, 34, 0.82);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.3rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.card-topline a { margin-left: auto; color: var(--text); }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 15px var(--mint); }
.demo-frame { display: block; width: 100%; height: 570px; border: 0; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto 8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip article { padding: 1.5rem 1.2rem; border-right: 1px solid var(--line); }
.metric-strip article:last-child { border-right: 0; }
.metric-strip strong { display: block; color: var(--mint); font-size: 1.85rem; line-height: 1; }
.metric-strip span { display: block; margin-top: .55rem; color: var(--muted); font-size: .79rem; }

.section, .subpage {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4rem 0 8rem;
}

.section-heading { max-width: 780px; margin-bottom: 3rem; }
.section-heading h2, .legal-callout h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1.04;
}
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-card, .panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 45, 60, .72), rgba(10, 25, 35, .82));
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.feature-card { min-height: 260px; padding: 1.8rem; }
.feature-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-size: 1.4rem; }
.feature-card h3 { margin: 2rem 0 .5rem; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }

.flow-section { padding-top: 6rem; }
.steps { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--mint); font-size: .82rem; font-weight: 800; letter-spacing: .1em; }
.steps h3 { margin: -.25rem 0 .2rem; font-size: 1.4rem; }
.steps p { margin: 0; color: var(--muted); }

.legal-callout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem 5rem; padding: 4rem; margin-bottom: 8rem; border: 1px solid rgba(101,230,196,.28); border-radius: 30px; background: linear-gradient(120deg, rgba(101,230,196,.09), rgba(255,128,102,.045)); }
.legal-callout p { margin: 0; color: #c2d0d1; }
.legal-callout .text-link { grid-column: 2; }
.text-link { color: var(--mint); font-weight: 700; }

.subpage { min-height: 70vh; padding-top: 7rem; }
.subpage-heading { margin-bottom: 4rem; }
.subpage-heading h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.panel { padding: clamp(1.4rem, 4vw, 2.7rem); }

.admin-grid { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 1rem; align-items: start; }
.panel h2 { margin-top: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.form-panel label { display: block; margin-top: 1.2rem; color: #dce5e4; font-size: .85rem; font-weight: 700; }
.form-panel input { width: 100%; margin-top: .45rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #081722; color: var(--text); }
.form-panel input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(101,230,196,.12); }
.field-note { color: var(--muted); font-size: .78rem; }
.form-error { padding: .7rem .9rem; border: 1px solid rgba(255,128,102,.4); border-radius: 9px; background: rgba(255,128,102,.08); color: #ffd1c7; }
.site-list { display: grid; gap: .55rem; }
.site-list > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid transparent; border-radius: 12px; background: rgba(3,13,20,.45); }
.site-list > a:hover { border-color: var(--line); background: rgba(101,230,196,.05); }
.site-list strong, .site-list small { display: block; }
.site-list small { color: var(--muted); }
.site-count { white-space: nowrap; color: var(--mint); font-size: .78rem; }
.empty-panel { color: var(--muted); }

.domain-pill, .id-pill { display: inline-flex; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.setup-page { display: grid; gap: 1rem; }
.setup-page .subpage-heading { margin-bottom: 2rem; }
.code-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.code-heading h2 { margin-bottom: 0; }
.copy-button { padding: .52rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.copy-button:hover { border-color: var(--mint); color: var(--mint); }
.code-panel > p { color: var(--muted); }
pre { overflow-x: auto; margin: 1.3rem 0 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #041019; color: #d9eee9; font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
code { color: #b5eddf; }
.check-list { display: grid; gap: .65rem; padding-left: 1.2rem; color: var(--muted); }

.legal-page { max-width: 940px; }
.prose-panel { margin-bottom: 1rem; }
.prose-panel h2 { margin-top: 2.8rem; }
.prose-panel h2:first-child { margin-top: 0; }
.prose-panel p, .prose-panel li { color: #bdcacc; }
.prose-panel a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(101,230,196,.35); text-underline-offset: .2em; }
.prose-panel code { padding: .12rem .35rem; border-radius: .3rem; background: rgba(101,230,196,.08); }
.legal-disclaimer { padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }

.site-footer { display: grid; grid-template-columns: 1.2fr .8fr auto; gap: 3rem; width: min(1240px, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer p { max-width: 430px; }
.brand-footer { color: var(--text); }
.footer-links { display: grid; align-content: start; gap: .35rem; }
.footer-meta { text-align: right; }

/* Public map */
.map-body { min-height: 100vh; background: #07131d; }
.map-app { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 1.5rem; }
.map-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.3rem; }
.map-header h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.045em; }
.map-domain { margin: .45rem 0 0; color: var(--muted); }
.total-counter { text-align: right; }
.total-counter strong, .total-counter span { display: block; }
.total-counter strong { color: var(--mint); font-size: clamp(2rem, 5vw, 4rem); line-height: .9; letter-spacing: -.06em; }
.total-counter span { margin-top: .45rem; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.world-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--ocean); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.world-map { display: block; width: 100%; height: auto; min-height: 260px; }
.ocean { fill: url(#ocean-glow); }
.grid-lines path { fill: none; stroke: rgba(161,213,220,.065); stroke-width: 1; }
.continents path { fill: #d5e6e2; stroke: #f2fbf8; stroke-width: 1.2; opacity: .9; vector-effect: non-scaling-stroke; }
.map-point { filter: url(#point-glow); }
.point-halo { fill: rgba(255,128,102,.16); animation: map-pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.point-core { fill: var(--coral); stroke: #fff4ef; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
@keyframes map-pulse { 50% { transform: scale(1.2); opacity: .45; } }
.map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(4,16,25,.86); color: var(--muted); font-size: .8rem; }
.map-legend { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(4,16,25,.78); color: var(--muted); font-size: .68rem; backdrop-filter: blur(8px); }
.map-legend span { display: inline-block; width: .55rem; height: .55rem; margin-right: .25rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.map-details { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; margin-top: 1rem; }
.map-details > div, .privacy-note { padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,35,48,.72); }
.map-details h2 { margin: 0 0 1rem; font-size: 1.05rem; }
.country-list { display: grid; gap: .72rem; margin: 0; padding: 0; list-style: none; }
.country-list li > div { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .35rem; font-size: .8rem; }
.country-list li > div > span:first-child { color: #66818a; font-variant-numeric: tabular-nums; }
.country-list li > div > span:last-child { color: var(--mint); font-variant-numeric: tabular-nums; }
.country-list i { display: block; height: 2px; margin-top: .3rem; border-radius: 999px; background: linear-gradient(90deg,var(--mint),rgba(101,230,196,.1)); }
.loading-row { color: var(--muted); }
.privacy-note { display: flex; flex-direction: column; justify-content: center; }
.privacy-note strong { color: var(--mint); }
.privacy-note p { margin: .45rem 0 .7rem; color: var(--muted); font-size: .8rem; }
.privacy-note a { color: var(--text); font-size: .78rem; }
.map-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .25rem 0; color: #6f858b; font-size: .64rem; }
.map-embed { overflow-x: hidden; }
.map-embed .map-app { width: min(1180px, calc(100% - 1rem)); padding: .65rem 0; }
.map-embed .map-header { margin-bottom: .7rem; }
.map-embed .map-header .eyebrow, .map-embed .map-domain { display: none; }
.map-embed .map-header h1 { font-size: clamp(1.3rem,4vw,2rem); }
.map-embed .total-counter strong { font-size: clamp(1.7rem,5vw,2.8rem); }
.map-embed .map-details { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .hero-map-card { transform: none; }
  .metric-strip { grid-template-columns: repeat(2,1fr); }
  .metric-strip article:nth-child(2) { border-right: 0; }
  .metric-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .legal-callout, .admin-grid { grid-template-columns: 1fr; }
  .legal-callout .text-link { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  .site-header, .hero, .metric-strip, .section, .subpage, .site-footer { width: min(100% - 1.3rem, 1240px); }
  .site-header { position: static; }
  .brand small { display: none; }
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .demo-frame { height: 530px; }
  .feature-grid, .map-details, .map-embed .map-details, .site-footer { grid-template-columns: 1fr; }
  .legal-callout { padding: 2rem 1.3rem; }
  .map-header { align-items: start; }
  .total-counter span { max-width: 110px; }
  .map-legend { display: none; }
  .world-map { min-height: 220px; }
  .data-table { display: block; overflow-x: auto; }
  .code-heading { display: block; }
  .copy-button { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

