:root {
  --ink: #0F1419;
  --paper: #E7EBF0;
  --paper-deep: #D8DEE6;
  --muted: #5A6573;
  --line: #C9D0D9;
  --accent: #C45C26;
  --accent-hover: #A84C1E;
  --surface: rgba(255, 255, 255, 0.78);
  --font: "Space Grotesk", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(15, 20, 25, 0.06), transparent 60%),
    linear-gradient(180deg, #EEF1F5 0%, var(--paper) 40%, #DDE3EA 100%);
  z-index: 0;
}

.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 20, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 20, 25, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 88%);
}

.topbar,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(231, 235, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--paper);
}

.logo-mark::before { left: -7px; }
.logo-mark::after { right: -7px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

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

.login {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  padding: 48px 28px 56px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
}

.brand {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.support {
  margin: 0 0 28px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  animation: cta-once 1.2s ease 0.4s 1 both;
}

.btn.primary:hover { background: var(--accent-hover); }

.btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn.ghost:hover {
  background: rgba(15, 20, 25, 0.05);
}

.hero-visual {
  min-height: 420px;
  border-radius: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35)),
    var(--paper-deep);
  overflow: hidden;
}

.route-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
}

.map-grid path {
  fill: none;
  stroke: rgba(15, 20, 25, 0.08);
  stroke-width: 1;
}

.route-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.route-line.base {
  stroke: rgba(15, 20, 25, 0.18);
}

.route-line.active {
  stroke: url(#pathGlow);
  stroke-dasharray: 860;
  stroke-dashoffset: 860;
  animation: draw-path 2.2s ease forwards 0.2s;
}

.pulse-dot {
  filter: drop-shadow(0 0 6px rgba(196, 92, 38, 0.55));
}

.stop rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}

.stop text {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  fill: var(--ink);
}

.stop text.sub {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  fill: var(--muted);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 28px 24px;
  scroll-margin-top: 80px;
}

.section-inner { max-width: 980px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 40px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: none;
}

.steps li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.rail-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
}

.rail-list article {
  padding: 0;
  border: 0;
  background: none;
}

.rail-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.connections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.connections li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.55);
}

.connections strong {
  font-size: 15px;
}

.connections span {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

.cta { padding-bottom: 88px; }

.cta-box {
  padding: 40px 0 0;
  border-top: 2px solid var(--ink);
}

.cta-box .lead { margin-bottom: 22px; }

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

@keyframes cta-once {
  0% { box-shadow: 0 0 0 0 rgba(196, 92, 38, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(196, 92, 38, 0); }
  100% { box-shadow: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  .nav { display: none; }

  .steps,
  .rail-list,
  .connections {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 280px; }
  .route-map { min-height: 280px; }
}
