:root {
  --bg-night: #07131b;
  --bg-top: #0d2434;
  --bg-bottom: #eef6f6;
  --paper: rgba(246, 252, 253, 0.93);
  --paper-strong: rgba(255, 255, 255, 0.98);
  --ink: #11222c;
  --ink-soft: #506571;
  --ice-deep: #0e7da5;
  --moss: #2ea879;
  --accent: #f2b66b;
  --danger: #c94f4f;
  --warning: #d9952e;
  --good: #2d956d;
  --line: rgba(17, 34, 44, 0.1);
  --shadow: 0 24px 60px rgba(6, 28, 42, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
  --font-display: "Avenir Next", "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-serif: "Iowan Old Style", "Baskerville", "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(136, 217, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(46, 168, 121, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-night) 0%, var(--bg-top) 18%, #d9eef2 62%, var(--bg-bottom) 100%);
  font: 16px/1.7 var(--font-body);
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 19, 27, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f4fbff;
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand span {
  font-size: 13px;
  color: rgba(244, 251, 255, 0.72);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #106f92, #89dafc);
  color: white;
  font: 800 15px/1 var(--font-display);
  box-shadow: 0 12px 26px rgba(15, 125, 165, 0.32);
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-list a {
  text-decoration: none;
  color: rgba(244, 251, 255, 0.84);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero,
section {
  padding: 22px 0;
}

.hero {
  padding-top: 34px;
}

.hero-grid,
.nav-layout,
.checks-layout {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.9fr);
}

.hero-side {
  display: grid;
  gap: 20px;
}

.card,
.hero-card {
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.hero-card,
.hero-visual,
.gate-card,
.map-card,
.route-card,
.nav-stop,
.checks-layout .card {
  padding: 24px;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -48px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 217, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.eyebrow,
.section-chip,
.mini-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow,
.section-chip,
.mini-eyebrow {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 125, 165, 0.12);
  color: var(--ice-deep);
  font-size: 13px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--ice-deep);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
}

.lead,
.visual-copy p,
.section-head p,
.gate-copy p,
.map-head p,
.nav-stop p,
.route-card p,
.source-item p,
.tips-list li {
  color: var(--ink-soft);
}

.lead {
  max-width: 56ch;
  font-size: 18px;
}

.hero-metrics,
.route-meta,
.summary-strip,
.map-overview,
.map-legend,
.source-tags,
.stop-links,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics,
.button-row {
  margin-top: 20px;
}

.metric,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(17, 34, 44, 0.08);
}

.metric {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

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

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  font: 700 14px/1.2 var(--font-body);
  color: white;
  background: linear-gradient(135deg, #0b6f94, #33a8cd);
  box-shadow: 0 12px 26px rgba(14, 125, 165, 0.22);
}

.button-link.secondary {
  color: var(--ice-deep);
  background: rgba(14, 125, 165, 0.08);
  box-shadow: none;
  border: 1px solid rgba(14, 125, 165, 0.12);
}

.button-link.ghost {
  color: var(--ink);
  background: rgba(17, 34, 44, 0.06);
  box-shadow: none;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.summary-card {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 34, 44, 0.08);
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.summary-card p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-good {
  color: var(--good);
  background: rgba(45, 149, 109, 0.12);
}

.status-warning {
  color: var(--warning);
  background: rgba(217, 149, 46, 0.14);
}

.status-danger {
  color: var(--danger);
  background: rgba(201, 79, 79, 0.12);
}

.status-muted {
  color: var(--ink-soft);
  background: rgba(80, 101, 113, 0.12);
}

.gate-card {
  display: grid;
  gap: 14px;
}

.gate-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.hero-visual {
  overflow: hidden;
}

.visual-copy {
  max-width: 38ch;
}

.iceland-graphic {
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.island-shape {
  fill: rgba(17, 34, 44, 0.86);
  stroke: rgba(136, 217, 255, 0.3);
  stroke-width: 2;
}

.route-arc {
  fill: none;
  stroke: url(#routeGlow);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 2 18;
}

.map-dot {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 3;
}

.map-dot-start {
  fill: #7fd9ff;
}

.map-dot-mid {
  fill: #65e0b0;
}

.map-dot-end {
  fill: #f3bb75;
}

.iceland-graphic text {
  fill: #e8f8ff;
  font: 600 15px/1 var(--font-display);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 48ch;
}

.map-card {
  padding-bottom: 18px;
}

.map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.map-legend i {
  display: inline-block;
  width: 28px;
  height: 0;
  border-top: 4px solid #0b7fa6;
  border-radius: 999px;
}

.map-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.overview-card {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(240, 250, 252, 0.78));
  border: 1px solid rgba(17, 34, 44, 0.08);
}

.overview-card strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.overview-card p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.overview-meta {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 125, 165, 0.1);
  color: var(--ice-deep);
  font-size: 12px;
  font-weight: 700;
}

.map-wrapper {
  position: relative;
  margin-top: 18px;
}

#map {
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 34, 44, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(136, 217, 255, 0.32), transparent 24%),
    linear-gradient(180deg, #0f2532 0%, #193f56 34%, #d2edf2 100%);
}

.map-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(9, 24, 36, 0.75);
  color: rgba(244, 251, 255, 0.92);
  font-size: 13px;
}

.route-label-marker {
  background: transparent;
  border: 0;
}

.route-label-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
  background: rgba(7, 19, 27, 0.86);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(7, 19, 27, 0.24);
  white-space: nowrap;
}

.route-label-index {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #89dafc, #2ea879);
  color: #07202d;
  font: 800 12px/1 var(--font-display);
}

.route-label-name {
  font: 700 12px/1.2 var(--font-display);
}

.nav-layout,
.checks-layout {
  grid-template-columns: 1fr;
}

.route-card-main {
  background: var(--paper-strong);
}

.route-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.nav-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.nav-stop {
  display: grid;
  gap: 14px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.nav-stop-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.nav-stop-title {
  display: flex;
  gap: 14px;
}

.stop-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b6f94, #33a8cd);
  color: white;
  font: 800 15px/1 var(--font-display);
  flex: 0 0 38px;
}

.stop-links {
  gap: 10px;
}

.notes-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.source-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 34, 44, 0.08);
}

.source-item a {
  color: var(--ice-deep);
  font-weight: 700;
  text-decoration: none;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tips-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 34, 44, 0.08);
}

.footer {
  margin-top: 28px;
  padding: 24px 0 40px;
  color: rgba(244, 251, 255, 0.82);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar-inner,
  .section-head,
  .map-head,
  .route-card-top,
  .nav-stop-head,
  .source-item,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }

  .anchor-list {
    justify-content: start;
  }

  .summary-strip,
  .map-overview {
    grid-template-columns: 1fr;
  }

  #map {
    height: 420px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero-card,
  .hero-visual,
  .gate-card,
  .map-card,
  .route-card,
  .nav-stop,
  .checks-layout .card {
    padding: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .summary-card,
  .overview-card {
    padding: 13px 14px;
  }

  #map {
    height: 350px;
  }
}
