:root {
  color-scheme: dark;
  --bg: #0c151e;
  --surface: #13222f;
  --surface-alt: #0f1c27;
  --border: #2a4354;
  --border-strong: #3f667a;
  --text: #e6f1f8;
  --muted: #b8cedc;
  --accent: #65cfa8;
  --accent-bright: #9cffe0;
  --accent-ink: #07241b;
  --warn: #ffd58a;
  --err: #ffb8b3;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: radial-gradient(900px 420px at 50% -120px, rgba(101, 207, 168, 0.14), transparent 70%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  max-width: 980px;
  padding: 1.5rem 1.25rem 3.5rem;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent-bright);
  text-underline-offset: 3px;
}

a:hover {
  color: #d4fff0;
}

code {
  font-family: ui-monospace, "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 0.88em;
  background: #0a141c;
  border: 1px solid #263e4d;
  border-radius: 6px;
  padding: 0.12em 0.42em;
  color: #d8fff0;
  overflow-wrap: anywhere;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

p {
  margin: 0.65rem 0;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Accessibility skip link & focus ring */
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1c26;
  font-weight: 700;
  text-decoration: none;
}

:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ffe08a;
  outline-offset: 3px;
}

/* Top section jump navigation */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1.25rem;
  background: rgba(19, 34, 47, 0.88);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.brand-pill {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--accent-bright);
  text-decoration: none;
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.top-nav-links a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.top-nav-links a:hover,
.top-nav-links a:focus-visible {
  background: #183040;
  border-color: var(--border-strong);
  color: var(--accent-bright);
}

/* Hero & POADOMAINS banner header */
.hero {
  background: radial-gradient(760px 260px at 50% 0%, rgba(101, 207, 168, 0.16), transparent 72%), linear-gradient(180deg, #162a39 0%, #101f2b 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.85rem 1.65rem 1.6rem;
  text-align: center;
  margin-bottom: 1.6rem;
}

.banner-header {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(4px, 1.1vw, 10px);
  max-width: 620px;
  margin: 0 auto 1.15rem;
}

.banner-tile {
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: clamp(7px, 1.6vw, 13px);
  font-size: clamp(0.95rem, 3.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28), 0 6px 16px rgba(4, 11, 16, 0.4);
  user-select: none;
}

.tone-green {
  background: linear-gradient(180deg, #6ee0b6, #2f9e75);
  color: #062a1f;
}

.tone-blue {
  background: linear-gradient(180deg, #5aa0ff, #2f6fe0);
  color: #ffffff;
}

.tone-coral {
  background: linear-gradient(180deg, #ff9e8b, #e0563f);
  color: #ffffff;
}

.tone-violet {
  background: linear-gradient(180deg, #b48cff, #7a4fe0);
  color: #ffffff;
}

.tone-gold {
  background: linear-gradient(180deg, #ffd96b, #e0a52f);
  color: #2a1a00;
}

.label {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #0d2a24;
  border: 1px solid #3c8f73;
  color: var(--accent-bright);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.label a {
  color: #d8fff0;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  color: #f3fbff;
}

.value {
  max-width: 60ch;
  margin: 0 auto 1.35rem;
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  line-height: 1.55;
  color: #cfe0ec;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 0.75rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: min(100%, 300px);
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--accent-bright);
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #7ee0ba;
  color: var(--accent-ink);
  border-color: #d8fff0;
}

.hero-sublinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-sublinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: #0e1d28;
  border: 1px solid var(--border);
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-sublinks a:hover,
.hero-sublinks a:focus-visible {
  background: #17303f;
  border-color: var(--accent);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
  margin-top: 1.15rem;
  text-align: left;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: #0d1a24;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--muted);
}

.hero-fact strong {
  color: #f0f9ff;
  font-size: 0.9rem;
}

/* Sections */
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.45rem 1.5rem;
  margin: 1.25rem 0;
}

.section-head {
  margin-bottom: 1.05rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--accent-bright);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.05rem 1.1rem;
}

.stat-value {
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-bright);
}

.stat-label {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.stat-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 0.95rem;
}

.feature-card {
  min-width: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #f0f9ff;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 3-Step flow */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.95rem;
}

.step-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #103326;
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #f0f9ff;
}

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

/* Availability table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  margin-bottom: 0.85rem;
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
}

.availability-table caption {
  text-align: left;
  padding: 0.75rem 1rem 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.availability-table th,
.availability-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  line-height: 1.55;
  font-size: 0.94rem;
}

.availability-table thead th {
  background: #10202c;
  color: var(--accent-bright);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.availability-table th[scope="row"] {
  width: 28%;
  color: #f0f9ff;
  font-weight: 700;
  overflow-wrap: break-word;
}

#availability {
  color: var(--warn);
}

/* Live public network check */
.network-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.network-head > div {
  flex: 1 1 280px;
  min-width: 0;
}

button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent-bright);
  border-radius: 10px;
  padding: 0.68rem 1.1rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: #7ee0ba;
}

button:disabled {
  background: #273c4b;
  border-color: #466275;
  color: #cfe0ec;
  cursor: progress;
}

.status-stack {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#status,
#network-status {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

#error {
  margin: 0;
  color: var(--err);
  font-weight: 600;
}

#error:empty {
  display: none;
}

#network-details {
  display: grid;
  grid-template-columns: minmax(12rem, 15.5rem) minmax(0, 1fr);
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-alt);
  overflow: hidden;
}

#network-details:empty {
  display: none;
}

#network-details dt,
#network-details dd {
  margin: 0;
  padding: 0.68rem 0.95rem;
  border-bottom: 1px solid #203544;
  font-size: 0.92rem;
}

#network-details dt:last-of-type,
#network-details dd:last-of-type {
  border-bottom: 0;
}

#network-details dt {
  font-weight: 700;
  color: var(--muted);
  background: rgba(16, 32, 44, 0.55);
}

#network-details dd {
  color: var(--accent-bright);
  font-family: ui-monospace, "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

/* FAQ accordions */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
}

.faq-list details[open] {
  border-color: var(--border-strong);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #f0f9ff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #172d3b;
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-size: 1.05rem;
  line-height: 1;
}

.faq-list details[open] > summary::after {
  content: "−";
  background: #103326;
  border-color: var(--accent);
}

.faq-list details > p {
  margin: 0.7rem 0 0.1rem;
  padding-top: 0.65rem;
  border-top: 1px solid #203544;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Bottom links & footer */
.mirror-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.mirror-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.mirror-nav a:hover,
.mirror-nav a:focus-visible {
  background: #1a3342;
  border-color: var(--accent);
}

.mirror-nav a.primary-link {
  background: #103326;
  border-color: var(--accent);
  color: var(--accent-bright);
}

footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-terms {
  margin: 0.65rem 0;
}

.footer-credit {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.github-mark {
  flex: none;
  vertical-align: middle;
}

@media (max-width: 640px) {
  main {
    padding: 1rem 0.85rem 2.5rem;
  }
  .hero {
    padding: 1.5rem 1rem 1.25rem;
  }
  section {
    padding: 1.1rem 1rem;
  }
  .top-nav {
    justify-content: center;
  }
  .top-nav-links {
    justify-content: center;
  }
  .availability-table th,
  .availability-table td {
    padding: 0.65rem 0.65rem;
  }
  .availability-table th[scope="row"] {
    width: 36%;
  }
  #network-details {
    grid-template-columns: 1fr;
  }
  #network-details dt {
    border-bottom: 0;
    padding-bottom: 0.15rem;
  }
  #network-details dd {
    padding-top: 0.1rem;
  }
  .network-head button {
    width: 100%;
  }
}
