:root {
  color-scheme: dark;
  --bg: #05080e;
  --bg-soft: rgba(8, 12, 21, 0.7);
  --surface: rgba(14, 18, 30, 0.56);
  --surface-strong: rgba(11, 14, 23, 0.84);
  --text: #f6f0e4;
  --muted: rgba(242, 235, 224, 0.72);
  --line: rgba(244, 227, 196, 0.15);
  --gold: #d8bb7a;
  --gold-soft: rgba(216, 187, 122, 0.28);
  --blue: #83b6d9;
  --blue-soft: rgba(131, 182, 217, 0.22);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(35, 53, 82, 0.35), transparent 35%),
    radial-gradient(circle at 50% 18%, rgba(216, 187, 122, 0.18), transparent 26%),
    var(--bg);
  color: var(--text);
}

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

.page-shell {
  position: relative;
  isolation: isolate;
}

.background-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(58, 92, 120, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.18), rgba(4, 7, 11, 0.92));
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video-ambient {
  object-fit: cover;
  filter: blur(38px) brightness(0.3) saturate(0.88);
  opacity: 0.98;
  transform: scale(1.34);
}

.background-grid,
.background-vignette {
  position: absolute;
  inset: 0;
}

.background-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.8) 18%, #000 100%);
  opacity: 0.45;
}

.background-vignette {
  background:
    radial-gradient(circle at center, rgba(24, 32, 47, 0.16), transparent 34%, rgba(5, 8, 14, 0.42) 68%, rgba(5, 8, 14, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.28), rgba(5, 8, 14, 0.7));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem clamp(1.2rem, 2vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.72), rgba(5, 8, 14, 0.18));
}

.brand {
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

main {
  padding: 0 clamp(1.2rem, 3vw, 2.4rem) 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: end;
  min-height: calc(100svh - 5rem);
  padding: 3rem 0 4.5rem;
}

.hero-copy,
.hero-panel,
.section,
.info-card {
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 21, 0.54), rgba(8, 12, 21, 0.3));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border-radius: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 400;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3.6rem, 12vw, 7.6rem);
}

h1 span {
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(216, 187, 122, 0.22);
}

.lede,
.section p,
.panel-step p,
.info-card p,
.rail-stop p {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 42rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #111;
  background: linear-gradient(135deg, #f2e3c2, #cda45d);
  box-shadow: 0 12px 30px rgba(205, 164, 93, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.45);
}

.hero-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.3rem 0 0;
  padding: 0;
}

.hero-points li {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-points strong,
.panel-label,
.card-index,
.rail-stop span {
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-points strong {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: var(--text);
}

.hero-points span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.hero-panel {
  padding: 1.5rem;
  border-radius: 1.8rem;
  align-self: center;
}

.panel-label,
.card-index {
  color: var(--blue);
  font-size: 0.78rem;
}

.hero-panel h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.panel-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.panel-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-step span {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgba(131, 182, 217, 0.14);
  color: var(--text);
  font-size: 0.78rem;
}

.section {
  margin-top: 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 2rem;
}

.section-heading {
  max-width: 38rem;
}

.section-heading h2,
.loop-copy h2,
.cta h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  min-height: 16rem;
  padding: 1.3rem;
  border-radius: 1.5rem;
}

.info-card h3 {
  margin-top: 1rem;
  font-size: 2rem;
}

.loop-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 1.4rem;
  align-items: start;
}

.loop-copy h2 {
  margin-bottom: 1.2rem;
}

.loop-rail {
  display: grid;
  gap: 1rem;
}

.rail-stop {
  padding: 1.2rem 1.25rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(11, 16, 29, 0.82), rgba(8, 12, 21, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-stop span {
  color: var(--gold);
  font-size: 0.82rem;
}

.cta {
  text-align: center;
}

.cta p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  justify-content: center;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    max-width: 42rem;
  }

  .hero-points,
  .card-grid,
  .loop-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-panel,
  .section {
    border-radius: 1.5rem;
  }
}

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

  .background-stage video {
    display: none;
  }

  .background-stage {
    background:
      radial-gradient(circle at 50% 20%, rgba(216, 187, 122, 0.18), transparent 20%),
      radial-gradient(circle at 50% 50%, rgba(131, 182, 217, 0.14), transparent 30%),
      linear-gradient(180deg, #06090f, #0b1320 55%, #05080e);
  }
}
