:root {
  --bg: #07111f;
  --bg-2: #0b1628;
  --panel: rgba(255,255,255,0.045);
  --panel-strong: rgba(10, 24, 43, 0.92);
  --border: rgba(148, 197, 255, 0.15);
  --border-strong: rgba(148, 197, 255, 0.25);
  --text: #edf5ff;
  --muted: #afc2dc;
  --blue: #4f9bff;
  --purple: #9f6cff;
  --cyan: #27c7d9;
  --green: #3bd6a2;
  --orange: #f6a93b;
  --shadow: 0 18px 50px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 14%, rgba(37, 132, 255, 0.13), transparent 27rem),
    radial-gradient(circle at 95% 15%, rgba(132, 74, 255, 0.13), transparent 30rem),
    linear-gradient(180deg, #06101e 0%, #091526 38%, #08111f 100%);
}
body.menu-open { overflow: hidden; }
a { color: #93caff; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 0.08rem 0.35rem;
  border-radius: 0.42rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 0.75rem max(1rem, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(6, 13, 25, 0.82);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-pill {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 900;
  background: linear-gradient(135deg, #3698ff, #925eff);
  box-shadow: 0 10px 25px rgba(74, 112, 255, 0.3);
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}
.brand-text strong { font-size: 1rem; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: 0.76rem; margin-top: 0.25rem; white-space: nowrap; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.desktop-nav a {
  padding: 0.55rem 0.65rem;
  color: #dce9f9;
  border-radius: 0.65rem;
  font-size: 0.92rem;
}
.desktop-nav a:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.055);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.lang-toggle, .menu-toggle, .menu-close {
  border: 1px solid var(--border-strong);
  color: #fff;
  background: rgba(255,255,255,0.045);
  cursor: pointer;
}
.lang-toggle {
  height: 2.5rem;
  min-width: 2.8rem;
  padding: 0 0.72rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.78rem;
}
.lang-toggle:hover, .menu-toggle:hover, .menu-close:hover { background: rgba(255,255,255,0.09); }

.menu-toggle {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.48rem;
  border-radius: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 10px;
  background: #fff;
  margin: 2.5px 0;
}

.mobile-menu {
  position: fixed;
  z-index: 70;
  inset: 0 0 0 auto;
  width: min(380px, 90vw);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  background: rgba(7, 18, 33, 0.98);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 70px rgba(0,0,0,0.36);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { padding: 1rem 1rem 2.5rem; }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.1rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-head div { display: flex; flex-direction: column; }
.mobile-menu-head small { color: var(--muted); margin-top: 0.2rem; }
.menu-close {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
  font-size: 1.55rem;
  line-height: 1;
}
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 1rem 0 0.35rem;
}
.menu-label {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}
.menu-section a {
  color: #e8f1fc;
  padding: 0.67rem 0.72rem;
  border-radius: 0.72rem;
}
.menu-section a:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.06);
}
.menu-backdrop {
  position: fixed;
  z-index: 65;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  background: rgba(0,0,0,0.58);
}
.menu-backdrop.show { opacity: 1; pointer-events: auto; }

.page {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}
.hero { margin-top: 0.3rem; }
.hero-banner {
  display: block;
  width: 100%;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-copy {
  margin-top: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(79,155,255,0.06), rgba(159,108,255,0.055));
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  letter-spacing: -0.04em;
}
.lead {
  max-width: 920px;
  margin: 0.75rem 0 0;
  color: #ccdaec;
  font-size: 1.07rem;
  line-height: 1.7;
}
.hero-actions, .community-actions, .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  color: #f7fbff;
  border: 1px solid var(--border-strong);
  border-radius: 0.82rem;
  background: rgba(255,255,255,0.045);
  font-weight: 750;
}
.btn:hover { text-decoration: none; background: rgba(255,255,255,0.09); }
.btn.primary {
  background: linear-gradient(135deg, #3a92ff, #8759ff);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(89, 86, 255, 0.22);
}
.btn.small { min-height: 2.5rem; padding: 0.63rem 0.86rem; font-size: 0.9rem; }

.section { margin: 3.35rem 0; scroll-margin-top: 90px; }
.compact-section { margin-top: 2rem; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.025em;
}
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #cfe8dc;
  border: 1px solid rgba(59,214,162,0.22);
  background: rgba(59,214,162,0.075);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  white-space: nowrap;
}
.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(59,214,162,0.1);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.status-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
}
.status-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  opacity: 0.14;
}
.status-card.blue::after { background: var(--blue); }
.status-card.purple::after { background: var(--purple); }
.status-card.cyan::after { background: var(--cyan); }
.status-card.green::after { background: var(--green); }
.status-label { color: var(--muted); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.status-card strong { font-size: 1.8rem; margin-top: 0.35rem; }
.status-card small { color: #c7d5e7; margin-top: 0.2rem; }

.feature-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(79,155,255,0.08), rgba(159,108,255,0.065));
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}
.feature-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #318fff, #8c5dff);
  box-shadow: 0 12px 26px rgba(80, 93, 255, 0.25);
}
.direction-panel .feature-icon { background: linear-gradient(135deg, #17b7c9, #4d8cff); }
.feature-content p {
  max-width: 900px;
  color: #cedbed;
  line-height: 1.7;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.chip, .pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-size: 0.77rem;
  color: #ddebfb;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.pill.subtle { color: #b9ccdf; }

.grid {
  display: grid;
  gap: 1rem;
}
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  padding: 1.08rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.08rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.card h3 { margin: 0.55rem 0 0.58rem; }
.card p, .card li { color: #cbd8ea; line-height: 1.62; }
.card-icon { font-size: 1.55rem; }
.feature-card { min-height: 215px; }
.route-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
}
.route-number {
  color: rgba(147,202,255,0.52);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.route-card .text-link { margin-top: auto; padding-top: 0.8rem; }

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 1rem;
}
.community-main {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 100% 0, rgba(159,108,255,0.16), transparent 22rem),
    var(--panel);
}
.community-main h3 { font-size: 1.55rem; margin-top: 0.85rem; }
.community-side { display: grid; gap: 0.8rem; }
.mini-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}
.mini-card h3 { margin: 0; font-size: 1rem; }
.mini-card p { margin: 0.35rem 0 0; font-size: 0.9rem; }
.mini-icon { font-size: 1.35rem; }

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--purple), rgba(255,255,255,0.13));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.4rem;
}
.timeline-marker {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a1527;
  border: 3px solid var(--border-strong);
}
.timeline-item.complete .timeline-marker { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(79,155,255,0.09); }
.timeline-item.next .timeline-marker { border-color: var(--purple); box-shadow: 0 0 0 5px rgba(159,108,255,0.09); }
.timeline-content {
  padding: 0.05rem 0 0.3rem;
}
.timeline-status {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline-content h3 { margin: 0.2rem 0 0.35rem; }
.timeline-content p { color: #cbd8ea; line-height: 1.6; margin: 0; }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.directory-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
}
.directory-group h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.directory-group a {
  padding: 0.35rem 0;
  color: #cfe5ff;
}
.text-link { font-weight: 760; }

.footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.footer p { margin: 0.25rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: 1fr; }
  .community-layout { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { min-height: 64px; padding: 0.65rem 0.8rem; }
  .brand-text small { display: none; }
  .page { width: min(100% - 1rem, 1200px); padding-top: 0.65rem; }
  .hero-banner { border-radius: 0.9rem; }
  .hero-copy { border-radius: 0.95rem; padding: 1rem; }
  .section { margin: 2.5rem 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .status-grid, .directory-grid { grid-template-columns: 1fr; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-icon { width: 3.7rem; height: 3.7rem; }
  .community-main { min-height: 260px; }
  .footer { flex-direction: column; align-items: flex-start; padding-left: 0.25rem; padding-right: 0.25rem; }
}


/* V3: native subpages, support and documentation hub */
.support-nav { color: #ffd18a !important; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.link-button:hover { text-decoration: none; }
.support-menu { border-top: 1px solid rgba(148, 197, 255, 0.10); margin-top: 0.35rem; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-height: 190px;
}
.support-card.donation-alerts {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 87, 137, 0.15), transparent 19rem),
    var(--panel);
}
.support-card.dalink {
  background:
    radial-gradient(circle at 100% 0, rgba(159, 108, 255, 0.15), transparent 19rem),
    var(--panel);
}
.support-icon {
  width: 3.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff5f94, #8c5dff);
  box-shadow: 0 12px 24px rgba(108, 72, 180, 0.20);
}
.support-card h3 { margin-top: 0; }
.support-card p { margin-bottom: 1rem; }
.support-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.subpage { min-height: calc(100vh - 160px); }
.subpage-hero {
  margin-top: 0.8rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 90% 0, rgba(159, 108, 255, 0.13), transparent 22rem),
    linear-gradient(135deg, rgba(79,155,255,0.065), rgba(159,108,255,0.045));
}
.subpage-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
}
.first-section { margin-top: 1.4rem; }
.native-page-card { min-height: 280px; }

.empty-catalog {
  padding: 2.2rem 1.2rem;
  text-align: center;
  border-radius: 1.15rem;
  border: 1px dashed rgba(148, 197, 255, 0.25);
  background: rgba(255,255,255,0.025);
}
.empty-icon { font-size: 2.4rem; }
.empty-catalog h3 { margin: 0.7rem 0 0.4rem; }
.empty-catalog p { color: var(--muted); }

.notice-card {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-left: 3px solid var(--orange);
  border-radius: 0.85rem;
  background: rgba(246, 169, 59, 0.065);
  color: #dce6f4;
}
.notice-card p { margin: 0.35rem 0 0; color: #cbd8ea; line-height: 1.62; }

.steps-list {
  display: grid;
  gap: 0.7rem;
}
.step-row {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.03);
}
.step-row > span {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #3c92ff, #845aff);
}
.step-row p { margin: 0.35rem 0 0; color: #cbd8ea; line-height: 1.55; }

.docs-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.docs-language {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.docs-lang-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.docs-lang-head span { font-size: 1.8rem; }
.docs-lang-head h2 { margin: 0; }
.docs-language > a {
  color: #dbeaff;
  padding: 0.62rem 0.7rem;
  border-radius: 0.72rem;
}
.docs-language > a:hover {
  background: rgba(255,255,255,0.055);
  text-decoration: none;
}

@media (max-width: 850px) {
  .support-grid, .docs-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .support-card { grid-template-columns: 1fr; }
  .subpage-hero { padding: 1rem; border-radius: 0.95rem; }
}
