:root {
  --bg: #f4efe4;
  --bg-strong: #e6dbc3;
  --surface: rgba(255, 250, 242, 0.78);
  --surface-strong: rgba(255, 248, 236, 0.94);
  --ink: #1f1a16;
  --ink-soft: #5d5146;
  --line: rgba(63, 45, 29, 0.12);
  --accent: #0c7967;
  --accent-strong: #084d42;
  --accent-warm: #c46e2f;
  --shadow: 0 24px 80px rgba(34, 26, 20, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: 'Aptos', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 110, 47, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 121, 103, 0.22), transparent 34%),
    linear-gradient(180deg, #f6f1e7 0%, #efe4d2 52%, #f8f2e8 100%);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar,
.hero,
.section,
.footer {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-links a,
.text-link,
.quickstart-card a,
.info-card a {
  color: var(--accent-strong);
  text-decoration: none;
}

.topbar-links a:hover,
.text-link:hover,
.quickstart-card a:hover,
.info-card a:hover {
  text-decoration: underline;
}

.hero,
.section,
.footer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: 40px;
}

.hero::before,
.section::before {
  content: '';
  position: absolute;
  inset: auto auto 0 -12%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 121, 103, 0.14), transparent 66%);
  pointer-events: none;
}

.hero-grid,
.discovery-grid,
.quickstart-grid,
.plan-grid,
.metro-grid,
.flow-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-body,
.section-heading p,
.quickstart-card p,
.info-card p,
.flow-step p,
.footer p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-body {
  max-width: 56ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: #fffdf8;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.button-secondary {
  background: rgba(12, 121, 103, 0.08);
  border-color: rgba(12, 121, 103, 0.18);
}

.button-ghost {
  background: rgba(196, 110, 47, 0.08);
  border-color: rgba(196, 110, 47, 0.18);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.9);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.code-card,
.signal-card,
.info-card,
.quickstart-card,
.plan-card,
.metro-card,
.flow-step {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.code-card,
.signal-card,
.info-card,
.quickstart-card,
.plan-card,
.metro-card {
  padding: 22px;
}

.code-card-title {
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

pre,
code {
  font-family: var(--font-mono);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #171512;
  color: #f9f1e3;
  font-size: 0.9rem;
  line-height: 1.55;
}

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

.signal-stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 121, 103, 0.06);
}

.signal-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
}

.signal-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section {
  padding: 34px;
  margin-top: 22px;
}

.section-alt {
  background: rgba(249, 243, 233, 0.92);
}

.section-accent {
  background: linear-gradient(135deg, rgba(12, 121, 103, 0.1), rgba(196, 110, 47, 0.12));
}

.section-heading {
  margin-bottom: 24px;
}

.discovery-grid,
.quickstart-grid,
.plan-grid,
.metro-grid,
.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coverage-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.metro-card .metro-country {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 121, 103, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metro-card ul,
.plan-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.plan-card.featured {
  border-color: rgba(12, 121, 103, 0.28);
  box-shadow: inset 0 0 0 1px rgba(12, 121, 103, 0.08);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 10px;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 2rem;
}

.plan-price span,
.plan-subtitle {
  color: var(--ink-soft);
}

.flow-step {
  padding: 22px;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  margin-top: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.muted {
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .discovery-grid,
  .quickstart-grid,
  .plan-grid,
  .metro-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .signal-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
  }

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

  h1 {
    font-size: 2.5rem;
  }
}
