:root {
  --bg: #f3ebdf;
  --bg-deep: #e2d2bc;
  --navy: #15242a;
  --navy-soft: #31434a;
  --ink: #15242a;
  --ink-soft: #52636a;
  --surface: rgba(250, 246, 239, 0.78);
  --surface-strong: rgba(252, 249, 244, 0.92);
  --line: rgba(21, 36, 42, 0.12);
  --line-strong: rgba(21, 36, 42, 0.24);
  --accent: #eb6f42;
  --accent-strong: #c94d22;
  --gold: #d5a54c;
  --shadow: 0 26px 70px rgba(21, 36, 42, 0.09);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(235, 111, 66, 0.14), transparent 32%),
    radial-gradient(circle at right 20%, rgba(213, 165, 76, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 40%, #eadcc8 100%);
}

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

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff6ef;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 243, 235, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 243, 235, 0.92);
  border-bottom-color: rgba(21, 36, 42, 0.12);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 0 8px rgba(235, 111, 66, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a:not(.button) {
  position: relative;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:not(.button):hover::after,
.site-nav a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

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

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

.button-primary {
  background: var(--navy);
  color: #fff6ef;
  box-shadow: 0 18px 40px rgba(21, 36, 42, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1d3138;
}

.button-secondary,
.button-ghost {
  background: rgba(255, 252, 247, 0.45);
  color: var(--ink);
  border-color: rgba(21, 36, 42, 0.14);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 252, 247, 0.78);
  border-color: rgba(21, 36, 42, 0.3);
}

.hero {
  position: relative;
  overflow: clip;
  min-height: calc(100svh - 76px);
  padding: 56px 0 72px;
}

.hero-backdrop,
.hero-grid,
.hero-rings,
.hero-glow {
  position: absolute;
}

.hero-backdrop {
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 36, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 36, 42, 0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.06));
}

.hero-rings {
  width: min(56vw, 760px);
  aspect-ratio: 1;
  right: -6%;
  top: 4%;
  border-radius: 50%;
  border: 1px solid rgba(21, 36, 42, 0.12);
  box-shadow:
    inset 0 0 0 22px rgba(255, 250, 244, 0.32),
    inset 0 0 0 110px rgba(21, 36, 42, 0.04);
}

.hero-rings::before,
.hero-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-rings::before {
  inset: 15%;
  border: 1px dashed rgba(21, 36, 42, 0.18);
}

.hero-rings::after {
  inset: 33%;
  border: 1px solid rgba(235, 111, 66, 0.28);
}

.hero-glow-a {
  width: 460px;
  height: 460px;
  right: 18%;
  top: 14%;
  background: radial-gradient(circle, rgba(235, 111, 66, 0.28), transparent 72%);
}

.hero-glow-b {
  width: 600px;
  height: 600px;
  left: -10%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(37, 73, 81, 0.2), transparent 74%);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  padding: 48px 0 24px;
}

.eyebrow,
.brandline,
.section-kicker,
.panel-label,
.rail-label,
.phase-window {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow,
.section-kicker,
.panel-label,
.rail-label,
.phase-window {
  color: var(--accent-strong);
}

.brandline {
  margin-top: 18px;
  color: var(--navy-soft);
}

.hero h1,
.section-intro h2,
.section-head h2,
.risk-alert h2,
.next-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  max-width: 12ch;
}

.hero-summary {
  margin-top: 24px;
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  list-style: none;
}

.hero-proof li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(21, 36, 42, 0.12);
  background: rgba(255, 251, 246, 0.58);
  color: var(--ink-soft);
}

.hero-rail {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(21, 36, 42, 0.98), rgba(31, 48, 55, 0.94));
  color: #f8f2ea;
  box-shadow: 0 28px 90px rgba(21, 36, 42, 0.2);
}

.rail-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.rail-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-card span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 242, 234, 0.64);
}

.rail-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.rail-card p {
  margin-top: 10px;
  color: rgba(248, 242, 234, 0.78);
}

.signal-band {
  padding: 18px 0 0;
}

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

.signal-grid p {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 251, 246, 0.68);
  border: 1px solid rgba(21, 36, 42, 0.08);
  box-shadow: var(--shadow);
  color: var(--navy-soft);
}

.section {
  padding: 104px 0;
}

.section-shell {
  display: grid;
  gap: 36px;
}

.section-intro,
.section-head,
.next-copy {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.section-intro h2,
.section-head h2,
.risk-alert h2,
.next-copy h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.section-intro p:last-child,
.section-head p:last-child,
.risk-alert p:last-child,
.next-copy p:last-child {
  color: var(--ink-soft);
  max-width: 720px;
}

.market-grid,
.economics-grid,
.positioning-layout,
.roadmap-layout,
.risk-layout,
.next-shell {
  display: grid;
  gap: 24px;
}

.market-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.market-panel,
.territory-panel,
.investment-panel,
.revenue-panel,
.profit-ladder,
.positioning-note,
.dashboard-grid,
.next-list,
.phase-panels {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card,
.territory-item,
.risk-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(21, 36, 42, 0.08);
}

.stat-card span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card p,
.territory-item p,
.positioning-note,
.phase-list li,
.phase-milestone,
.risk-card p,
.next-list li,
.dashboard-row span {
  color: var(--ink-soft);
}

.territory-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.territory-item {
  display: grid;
  gap: 10px;
}

.territory-item div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.territory-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(21, 36, 42, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.territory-item-primary {
  background: linear-gradient(180deg, rgba(235, 111, 66, 0.14), rgba(255, 255, 255, 0.5));
}

.territory-item h3,
.phase-panel h3,
.risk-card h3 {
  font-size: 1.2rem;
}

.territory-footnote {
  padding: 8px 4px 0;
  color: var(--ink-soft);
}

.positioning-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.pricing-table {
  display: grid;
  overflow: clip;
  border-radius: var(--radius-xl);
  background: rgba(21, 36, 42, 0.96);
  color: #f8f2ea;
  box-shadow: 0 28px 90px rgba(21, 36, 42, 0.18);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr));
  gap: 14px;
  padding: 20px 24px;
  align-items: center;
}

.pricing-row + .pricing-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-head {
  color: rgba(248, 242, 234, 0.64);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.pricing-row-primary {
  background: linear-gradient(90deg, rgba(235, 111, 66, 0.22), rgba(213, 165, 76, 0.1));
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  list-style: none;
}

.check-list li {
  padding-left: 18px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

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

.investment-band {
  display: grid;
  gap: 6px;
  padding: 20px;
  margin-top: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(235, 111, 66, 0.12), rgba(213, 165, 76, 0.18));
}

.investment-band strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.cost-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cost-list div,
.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(21, 36, 42, 0.08);
}

.cost-list div:last-child,
.dashboard-row:last-child {
  border-bottom: 0;
}

.revenue-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.revenue-item {
  display: grid;
  gap: 10px;
}

.revenue-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.revenue-copy span {
  color: var(--ink-soft);
}

.revenue-copy strong {
  font-size: 1.05rem;
}

.revenue-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(21, 36, 42, 0.08);
  overflow: hidden;
}

.revenue-bar span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.revenue-summary {
  margin-top: 18px;
  color: var(--navy-soft);
  font-weight: 600;
}

.profit-ladder {
  display: grid;
  gap: 24px;
}

.ladder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ladder-head p:last-child {
  color: var(--ink-soft);
}

.ladder-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ladder-step {
  padding: 22px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(21, 36, 42, 0.08);
}

.ladder-step span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 12px;
}

.ladder-step p {
  color: var(--ink-soft);
}

.roadmap-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.phase-nav {
  display: grid;
  gap: 12px;
}

.phase-tab {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid rgba(21, 36, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.56);
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.phase-tab:hover,
.phase-tab:focus-visible {
  transform: translateX(2px);
  border-color: rgba(21, 36, 42, 0.24);
  color: var(--ink);
}

.phase-tab.is-active {
  background: var(--navy);
  color: #fff3ea;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(21, 36, 42, 0.18);
}

.phase-panel {
  display: none;
}

.phase-panel.is-active {
  display: grid;
  gap: 16px;
}

.phase-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.phase-list li {
  padding-left: 18px;
  position: relative;
}

.phase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.phase-milestone {
  padding-top: 6px;
  border-top: 1px solid rgba(21, 36, 42, 0.08);
  font-weight: 600;
}

.risk-layout {
  gap: 30px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.risk-card {
  min-height: 220px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.risk-card:hover,
.risk-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(21, 36, 42, 0.18);
}

.risk-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.dashboard-grid {
  display: grid;
}

.dashboard-row strong {
  text-align: right;
}

.next-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  align-items: start;
}

.next-list {
  list-style: none;
  counter-reset: next-steps;
}

.next-list li {
  counter-increment: next-steps;
  position: relative;
  padding: 18px 0 18px 60px;
  border-bottom: 1px solid rgba(21, 36, 42, 0.08);
}

.next-list li:last-child {
  border-bottom: 0;
}

.next-list li::before {
  content: counter(next-steps);
  position: absolute;
  left: 0;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 36, 42, 0.08);
  color: var(--navy);
  font-weight: 700;
}

.site-footer {
  padding: 32px 0 56px;
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--ink-soft);
  border-top: 1px solid rgba(21, 36, 42, 0.08);
  padding-top: 24px;
}

.reveal,
.reveal-sequence {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-sequence:nth-child(2) {
  transition-delay: 70ms;
}

.reveal-sequence:nth-child(3) {
  transition-delay: 140ms;
}

.reveal-sequence:nth-child(4) {
  transition-delay: 210ms;
}

.reveal-sequence:nth-child(5) {
  transition-delay: 280ms;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .hero-shell,
  .market-grid,
  .positioning-layout,
  .economics-grid,
  .roadmap-layout,
  .next-shell {
    grid-template-columns: 1fr;
  }

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

  .hero-rail {
    max-width: 640px;
  }
}

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

  .signal-grid,
  .ladder-steps,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .pricing-row {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 0.7fr));
    font-size: 0.92rem;
  }

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

  .section {
    padding: 82px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 24px, 100%);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .hero-copy {
    padding-top: 24px;
  }

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

  .market-panel,
  .territory-panel,
  .investment-panel,
  .revenue-panel,
  .profit-ladder,
  .positioning-note,
  .dashboard-grid,
  .next-list,
  .phase-panels,
  .hero-rail {
    padding: 22px;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .pricing-head {
    display: none;
  }

  .pricing-row span:first-child {
    font-weight: 700;
    margin-bottom: 4px;
  }

  .cost-list div,
  .dashboard-row,
  .revenue-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-row strong {
    text-align: left;
  }
}
