:root {
  color-scheme: light;
  --accent: #d71920;
  --accent-dark: #9d1117;
  --ink: #171717;
  --muted: #5c636a;
  --line: #d9dde2;
  --surface: #ffffff;
  --soft: #f6f7f8;
  --soft-red: #fff0f1;
  --graphite: #22272d;
  --shadow: 0 18px 48px rgba(23, 23, 23, 0.16);
  --radius: 8px;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "Avenir Next",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--soft);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: inherit;
  text-decoration-color: rgba(215, 25, 32, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 221, 226, 0.75);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(215, 25, 32, 0.22);
}

.nav-links,
.site-footer nav {
  gap: clamp(14px, 3vw, 28px);
  font-weight: 700;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"],
.site-footer a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - 128px));
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 6vw, 84px);
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 7vw, 78px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 46%, rgba(255, 255, 255, 0.54) 100%),
    radial-gradient(circle at 80% 22%, rgba(215, 25, 32, 0.13), rgba(215, 25, 32, 0) 32%),
    linear-gradient(135deg, #ffffff 0%, #f2f4f6 58%, #e9ecef 100%);
}

.hero-copy,
.phone-preview {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.app-label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 8.2vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-title {
  width: min-content;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: #343a40;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-top: 30px;
}

.status-pill {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 18px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(215, 25, 32, 0.25);
}

.text-link {
  font-weight: 800;
}

.hero-rails {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rail {
  position: absolute;
  width: 92vw;
  height: 7px;
  border-radius: 999px;
  transform: rotate(-18deg);
  transform-origin: center;
}

.rail-red {
  right: -22vw;
  bottom: 26%;
  background: linear-gradient(90deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
}

.rail-gray {
  right: -20vw;
  bottom: 31%;
  background: linear-gradient(90deg, transparent, #2d333a 14%, #2d333a 84%, transparent);
  opacity: 0.26;
}

.station-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(23, 23, 23, 0.18);
}

.dot-1 {
  right: 10%;
  bottom: 49%;
}

.dot-2 {
  right: 28%;
  bottom: 38%;
}

.dot-3 {
  right: 49%;
  bottom: 26%;
}

.dot-4 {
  right: 68%;
  bottom: 17%;
}

.train-pill {
  position: absolute;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: var(--radius);
  padding: 0 10px;
  color: white;
  background: var(--graphite);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 23, 23, 0.18);
}

.train-1 {
  right: 21%;
  bottom: 47%;
}

.train-2 {
  right: 57%;
  bottom: 20%;
  background: var(--accent);
}

.phone-preview {
  justify-self: center;
  width: min(100%, 348px);
  border: 10px solid #111418;
  border-radius: 38px;
  padding: 14px;
  background: #f7f8f9;
  box-shadow: var(--shadow);
}

.phone-status,
.app-bar,
.station-board > div:first-child,
.arrival-row,
.info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  min-height: 28px;
  padding: 0 10px;
  color: #111418;
  font-size: 0.8rem;
  font-weight: 800;
}

.phone-indicators {
  width: 48px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111418 0 26%, transparent 26% 37%, #111418 37% 66%, transparent 66% 76%, #111418 76%);
}

.app-bar,
.station-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: white;
}

.app-bar {
  margin-bottom: 12px;
}

.app-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.66rem;
}

.live-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 9px;
  color: white;
  background: #1d7a42;
  font-size: 0.72rem;
  font-weight: 900;
}

.map-preview {
  position: relative;
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    #eef1f4;
  background-size: 34px 34px;
}

.map-line {
  position: absolute;
  left: 46%;
  top: -18%;
  width: 12px;
  height: 138%;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(22deg);
  box-shadow: 17px 0 0 rgba(34, 39, 45, 0.26);
}

.map-station,
.map-train {
  position: absolute;
  z-index: 2;
}

.map-station {
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 5px 14px rgba(23, 23, 23, 0.18);
}

.station-a {
  left: 43%;
  top: 18%;
}

.station-b {
  left: 51%;
  top: 48%;
}

.station-c {
  left: 59%;
  top: 75%;
}

.map-train {
  display: inline-grid;
  min-width: 42px;
  min-height: 30px;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: var(--graphite);
  font-size: 0.76rem;
  font-weight: 900;
}

.train-a {
  left: 54%;
  top: 28%;
}

.train-b {
  left: 34%;
  top: 63%;
  background: var(--accent);
}

.station-board {
  margin-top: 12px;
}

.arrival-row {
  min-height: 36px;
  margin-top: 8px;
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--soft);
  color: #343a40;
  font-size: 0.88rem;
}

.arrival-row strong {
  color: var(--ink);
}

.feature-band,
.info-band,
.page-shell {
  padding-inline: clamp(18px, 5vw, 72px);
}

.feature-band {
  padding-block: clamp(54px, 8vw, 96px);
  background: var(--graphite);
  color: white;
}

.section-heading {
  display: grid;
  max-width: 1100px;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 70px);
  align-items: end;
  margin: 0 auto clamp(26px, 5vw, 48px);
}

.feature-band .eyebrow {
  color: #ffced1;
}

.feature-grid {
  display: grid;
  max-width: 1100px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.feature-card,
.content-panel,
.notice-panel,
.policy-section {
  border: 1px solid rgba(217, 221, 226, 0.85);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  min-height: 170px;
  padding: 22px;
  color: var(--ink);
}

.feature-card p,
.content-panel li,
.notice-panel p,
.policy-section p,
.page-hero p,
.info-band p {
  color: var(--muted);
  line-height: 1.62;
}

.info-band {
  gap: clamp(22px, 8vw, 96px);
  padding-block: clamp(42px, 6vw, 76px);
  background: var(--soft-red);
}

.info-band > div,
.info-band > p {
  flex: 1;
}

.info-band h2 {
  margin-bottom: 0;
}

.info-band p {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding-block: clamp(42px, 8vw, 86px);
}

.page-hero {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.page-hero h1 {
  max-width: 100%;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
}

.page-hero a,
.policy-section a {
  font-weight: 800;
}

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

.content-panel,
.notice-panel,
.policy-section {
  padding: clamp(20px, 4vw, 28px);
}

.content-panel ul {
  margin: 0;
  padding-left: 20px;
}

.content-panel li + li {
  margin-top: 10px;
}

.notice-panel {
  margin-top: 16px;
  background: var(--soft-red);
}

.notice-panel p,
.policy-section p {
  max-width: 760px;
  margin-bottom: 0;
}

.policy-page {
  max-width: 980px;
}

.policy-section + .policy-section {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 5.4rem);
    line-height: 0.96;
  }

  .phone-preview {
    width: min(100%, 330px);
  }

  .map-preview {
    height: 260px;
  }

  .section-heading,
  .feature-grid,
  .content-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 12px;
  }

  .info-band {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .status-pill {
    width: 100%;
    justify-content: center;
  }

  .train-pill,
  .station-dot {
    display: none;
  }

  .phone-preview {
    width: min(100%, 300px);
    border-width: 8px;
    border-radius: 30px;
    padding: 10px;
  }

  .phone-status {
    min-height: 22px;
  }

  .app-bar,
  .station-board {
    padding: 10px;
  }

  .app-bar {
    margin-bottom: 8px;
  }

  .map-preview {
    height: 145px;
  }

  .station-board {
    margin-top: 8px;
  }

  .arrival-row {
    min-height: 28px;
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .feature-card {
    min-height: 0;
  }
}
