:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #121826;
  --muted: #4f5b72;
  --line: #d7dfeb;
  --primary: #0d1f3a;
  --secondary: #1258d7;
  --accent: #0fa37f;
  --shadow: 0 12px 40px rgba(8, 27, 62, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafd 0%, #f6f8fb 60%, #f2f5fa 100%);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(248, 250, 253, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.brand { font-weight: 800; letter-spacing: 0.3px; color: var(--primary); }

main { padding: 20px clamp(16px, 4vw, 56px) 80px; max-width: 1220px; margin: 0 auto; }

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.tag {
  display: inline-flex;
  background: rgba(18, 88, 215, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(18, 88, 215, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.hero h1 {
  margin: 12px 0 10px;
  line-height: 1.15;
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
}
.subheadline { color: var(--muted); max-width: 78ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 3px solid #8bb6ff; outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--line); }

.route-card {
  border: 1px dashed #9eb3d8;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(90deg, #f9fbff, #f4f8ff);
}
.route-title { margin: 0 0 12px; font-weight: 700; color: #2e466f; font-size: 0.92rem; }
.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  gap: 10px;
  border-top: 3px solid #9db8ea;
  padding-top: 14px;
}
.station { font-size: 0.85rem; font-weight: 600; color: #2d4266; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 5px rgba(18, 88, 215, 0.18);
}
.parcel {
  position: absolute;
  top: -12px;
  left: 8%;
  font-size: 1.1rem;
  animation: moveParcel 8s linear infinite;
}

@keyframes moveParcel {
  0% { left: 8%; }
  100% { left: 86%; }
}

.section { margin-top: 36px; }
.section h2 {
  margin: 0 0 10px;
  line-height: 1.2;
  font-size: clamp(1.4rem, 2.7vw, 2.15rem);
}
.lead { color: var(--primary); font-weight: 600; }
.small { color: var(--muted); font-size: 0.92rem; }

.grid { display: grid; gap: 14px; }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; margin-bottom: 8px; }
.card.highlight {
  border-color: rgba(15, 163, 127, 0.45);
  box-shadow: 0 12px 36px rgba(15, 163, 127, 0.12);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #edf1f7;
  font-size: 0.95rem;
}
thead th { color: var(--primary); background: #f9fbff; }

timeline, .timeline { padding-left: 18px; }
.timeline li { margin-bottom: 9px; }

.fare-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.asset-placeholder {
  border: 1px dashed #b5c2d8;
  border-radius: 12px;
  padding: 14px;
  background: #fafcff;
}

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

.model-diagram { font-size: 1.02rem; }
.model-diagram hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

.flywheel {
  border-left: 4px solid var(--secondary);
  background: linear-gradient(90deg, rgba(18, 88, 215, 0.06), rgba(15, 163, 127, 0.06));
}

.founder-card {
  border-left: 4px solid var(--accent);
}

.final {
  text-align: center;
  padding: 30px;
  background: var(--primary);
  color: #eef4ff;
  border-radius: 20px;
}
.final .tag { background: rgba(255,255,255,0.12); color: #e3eeff; border-color: rgba(255,255,255,0.2); }
.status-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 0.84rem;
}

footer {
  text-align: center;
  color: #5f6b83;
  font-size: 0.88rem;
  padding: 18px 12px 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid.two, .grid.three, .fare-split { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  main { padding: 14px 14px 64px; }
  .hero { border-radius: 18px; padding: 18px; }
  .route-line {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 3px solid #9db8ea;
    gap: 8px;
    padding-top: 0;
    padding-left: 12px;
  }
  .dot { margin-left: -18px; }
  .parcel { animation: none; position: static; }
  .grid.five { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
