:root {
  --bg: #0b1220;
  --bg-elev: #111a2e;
  --fg: #e6ecf5;
  --fg-muted: #8a97b0;
  --accent: #7dd3fc;
  --accent-dim: #38bdf8;
  --border: #1e293b;
  --ok: #34d399;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

/* Wordmark animation — ported from enscrive.io for brand consistency. */
@keyframes enscrive-wordmark-ring-draw {
  from { stroke-dashoffset: 194; }
  to { stroke-dashoffset: 0; }
}

@keyframes enscrive-wordmark-collapse {
  from { width: 12rem; }
  to { width: 3rem; }
}

@keyframes enscrive-wordmark-tail-collapse {
  from { width: 10.8rem; opacity: 1; }
  to { width: 0; opacity: 0; }
}

.enscrive-nav-wordmark-shell {
  display: inline-flex;
  flex: 0 0 auto;
  width: 12rem;
  overflow: hidden;
  animation: enscrive-wordmark-collapse 420ms cubic-bezier(0.68, 0, 0.32, 1) 1500ms forwards;
  will-change: width;
}

.enscrive-nav-wordmark-track {
  display: flex;
  align-items: center;
  width: 12rem;
}

.enscrive-nav-wordmark-mark {
  width: 3rem;
  height: 2rem;
  flex: 0 0 3rem;
  max-width: none;
  filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.12));
}

.enscrive-nav-wordmark-tail-shell {
  display: block;
  width: 10.8rem;
  flex: 0 0 10.8rem;
  margin-left: -1.8rem;
  overflow: hidden;
  animation: enscrive-wordmark-tail-collapse 420ms cubic-bezier(0.68, 0, 0.32, 1) 1500ms forwards;
  will-change: width, opacity;
}

.enscrive-nav-wordmark-tail {
  width: 10.8rem;
  height: 2rem;
  max-width: none;
  filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.12));
}

.enscrive-nav-wordmark-ring {
  stroke-dasharray: 194;
  stroke-dashoffset: 194;
  animation: enscrive-wordmark-ring-draw 700ms cubic-bezier(0.65, 0, 0.35, 1) 430ms forwards;
  fill: none;
}

@media (prefers-reduced-motion: reduce) {
  .enscrive-nav-wordmark-shell,
  .enscrive-nav-wordmark-tail-shell,
  .enscrive-nav-wordmark-ring {
    animation: none;
  }
  .enscrive-nav-wordmark-ring { stroke-dashoffset: 0; }
}

.region {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color 120ms, border-color 120ms;
}

nav a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg-muted);
}

.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tagline {
  font-size: 18px;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 640px;
}

.tagline .divider {
  color: var(--border);
  margin: 0 8px;
}

.status {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.status strong {
  color: var(--fg);
}

section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

p { margin: 0 0 14px; color: var(--fg-muted); }
p:last-child { margin-bottom: 0; }

.regions {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 560px) {
  .regions { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  main { padding: 32px 20px 60px; }
}

.regions li {
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
}

.regions li[data-active="true"] {
  border-color: var(--accent);
  color: var(--fg);
  background: rgba(125, 211, 252, 0.05);
}

.regions li small {
  color: var(--fg-muted);
  font-size: 11px;
  margin-left: auto;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.regions li[data-active="true"] .dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

code { font-family: var(--mono); }

.fine-print {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 12px;
}

.coming ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coming li {
  font-size: 15px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
}

.coming li:first-child { border-top: none; }
.coming li strong { color: var(--fg); margin-right: 6px; }

footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
}

footer p { margin: 0 0 10px; color: var(--fg-muted); }
footer p:last-child { margin-bottom: 0; }
footer .sep { color: var(--border); margin: 0 8px; }

.footer-contact {
  font-family: var(--sans);
  font-size: 13px;
  padding-top: 10px;
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-dim);
}

.footer-contact a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

::selection {
  background: rgba(125, 211, 252, 0.25);
  color: var(--fg);
}
