:root {
  --bg: #efe5d5;
  --bg-deep: #0f1d27;
  --paper: rgba(250, 245, 237, 0.86);
  --paper-strong: #fffaf3;
  --ink: #13202b;
  --muted: #5d6978;
  --line: rgba(19, 32, 43, 0.12);
  --accent: #cf8242;
  --accent-soft: rgba(207, 130, 66, 0.14);
  --accent-cool: #2f8d75;
  --accent-cool-soft: rgba(47, 141, 117, 0.14);
  --shadow: 0 26px 80px rgba(8, 16, 24, 0.18);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(207, 130, 66, 0.15), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(47, 141, 117, 0.16), transparent 20%),
    linear-gradient(180deg, #f5ecde 0%, #efe5d5 48%, #f9f5ee 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -24vmax;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(17, 36, 48, 0.09) 50%, transparent 50%) 0 0 / 88px 88px,
    linear-gradient(rgba(17, 36, 48, 0.09) 50%, transparent 50%) 0 0 / 88px 88px,
    linear-gradient(90deg, transparent 50%, rgba(207, 130, 66, 0.08) 50%) 44px 44px / 88px 88px,
    linear-gradient(transparent 50%, rgba(207, 130, 66, 0.08) 50%) 44px 44px / 88px 88px;
  transform: rotate(45deg) scale(1.18);
}

body::after {
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.34), transparent 20%);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}

.hero,
.panel {
  animation: rise 720ms ease both;
}

.layout > .panel:nth-child(1) {
  animation-delay: 60ms;
}

.layout > .panel:nth-child(2) {
  animation-delay: 110ms;
}

.layout > .panel:nth-child(3) {
  animation-delay: 150ms;
}

.layout > .panel:nth-child(4) {
  animation-delay: 200ms;
}

.layout > .panel:nth-child(5) {
  animation-delay: 250ms;
}

.layout > .panel:nth-child(6) {
  animation-delay: 300ms;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 250, 243, 0.08);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(18, 34, 44, 0.97), rgba(9, 21, 31, 0.96)),
    var(--bg-deep);
  box-shadow: var(--shadow);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: end;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  color: #fffaf3;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b9f7e1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lede {
  max-width: 60ch;
  margin: 20px 0 0;
  color: rgba(255, 250, 243, 0.82);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: #fffaf3;
  font-size: 0.93rem;
  font-weight: 700;
}

.pill--soft {
  background: rgba(185, 247, 225, 0.14);
  color: #dafdef;
}

.pill--outline {
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: transparent;
  color: rgba(255, 250, 243, 0.88);
}

.tab-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: default;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.tab-chip:disabled {
  opacity: 1;
}

.tab-chip--active {
  background: rgba(255, 250, 243, 0.14);
  color: #fffaf3;
}

.tab-chip--planned {
  border: 1px solid rgba(255, 250, 243, 0.16);
  background: rgba(255, 250, 243, 0.03);
  color: rgba(255, 250, 243, 0.72);
}

.hero__summary {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 250, 243, 0.12);
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.06);
  backdrop-filter: blur(10px);
}

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

.stat-card {
  min-height: 124px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.12), rgba(255, 250, 243, 0.04));
  border: 1px solid rgba(255, 250, 243, 0.08);
}

.stat-card__label {
  display: block;
  color: rgba(255, 250, 243, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-card__value {
  display: block;
  margin-top: 14px;
  color: #fffaf3;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.7;
}

.hero__glow--left {
  left: -70px;
  bottom: -88px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(207, 130, 66, 0.78), transparent 66%);
}

.hero__glow--right {
  top: -80px;
  right: -42px;
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(47, 141, 117, 0.74), transparent 62%);
}

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

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 44px rgba(19, 32, 43, 0.07);
  backdrop-filter: blur(14px);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__header {
  margin-bottom: 16px;
}

.panel__split {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.panel__text,
.panel__subtext,
.meta-card__text,
.insight-card p,
.platform-bar__value span,
.platform-bar__label span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.panel__subtext {
  margin-bottom: 8px;
  font-weight: 700;
  color: #284154;
}

.scale-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a4b20;
  font-size: 0.9rem;
  font-weight: 700;
}

.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-button {
  flex: 1 1 220px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.82);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  text-align: left;
}

.platform-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--platform-color, var(--accent)) 55%, white);
  box-shadow: 0 16px 30px rgba(19, 32, 43, 0.08);
}

.platform-button.is-active {
  border-color: color-mix(in srgb, var(--platform-color, var(--accent)) 75%, white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.92)),
    color-mix(in srgb, var(--platform-color, var(--accent)) 8%, white);
  box-shadow: 0 16px 32px rgba(19, 32, 43, 0.09);
}

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

.platform-button__top strong {
  font-size: 1.04rem;
}

.platform-button__top span {
  color: #324453;
  font-size: 0.93rem;
  font-weight: 700;
}

.platform-button__meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.platform-bars {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.platform-bar {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) minmax(100px, 130px);
  gap: 14px;
  align-items: center;
}

.platform-bar__label strong,
.platform-bar__value strong {
  display: block;
}

.platform-bar__label span,
.platform-bar__value span {
  font-size: 0.92rem;
}

.platform-bar__track,
.distribution-row__track {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 32, 43, 0.08);
}

.platform-bar__track {
  height: 16px;
}

.platform-bar__fill,
.distribution-row__fill {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--platform-color) 88%, white), var(--platform-color));
}

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

.metric-card,
.meta-card {
  padding: 16px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.78);
}

.metric-card__label,
.meta-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card__value,
.meta-card__value {
  display: block;
  margin-top: 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.3rem;
  line-height: 1.15;
}

.distribution-chart {
  display: grid;
  gap: 12px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.distribution-row__label {
  font-weight: 700;
  color: #324453;
}

.distribution-row__track {
  height: 15px;
}

.distribution-row__value {
  text-align: right;
}

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

.insight-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 250, 243, 0.7));
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.insight-card h3 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.24rem;
}

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

.roadmap-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(47, 141, 117, 0.08);
  color: #23483c;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero__summary .eyebrow,
.hero .tab-chip--active,
.hero .pill,
.hero .pill--outline,
.hero .pill--soft,
.stat-card__label,
.stat-card__value {
  position: relative;
  z-index: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .page-shell {
    padding: 18px;
  }

  .hero {
    padding: 24px;
  }

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

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

  .platform-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  body::before {
    opacity: 0.3;
    background-size: 72px 72px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .stat-grid,
  .metric-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .panel__split {
    flex-direction: column;
  }

  .distribution-row {
    grid-template-columns: 72px minmax(0, 1fr) 44px;
  }

  .platform-button__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
