:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-deep: #030913;
  --panel: rgba(12, 28, 47, 0.74);
  --panel-strong: rgba(13, 33, 55, 0.94);
  --line: rgba(151, 193, 227, 0.17);
  --line-strong: rgba(103, 226, 196, 0.36);
  --text: #f4f8fc;
  --muted: #97abc0;
  --soft: #c9d7e4;
  --accent: #68e4c4;
  --accent-strong: #30c8a7;
  --accent-blue: #55aefb;
  --danger: #ffbd74;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(6, 16, 29, 0.8), rgba(3, 9, 19, 0.97)),
    radial-gradient(circle at top, #153553 0%, var(--bg) 48%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.page-glow {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow-one {
  top: -12rem;
  left: -9rem;
  background: var(--accent-blue);
}

.page-glow-two {
  right: -13rem;
  bottom: 8rem;
  background: var(--accent);
}

.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(104, 228, 196, 0.4);
  border-radius: 12px;
  background: rgba(104, 228, 196, 0.1);
  box-shadow: inset 0 0 22px rgba(104, 228, 196, 0.08);
}

.brand-mark svg {
  width: 25px;
  fill: rgba(104, 228, 196, 0.1);
  stroke: var(--accent);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(104, 228, 196, 0.09);
}

.hero {
  padding: 92px 0 68px;
  text-align: center;
}

.eyebrow,
.section-kicker,
.selected-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 830px;
  margin: 18px auto 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.75;
}

.route-panel {
  position: relative;
  max-width: 790px;
  margin: 48px auto 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(16, 38, 62, 0.95), rgba(7, 20, 35, 0.88));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  text-align: left;
  backdrop-filter: blur(18px);
}

.route-panel::before {
  position: absolute;
  inset: 0 20% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.58;
}

.route-panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auto-state {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.auto-state.is-active {
  color: var(--accent);
}

.selected-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 116px;
  margin-top: 13px;
  padding: 18px 20px;
  border: 1px solid rgba(125, 172, 208, 0.15);
  border-radius: 18px;
  background: rgba(2, 12, 23, 0.36);
}

.selected-route strong {
  display: block;
  margin: 7px 0 6px;
  font-size: clamp(24px, 4vw, 35px);
  letter-spacing: -0.025em;
}

.selected-meta {
  color: var(--muted);
  font-size: 13px;
}

.countdown-ring {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(10, 29, 47, 0.9);
  font-size: 19px;
  font-weight: 800;
}

.countdown-ring.is-active {
  border-color: var(--line-strong);
  color: var(--accent);
  box-shadow: 0 0 28px rgba(104, 228, 196, 0.13), inset 0 0 18px rgba(104, 228, 196, 0.08);
}

.status-message {
  min-height: 24px;
  margin: 18px 2px 14px;
  color: var(--soft);
  font-size: 14px;
}

.actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:focus-visible,
.route-card:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(85, 174, 251, 0.5);
  outline-offset: 3px;
}

.button-primary {
  color: #031b18;
  background: linear-gradient(135deg, #84f4d7, var(--accent-strong));
  box-shadow: 0 12px 30px rgba(48, 200, 167, 0.2);
}

.button-secondary {
  border-color: rgba(129, 173, 208, 0.2);
  color: var(--text);
  background: rgba(84, 126, 161, 0.08);
}

.button-quiet {
  color: var(--muted);
  background: transparent;
}

.button:disabled,
.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.routes-section {
  padding: 30px 0 62px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  text-align: right;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  background: rgba(11, 27, 45, 0.58);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.route-card:hover,
.route-card.is-selected {
  border-color: rgba(104, 228, 196, 0.32);
  background: rgba(16, 39, 62, 0.82);
  transform: translateY(-2px);
}

.route-number {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(85, 174, 251, 0.24);
  border-radius: 12px;
  color: var(--accent-blue);
  background: rgba(85, 174, 251, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-card-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.route-card-copy strong {
  font-size: 15px;
}

.route-meta {
  color: var(--muted);
  font-size: 12px;
}

.route-arrow {
  color: var(--muted);
  font-size: 19px;
}

.route-card:hover .route-arrow,
.route-card.is-selected .route-arrow {
  color: var(--accent);
}

.notice {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 68px;
  padding: 21px 23px;
  border: 1px solid rgba(255, 189, 116, 0.19);
  border-radius: 17px;
  background: rgba(255, 189, 116, 0.055);
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 189, 116, 0.36);
  border-radius: 50%;
  color: var(--danger);
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice strong {
  color: #ffe0bd;
  font-size: 14px;
}

.notice p {
  margin: 5px 0 0;
  color: #b9a995;
  font-size: 13px;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #6f8498;
  font-size: 12px;
}

.configuration-error {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid rgba(255, 189, 116, 0.25);
  border-radius: 16px;
  color: #ffe0bd;
  background: rgba(255, 189, 116, 0.06);
  text-align: center;
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 20;
  padding: 16px 20px;
  border: 1px solid rgba(255, 189, 116, 0.34);
  border-radius: 12px;
  color: #ffe0bd;
  background: #271d13;
  text-align: center;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 650px);
  }

  .site-header {
    min-height: 74px;
  }

  .header-pill {
    display: none;
  }

  .hero {
    padding: 65px 0 48px;
  }

  .route-panel {
    margin-top: 35px;
    padding: 18px;
    border-radius: 21px;
  }

  .selected-route {
    min-height: 104px;
    padding: 15px;
  }

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

  .button-primary {
    grid-column: 1 / -1;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 440px) {
  .hero h1 {
    font-size: 38px;
  }

  .countdown-ring {
    width: 54px;
    height: 54px;
  }

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

  .button-primary {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

