:root {
  --tour-bg: #efe4d0;
  --tour-bg-deep: #f7f0e4;
  --tour-ink: #132723;
  --tour-muted: #5f6f68;
  --tour-line: rgba(19, 39, 35, 0.12);
  --tour-card: rgba(255, 252, 247, 0.76);
  --tour-card-strong: rgba(255, 251, 245, 0.92);
  --tour-shadow: 0 24px 80px rgba(19, 39, 35, 0.12);
  --tour-primary: #0f6a56;
  --tour-primary-strong: #0c5242;
  --tour-warm: #d98528;
  --tour-cool: #77c8cb;
  --tour-topbar: rgba(255, 250, 244, 0.48);
  color-scheme: light;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --tour-bg: #0b1618;
  --tour-bg-deep: #101f23;
  --tour-ink: #edf7f4;
  --tour-muted: #94ada6;
  --tour-line: rgba(237, 247, 244, 0.09);
  --tour-card: rgba(14, 27, 30, 0.76);
  --tour-card-strong: rgba(17, 31, 35, 0.92);
  --tour-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --tour-primary: #6be1c6;
  --tour-primary-strong: #43c8a8;
  --tour-warm: #ffb356;
  --tour-cool: #7be3ea;
  --tour-topbar: rgba(11, 21, 24, 0.54);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --tour-bg: #0b1618;
    --tour-bg-deep: #101f23;
    --tour-ink: #edf7f4;
    --tour-muted: #94ada6;
    --tour-line: rgba(237, 247, 244, 0.09);
    --tour-card: rgba(14, 27, 30, 0.76);
    --tour-card-strong: rgba(17, 31, 35, 0.92);
    --tour-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    --tour-primary: #6be1c6;
    --tour-primary-strong: #43c8a8;
    --tour-warm: #ffb356;
    --tour-cool: #7be3ea;
    --tour-topbar: rgba(11, 21, 24, 0.54);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  color: var(--tour-ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(217, 133, 40, 0.22), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(119, 200, 203, 0.2), transparent 20%),
    linear-gradient(180deg, var(--tour-bg-deep) 0%, var(--tour-bg) 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

.tour-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.tour-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.tour-topbar,
.tour-hero-copy,
.tour-hero-panel,
.tour-story-card,
.tour-stage-main,
.tour-stage-metric,
.tour-module-card,
.tour-cta {
  border: 1px solid var(--tour-line);
  background: var(--tour-card);
  box-shadow: var(--tour-shadow);
  backdrop-filter: blur(14px);
}

.tour-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px 22px;
  border-radius: 28px;
  background: var(--tour-topbar);
}

.tour-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tour-brand-logo,
.hero-brand-logo {
  display: block;
  height: auto;
}

.tour-brand-logo {
  width: 156px;
  filter: drop-shadow(0 10px 22px rgba(19, 39, 35, 0.16));
}

.tour-brand-copy strong,
.tour-hero-copy h1,
.tour-panel-head h2,
.tour-story-card h3,
.tour-stage-main h2,
.tour-module-card h3,
.tour-cta h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.tour-brand-copy small {
  display: block;
  color: var(--tour-muted);
}

.tour-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tour-theme {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--tour-line);
  border-radius: 999px;
  background: var(--tour-card-strong);
}

.tour-theme button,
.tour-link,
.tour-button,
.tour-module-card a {
  font: inherit;
  text-decoration: none;
}

.tour-theme button {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--tour-muted);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.tour-theme button:hover {
  color: var(--tour-ink);
  transform: translateY(-1px);
}

.tour-theme button.is-active {
  background: var(--tour-ink);
  color: #fff;
}

html[data-theme="dark"] .tour-theme button.is-active,
html[data-theme="auto"] .tour-theme button.is-active {
  background: var(--tour-primary);
  color: #03231d;
}

.tour-link {
  color: var(--tour-ink);
}

.tour-link-strong,
.tour-button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--tour-primary), var(--tour-primary-strong));
  box-shadow: 0 14px 30px rgba(15, 106, 86, 0.24);
}

.tour-link-strong,
.tour-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.tour-hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.92fr;
  gap: 22px;
  margin-bottom: 18px;
}

.tour-hero-copy,
.tour-hero-panel,
.tour-story-card,
.tour-stage-main,
.tour-stage-metric,
.tour-module-card,
.tour-cta {
  border-radius: 30px;
}

.tour-hero-copy {
  padding: 44px;
}

.tour-eyebrow,
.tour-panel-kicker,
.tour-story-tag,
.tour-module-tag {
  margin: 0 0 16px;
  color: var(--tour-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5vw, 5.25rem);
  line-height: 0.93;
  max-width: 10.5ch;
}

.tour-lead,
.tour-story-card p,
.tour-stage-list p,
.tour-stage-metric p,
.tour-module-card p,
.tour-cta p,
.tour-panel-card span {
  color: var(--tour-muted);
  line-height: 1.72;
}

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

.tour-button-secondary {
  color: var(--tour-ink);
  background: var(--tour-card-strong);
  border: 1px solid var(--tour-line);
}

.tour-hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tour-hero-proof-grid article,
.tour-panel-card,
.tour-stage-list article {
  padding: 18px;
  border: 1px solid var(--tour-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .tour-hero-proof-grid article,
html[data-theme="dark"] .tour-panel-card,
html[data-theme="dark"] .tour-stage-list article,
html[data-theme="auto"] .tour-hero-proof-grid article,
html[data-theme="auto"] .tour-panel-card,
html[data-theme="auto"] .tour-stage-list article {
  background: rgba(255, 255, 255, 0.03);
}

.tour-hero-proof-grid span,
.tour-panel-card p,
.tour-stage-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--tour-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour-hero-proof-grid strong,
.tour-panel-card strong,
.tour-stage-list strong,
.tour-stage-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.tour-hero-panel {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.tour-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(119, 200, 203, 0.28), transparent 70%);
}

.tour-panel-head {
  margin-bottom: 18px;
}

.tour-panel-head h2 {
  margin: 0;
  font-size: 2rem;
}

.tour-panel-stack {
  display: grid;
  gap: 14px;
}

.tour-panel-ribbon,
.tour-command-list,
.tour-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tour-panel-ribbon {
  margin-top: 18px;
}

.tour-panel-ribbon span,
.tour-command-list span,
.tour-marquee span {
  padding: 10px 14px;
  border: 1px solid var(--tour-line);
  border-radius: 999px;
  background: var(--tour-card-strong);
  font-size: 0.92rem;
}

.tour-marquee {
  justify-content: center;
  margin: 0 0 18px;
  padding: 12px 0;
}

.tour-marquee span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.tour-story-grid,
.tour-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tour-story-grid {
  margin-bottom: 18px;
}

.tour-story-card {
  padding: 28px;
}

.tour-story-card h3,
.tour-module-card h3 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  line-height: 1.02;
}

.accent-warm {
  background:
    linear-gradient(180deg, rgba(217, 133, 40, 0.13), transparent 44%),
    var(--tour-card);
}

.accent-cool {
  background:
    linear-gradient(180deg, rgba(119, 200, 203, 0.14), transparent 44%),
    var(--tour-card);
}

.tour-stage-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 18px;
  margin-bottom: 18px;
}

.tour-stage-main {
  padding: 34px;
}

.tour-stage-main h2,
.tour-cta h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.tour-stage-list {
  display: grid;
  gap: 14px;
}

.tour-stage-side {
  display: grid;
  gap: 14px;
}

.tour-stage-metric {
  padding: 24px;
}

.tour-module-card {
  padding: 28px;
}

.tour-module-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--tour-primary);
  border: 1px solid var(--tour-line);
  background: var(--tour-card-strong);
  font-weight: 700;
}

.tour-command-band,
.tour-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.tour-command-band {
  margin: 18px 0;
  padding: 28px 30px;
  border: 1px solid var(--tour-line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(217, 133, 40, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(119, 200, 203, 0.14), transparent 72%),
    var(--tour-card);
  box-shadow: var(--tour-shadow);
}

.tour-command-band h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.tour-cta {
  padding: 32px;
}

@media (max-width: 1120px) {
  .tour-hero-grid,
  .tour-stage-grid,
  .tour-story-grid,
  .tour-module-grid,
  .tour-hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .tour-command-band,
  .tour-cta,
  .tour-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .tour-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 14px;
  }

  .tour-topbar,
  .tour-hero-copy,
  .tour-hero-panel,
  .tour-story-card,
  .tour-stage-main,
  .tour-stage-metric,
  .tour-module-card,
  .tour-command-band,
  .tour-cta {
    border-radius: 24px;
  }

  .tour-hero-copy,
  .tour-stage-main,
  .tour-command-band,
  .tour-cta,
  .tour-story-card,
  .tour-module-card,
  .tour-hero-panel,
  .tour-stage-metric {
    padding: 22px;
  }

  .tour-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-brand-logo {
    width: 132px;
  }

  .tour-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .tour-panel-head h2,
  .tour-story-card h3,
  .tour-module-card h3,
  .tour-stage-main h2,
  .tour-command-band h2,
  .tour-cta h2 {
    font-size: clamp(1.6rem, 8vw, 2.3rem);
  }
}
