:root {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e2e8f0;
  background-color: #020617;
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.8);
  --card: rgba(15, 23, 42, 0.85);
  --outline: rgba(148, 163, 184, 0.25);
  --accent: #7dd3fc;
  --accent-strong: #0ea5e9;
  --accent-two: #a855f7;
  --gradient: linear-gradient(120deg, rgba(14, 165, 233, 0.2), rgba(168, 85, 247, 0.2));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 5vw, 2.5rem) 3rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.primary-cta,
.secondary-cta {
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.primary-cta {
  color: #020617;
  background: linear-gradient(120deg, #7dd3fc, #38bdf8 40%, #22d3ee);
  border: none;
}

.secondary-cta {
  color: var(--text);
  border: 1px solid var(--outline);
  background: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0.5rem 0 1rem;
}

.hero .lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  justify-content: center;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.hero-metrics article {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.metric {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.visualization {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.visualization figure {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 1.5rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.5);
}

.visualization figcaption {
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.visualization ul {
  padding-left: 1rem;
  color: var(--muted);
}

.viz-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-weight: 500;
}

.viz-cta .link {
  color: var(--text);
  text-decoration: underline;
}

.feature-grid {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-grid article {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.feature-grid h3 {
  margin-top: 0;
}

.timeline-preview {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 2rem;
  align-items: start;
}

.timeline-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-flex;
  margin-right: 0.35rem;
}

.dot.pr { background: #34d399; }
.dot.mainland { background: #60a5fa; }
.dot.intl { background: #fbbf24; }

.timeline-track-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 0));
  padding-bottom: 1rem;
}

.timeline-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem clamp(1.5rem, 6vw, 4rem) 1.5rem 0;
}

.timeline-track::-webkit-scrollbar {
  height: 6px;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.timeline-card {
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-card header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline-card .route {
  font-size: 1.2rem;
  font-weight: 600;
}

.timeline-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-card ul li + li {
  margin-top: 0.35rem;
}

.timeline-card .badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

.badge.pr { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.badge.mainland { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.badge.intl { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

.timeline-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
}

.timeline-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  cursor: pointer;
}

.timeline-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(60px, 12vw, 160px);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.85) 70%, rgba(2, 6, 23, 1) 100%);
}

.security {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 1.5rem;
  padding: 2rem;
}

.security ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.security ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.security ul li::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.25);
}

.security ul li:last-child {
  margin-bottom: 0;
}

.cta {
  margin-top: 4.5rem;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 2rem;
  border: 1px solid var(--outline);
  background: var(--gradient);
  backdrop-filter: blur(6px);
}

.cta h2 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
  }

  .timeline-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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