:root {
  --ink: #061018;
  --deep-sea: #07313a;
  --black: #02070b;
  --sea: #49b0a1;
  --signal: #f2a63b;
  --hot-signal: #ff5436;
  --cream: #eeebd9;
  --mist: #9eb3b5;
  --rail: #d6d6c2;
  --cyan: #38bdf8;
  --blue: #0ea5e9;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(238, 235, 217, 0.14);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --radius-row: 10px;
  --content: min(1120px, calc(100vw - 40px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 8%, rgba(73, 176, 161, 0.22), transparent 26rem),
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.15), transparent 24rem),
    linear-gradient(145deg, var(--ink), var(--deep-sea) 48%, var(--black));
  color: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34)),
    url("data:image/svg+xml,%3Csvg width='1200' height='280' viewBox='0 0 1200 280' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 210 C160 120 255 230 420 145 C560 72 640 190 800 118 C955 48 1040 108 1200 52 L1200 280 L0 280 Z' fill='%23000000' fill-opacity='.22'/%3E%3Cpath d='M0 212 C160 122 255 232 420 147 C560 74 640 192 800 120 C955 50 1040 110 1200 54' fill='none' stroke='%2349B0A1' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E") bottom center / cover no-repeat;
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--content);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(242, 166, 59, 0.35), 0 10px 30px rgba(242, 166, 59, 0.22);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav {
  gap: 24px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover,
.footer a:hover {
  color: var(--cream);
}

.nav-cta,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 750;
}

.nav-cta {
  padding: 0 16px;
  color: var(--ink);
  background: var(--signal);
}

.section-shell {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 74px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.hero h1,
.section-copy h2,
.fallback-card h2,
.final-cta h2 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 94px);
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 610px;
  color: var(--mist);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 14px 44px rgba(242, 166, 59, 0.22);
}

.button-secondary {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.hero-media {
  min-height: 540px;
  position: relative;
  display: grid;
  place-items: center;
}

.watch-shell {
  position: relative;
  z-index: 3;
  width: min(320px, 75vw);
  aspect-ratio: 0.78;
  padding: 22px;
  border-radius: 72px;
  background: linear-gradient(145deg, #141a1f, #05080b 72%);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.watch-shell::before,
.watch-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 112px;
  height: 42px;
  translate: -50% 0;
  background: linear-gradient(90deg, #10161a, #272f35, #10161a);
  z-index: -1;
}

.watch-shell::before {
  top: -32px;
  border-radius: 26px 26px 10px 10px;
}

.watch-shell::after {
  bottom: -32px;
  border-radius: 10px 10px 26px 26px;
}

.watch-face {
  height: 100%;
  padding: 24px;
  border-radius: 52px;
  background:
    radial-gradient(circle at 68% 18%, rgba(242, 166, 59, 0.20), transparent 8rem),
    linear-gradient(150deg, var(--ink), #0d252b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.watch-top,
.watch-direction,
.phone-head,
.phone-row,
.route-board-head,
.route-leg,
.wide-complication,
.widget-preview div,
.map-caption,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.watch-top {
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
}

.watch-direction {
  min-height: 86px;
  padding: 10px 14px;
  border-radius: var(--radius-row);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-direction span,
.wide-complication span,
.round-complication span,
.route-label,
.card-label {
  color: var(--signal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.watch-direction strong {
  margin-left: auto;
  font-size: 56px;
  line-height: 0.9;
}

.watch-direction small {
  color: var(--mist);
  font-size: 13px;
  font-weight: 800;
}

.watch-direction.muted {
  min-height: 68px;
  opacity: 0.78;
}

.watch-direction.muted strong {
  font-size: 36px;
}

.watch-face p {
  margin: 0;
  color: var(--mist);
  font-size: 12px;
}

.phone-shell {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: min(270px, 48vw);
  padding: 12px;
  border-radius: 42px;
  background: #080d11;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(4deg);
}

.phone-screen {
  min-height: 500px;
  padding: 26px 16px;
  border-radius: 32px;
  background: linear-gradient(160deg, #061018, #07313a 60%, #02070b);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-head {
  align-items: flex-start;
  flex-direction: column;
}

.phone-head span,
.phone-row span,
.route-board-head span {
  color: var(--mist);
  font-size: 12px;
  font-weight: 700;
}

.phone-head strong {
  font-size: 24px;
}

.journey-card,
.glance-card,
.route-board,
.fallback-card,
.no-service-preview {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}

.journey-card.compact {
  margin-top: 20px;
  padding: 14px;
}

.journey-card strong {
  display: block;
  margin-top: 5px;
  font-size: 19px;
}

.journey-card p,
.glance-card p,
.route-leg p,
.fallback-card p,
.final-cta p {
  margin: 5px 0 0;
  color: var(--mist);
}

.mini-line {
  height: 82px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.mini-line::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  background: rgba(214, 214, 194, 0.26);
  border-radius: 99px;
}

.mini-line span {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(214, 214, 194, 0.5);
  z-index: 1;
}

.mini-line .done {
  background: var(--sea);
}

.mini-line .active {
  width: 24px;
  height: 24px;
  background: var(--signal);
  box-shadow: 0 0 0 8px rgba(242, 166, 59, 0.16);
}

.phone-row {
  padding: 10px 0;
  border-top: 1px solid rgba(238, 235, 217, 0.10);
  font-size: 13px;
}

.phone-row strong {
  color: var(--cream);
}

.wrist-section,
.journey-section,
.alarm-section,
.wayfinding-section,
.fallback-section,
.final-cta {
  padding: 92px 0;
}

.section-copy h2,
.fallback-card h2,
.final-cta h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-copy p {
  margin: 18px 0 0;
  color: var(--mist);
  font-size: 18px;
  max-width: 720px;
}

.narrow {
  max-width: 780px;
}

.glance-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 0.82fr 1.05fr 1.13fr;
  gap: 16px;
}

.glance-card {
  min-height: 274px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.round-complication {
  align-self: center;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  grid-template-rows: 22px 70px 24px;
  background: #04090d;
  border: 8px solid #12191f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.round-complication strong {
  color: var(--cream);
  font-size: 66px;
  line-height: 0.85;
}

.round-complication small {
  color: var(--mist);
  font-weight: 800;
}

.wide-complication {
  align-self: stretch;
  min-height: 92px;
  padding: 16px;
  border-radius: 26px;
  background: #04090d;
  border: 8px solid #12191f;
}

.wide-complication div {
  width: 50%;
}

.wide-complication strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  line-height: 1;
}

.widget-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--ink);
}

.widget-preview div {
  padding: 12px;
  border-radius: 12px;
  background: #214f52;
}

.widget-preview span {
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
}

.widget-preview strong {
  color: var(--cream);
  font-size: 25px;
}

.journey-panel {
  padding: clamp(24px, 5vw, 52px);
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(242, 166, 59, 0.07));
}

.route-board {
  padding: 18px;
  box-shadow: var(--shadow);
}

.route-board-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(238, 235, 217, 0.12);
}

.route-board-head strong {
  font-size: 18px;
}

.route-leg {
  padding: 14px 0;
  border-bottom: 1px solid rgba(238, 235, 217, 0.09);
}

.route-leg:last-child {
  border-bottom: 0;
}

.route-leg.active {
  margin: 0 -8px;
  padding: 14px 8px;
  border-radius: var(--radius-row);
  background: rgba(242, 166, 59, 0.11);
}

.leg-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(73, 176, 161, 0.16);
  color: var(--cream);
  font-size: 12px;
  font-weight: 850;
}

.route-leg.active .leg-icon {
  background: var(--signal);
  color: var(--ink);
}

.route-leg strong {
  font-size: 17px;
}

.route-leg time {
  margin-left: auto;
  color: var(--cream);
  font-weight: 850;
}

.alarm-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.alarm-preview {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 34%, rgba(242, 166, 59, 0.20), transparent 12rem),
    rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
}

.alarm-ring {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.alarm-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
}

.alarm-track,
.alarm-progress {
  fill: none;
  stroke-width: 12;
}

.alarm-track {
  stroke: rgba(214, 214, 194, 0.16);
}

.alarm-progress {
  stroke: var(--signal);
  stroke-linecap: round;
  stroke-dasharray: 318 428;
  filter: drop-shadow(0 0 14px rgba(242, 166, 59, 0.45));
}

.alarm-ring div {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #04090d;
  border: 8px solid #12191f;
  text-align: center;
}

.alarm-ring span,
.alarm-ring small {
  color: var(--mist);
  font-size: 13px;
  font-weight: 800;
}

.alarm-ring strong {
  margin: 4px 0;
  color: var(--cream);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.95;
}

.alarm-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(238, 235, 217, 0.10);
}

.alarm-row span {
  color: var(--mist);
  font-weight: 700;
}

.alarm-row strong {
  color: var(--cream);
}

.alarm-row.active strong {
  color: var(--signal);
}

.line-map {
  position: relative;
  margin-top: 42px;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 78% 20%, rgba(73, 176, 161, 0.25), transparent 18rem);
}

.line-map svg {
  width: 100%;
  min-height: 220px;
  display: block;
  margin-top: 42px;
}

.shore {
  fill: none;
  stroke: rgba(73, 176, 161, 0.22);
  stroke-width: 18;
  stroke-linecap: round;
}

.rail {
  fill: none;
  stroke: var(--rail);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1 18;
}

.station {
  fill: var(--rail);
}

.station.live {
  fill: var(--signal);
  filter: drop-shadow(0 0 16px rgba(242, 166, 59, 0.65));
}

.station.home {
  fill: var(--sea);
}

.landmark {
  position: absolute;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(6, 16, 24, 0.72);
  border: 1px solid rgba(238, 235, 217, 0.12);
  font-size: 12px;
  font-weight: 750;
}

.harbour { left: 7%; top: 24%; }
.mana { left: 35%; top: 32%; color: var(--signal); }
.tunnels { left: 46%; bottom: 29%; }
.coast { right: 18%; top: 34%; }
.kapiti { right: 5%; top: 14%; color: var(--sea); }

.map-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(238, 235, 217, 0.12);
}

.map-caption span {
  color: var(--mist);
}

.fallback-card {
  padding: clamp(22px, 5vw, 44px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.62fr);
  gap: 28px;
  align-items: center;
}

.no-service-preview {
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 84, 54, 0.10), rgba(255, 255, 255, 0.06)),
    var(--surface);
}

.no-service-preview span {
  color: var(--hot-signal);
  font-size: 13px;
  font-weight: 850;
}

.no-service-preview strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
}

.final-cta {
  padding-top: 74px;
  text-align: center;
}

.final-cta h2,
.final-cta p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.final-cta p {
  color: var(--mist);
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 26px;
}

.footer {
  width: var(--content);
  margin: 0 auto;
  padding: 32px 0 46px;
  color: var(--mist);
  border-top: 1px solid rgba(238, 235, 217, 0.10);
  font-size: 13px;
}

.footer a {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .journey-panel,
  .alarm-panel,
  .fallback-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-media {
    min-height: 500px;
  }

  .phone-shell {
    right: 5%;
  }

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

@media (max-width: 620px) {
  :root {
    --content: min(1120px, calc(100vw - 28px));
  }

  .section-shell,
  .site-header,
  .footer {
    width: calc(100vw - 28px);
    max-width: 1120px;
  }

  .site-header {
    padding: 14px 0;
  }

  .brand {
    font-size: 17px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 52px);
  }

  .hero-copy,
  .section-copy,
  .hero h1,
  .hero-copy p,
  .section-copy p {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .hero-copy p,
  .section-copy p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-media {
    min-height: 420px;
    overflow: hidden;
    margin-left: -14px;
    margin-right: -14px;
  }

  .watch-shell {
    width: 250px;
    border-radius: 58px;
    padding: 18px;
    margin-right: 40px;
  }

  .watch-face {
    border-radius: 42px;
    padding: 20px;
  }

  .watch-direction {
    min-height: 74px;
  }

  .watch-direction strong {
    font-size: 44px;
  }

  .phone-shell {
    width: 190px;
    right: 18px;
    bottom: 12px;
    padding: 9px;
    border-radius: 32px;
  }

  .phone-screen {
    min-height: 366px;
    padding: 18px 12px;
    border-radius: 24px;
  }

  .phone-head strong {
    font-size: 18px;
  }

  .journey-card.compact,
  .phone-row {
    font-size: 12px;
  }

  .mini-line {
    height: 56px;
  }

  .wrist-section,
  .journey-section,
  .alarm-section,
  .wayfinding-section,
  .fallback-section,
  .final-cta {
    padding: 58px 0;
  }

  .glance-card {
    min-height: 238px;
  }

  .journey-panel,
  .fallback-card,
  .line-map {
    padding: 18px;
  }

  .line-map {
    min-height: 360px;
  }

  .line-map svg {
    margin-top: 76px;
    transform: scale(1.18);
    transform-origin: center;
  }

  .landmark {
    font-size: 11px;
  }

  .harbour { left: 6%; top: 18%; }
  .mana { left: 28%; top: 30%; }
  .tunnels { left: 40%; bottom: 34%; }
  .coast { right: 17%; top: 29%; }
  .kapiti { right: 6%; top: 16%; }

  .map-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: block;
  }

  .map-caption strong {
    display: block;
    margin-top: 4px;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
