:root {
  color-scheme: dark;
  --bg: #0b091d;
  --panel: rgba(29, 24, 64, 0.84);
  --panel-strong: #211b4c;
  --text: #fbf8ff;
  --muted: #c9c3e7;
  --violet: #a88cff;
  --cyan: #63e6ff;
  --gold: #ffd568;
  --line: rgba(188, 170, 255, 0.24);
  --shadow: 0 28px 80px rgba(2, 1, 12, 0.44);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(106, 75, 216, 0.32), transparent 30rem),
    radial-gradient(circle at 88% 34%, rgba(35, 185, 213, 0.18), transparent 30rem),
    linear-gradient(155deg, #0b091d 0%, #120f2c 58%, #091624 100%);
  line-height: 1.65;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #b9f5ff;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: #281e55;
  background: linear-gradient(145deg, #fff3a6, var(--gold));
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(255, 213, 104, 0.18);
}

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

.nav a {
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(168, 140, 255, 0.15);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: 650px;
  padding: 5.5rem 0;
}

.home-hero h1,
.page-hero h1,
.error-page h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 6vw, 5.2rem);
}

.eyebrow,
.feature-number {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 63ch;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  color: #191238;
  background: linear-gradient(135deg, var(--gold), #fff3b8);
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px rgba(255, 213, 104, 0.14);
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  color: #191238;
  filter: brightness(1.06);
}

.text-link {
  font-weight: 800;
}

.route-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 213, 104, 0.18), transparent 10rem),
    radial-gradient(circle at 78% 74%, rgba(99, 230, 255, 0.18), transparent 12rem),
    linear-gradient(145deg, rgba(50, 38, 108, 0.94), rgba(17, 35, 60, 0.94));
  border: 1px solid rgba(197, 182, 255, 0.28);
  border-radius: 2.25rem;
  box-shadow: var(--shadow);
}

.route-card::before,
.route-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.route-card::before {
  inset: 4rem 6rem 5rem 2rem;
}

.route-card::after {
  inset: 9rem 1.5rem 1.5rem 8rem;
}

.route-node {
  position: absolute;
  z-index: 2;
  padding: 0.72rem 1rem;
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(5, 3, 20, 0.34);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.route-node-start {
  left: 9%;
  top: 67%;
}

.route-node-middle {
  left: 42%;
  top: 39%;
}

.route-node-goal {
  right: 9%;
  top: 16%;
  color: #191238;
  background: var(--gold);
}

.route-line {
  position: absolute;
  z-index: 1;
  height: 7px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(99, 230, 255, 0.35);
  transform-origin: left center;
}

.route-line-one {
  left: 23%;
  top: 68%;
  width: 34%;
  transform: rotate(-34deg);
}

.route-line-two {
  left: 57%;
  top: 42%;
  width: 30%;
  transform: rotate(-30deg);
}

.route-star {
  position: absolute;
  color: var(--gold);
  font-size: 1.8rem;
  filter: drop-shadow(0 0 12px rgba(255, 213, 104, 0.5));
}

.route-star-one {
  left: 15%;
  top: 16%;
}

.route-star-two {
  right: 18%;
  bottom: 17%;
}

.route-star-three {
  left: 49%;
  bottom: 9%;
}

.feature-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 5rem;
}

.feature-card,
.content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-card {
  padding: 1.5rem;
}

.feature-card h2,
.support-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.feature-card p:last-child,
.support-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 3rem;
}

.policy-content {
  max-width: 900px;
  margin-bottom: 5rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.policy-content section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content li + li {
  margin-top: 0.5rem;
}

.support-grid {
  grid-template-columns: repeat(2, 1fr);
}

.support-card {
  padding: clamp(1.4rem, 4vw, 2.3rem);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 2.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: start;
  padding: 2rem;
}

.error-page h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.error-page p:not(.eyebrow) {
  margin: 1rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 0;
  }

  .route-card {
    min-height: 370px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 1.2rem, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    min-width: max-content;
    text-align: center;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .route-card {
    min-height: 320px;
    border-radius: 1.5rem;
  }

  .route-node {
    padding: 0.6rem 0.75rem;
    font-size: 0.68rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

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