/* HK Transit 3D — companion site. Dark, neon-transit aesthetic that echoes the
   map: near-black blue, glowing line accents, characterful display type. */

:root {
  --bg: #06090f;
  --bg2: #0a0e17;
  --panel: #10141e;
  --text: #eef1f6;
  --muted: #a7b0c0;
  --faint: #6b7486;
  --accent: #5eb7e8;
  --green: #57b884;
  --gold: #d3a625;
  --red: #e2544a;
  --border: rgba(255, 255, 255, 0.09);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #12203a 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(94, 183, 232, 0.32); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(6, 9, 15, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #5eb7e8, #57b884, #d3a625, #e2544a, #5eb7e8);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

@keyframes shimmer { to { background-position: 260% center; } }

.langs button {
  font-family: var(--display);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 5px 11px;
  margin-left: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.langs button:hover { background: rgba(255, 255, 255, 0.12); }

.langs button.on {
  background: #22506e;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(94, 183, 232, 0.4);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  animation: slowzoom 26s ease-in-out infinite alternate;
}

@keyframes slowzoom { to { transform: scale(1.09); } }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,15,0.55) 0%, rgba(6,9,15,0.35) 40%, rgba(6,9,15,0.9) 100%),
    radial-gradient(900px 500px at 22% 62%, rgba(6,9,15,0.55), transparent 70%);
}

/* streaming transit-line accents behind the text */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.hero-lines span {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c) 45%, #fff 50%, var(--c) 55%, transparent);
  filter: drop-shadow(0 0 6px var(--c));
  animation: stream 7s linear infinite;
  opacity: 0.75;
}

.hero-lines span:nth-child(1) { top: 26%; animation-duration: 8.5s; }
.hero-lines span:nth-child(2) { top: 39%; animation-duration: 6.5s; animation-delay: -2s; }
.hero-lines span:nth-child(3) { top: 54%; animation-duration: 9.5s; animation-delay: -4s; }
.hero-lines span:nth-child(4) { top: 63%; animation-duration: 7.5s; animation-delay: -1s; }
.hero-lines span:nth-child(5) { top: 72%; animation-duration: 10.5s; animation-delay: -5s; }
.hero-lines span:nth-child(6) { top: 84%; animation-duration: 8s; animation-delay: -3s; }

@keyframes stream {
  from { transform: translateX(-40%); }
  to   { transform: translateX(40%); }
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 14px;
  padding-left: 3px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 108px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin: 0 0 20px;
  text-shadow: 0 0 44px rgba(94, 183, 232, 0.4);
}

.tagline {
  font-size: clamp(17px, 2.5vw, 23px);
  font-weight: 300;
  color: #d3dae6;
  margin: 0 0 38px;
  max-width: 620px;
}

/* ---------- the big CTA (the point of the page) ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  padding: 20px 34px;
  border-radius: 999px;
  color: #eaf6ff;
  text-decoration: none;
  background: linear-gradient(100deg, #1d5f86, #2a4e8f);
  border: 1.5px solid rgba(126, 200, 245, 0.8);
  box-shadow: 0 0 0 rgba(94, 183, 232, 0.6), 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: ctapulse 2.6s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 44px rgba(94, 183, 232, 0.8), 0 14px 46px rgba(0, 0, 0, 0.55);
  animation-play-state: paused;
}

@keyframes ctapulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 183, 232, 0.45), 0 10px 40px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(94, 183, 232, 0), 0 10px 40px rgba(0,0,0,0.5); }
}

.cta-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6bf0a0;
  box-shadow: 0 0 12px #6bf0a0;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

.cta-arrow { transition: transform 0.18s ease; }
.cta:hover .cta-arrow { transform: translateX(6px); }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
}

.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrolldot 1.6s ease-in-out infinite;
}

@keyframes scrolldot { to { transform: translateY(14px); opacity: 0; } }

/* ---------- sections ---------- */

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
}

section { margin: 92px 0; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  line-height: 1.1;
}

h2::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
  box-shadow: 0 0 12px var(--accent);
}

#history h2::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }

p { color: var(--muted); }

/* features */

.features {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.features li {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.features li:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 183, 232, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.features li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 11px;
  box-shadow: 0 0 8px var(--accent);
}

.features li:nth-child(2)::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.features li:nth-child(3)::before { background: var(--gold);  box-shadow: 0 0 8px var(--gold); }
.features li:nth-child(4)::before { background: var(--red);   box-shadow: 0 0 8px var(--red); }
.features li:nth-child(5)::before { background: #b06fd0;      box-shadow: 0 0 8px #b06fd0; }
.features li:nth-child(6)::before { background: #e08a3c;      box-shadow: 0 0 8px #e08a3c; }

/* timeline */

.timeline {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  border-left: 2px solid rgba(94, 183, 232, 0.3);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 30px;
  color: var(--muted);
  font-size: 15.5px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(94, 183, 232, 0.6);
  transition: transform 0.18s ease;
}

.timeline li:hover::before { transform: scale(1.35); }

.timeline b {
  font-family: var(--display);
  display: block;
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

/* closing CTA band */

#cta-band {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(94,183,232,0.14), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

#cta-band h2 {
  justify-content: center;
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 28px;
}

#cta-band h2::before { display: none; }

.cta.big {
  font-size: clamp(20px, 3vw, 28px);
  padding: 24px 44px;
}

/* footer */

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 24px 52px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

footer p { font-size: 13.5px; color: var(--muted); }
footer .fine { font-size: 11.5px; color: var(--faint); margin-top: 8px; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
