:root {
  --black: #05070a;
  --ink: #11161d;
  --panel: #121923;
  --panel-2: #1a2430;
  --paper: #f7f1e5;
  --paper-2: #ebe0cf;
  --line: rgba(255,255,255,0.12);
  --line-dark: rgba(17,22,29,0.14);
  --text: #f9fbff;
  --muted: #aeb8c7;
  --muted-dark: #5d6675;
  --gold: #f0c85b;
  --gold-dark: #ae7e21;
  --teal: #48d5bd;
  --red: #e36868;
  --blue: #7ea8ff;
  --green: #86d68a;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(240,200,91,0.42);
  color: var(--gold);
  background: #101620;
  font-weight: 900;
  font-size: 13px;
}

.brand strong {
  font-size: 16px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

nav a,
.pill-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #d6dce7;
  font-size: 14px;
  font-weight: 800;
}

nav a:hover,
.pill-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.pill-link {
  gap: 8px;
  border: 1px solid var(--line);
}

.pill-link svg,
.button svg,
.card svg {
  width: 18px;
  height: 18px;
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 72px 0 auto 0;
  height: 72vh;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,7,10,0.9), rgba(5,7,10,0.68)),
    url("./assets/backtest-grid.jpg") center / cover no-repeat;
  opacity: 0.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(72,213,189,0.34);
  border-radius: 8px;
  background: rgba(72,213,189,0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow.dark {
  border-color: rgba(174,126,33,0.24);
  background: rgba(174,126,33,0.09);
  color: var(--gold-dark);
}

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

h1 {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin-top: 22px;
  color: #d6dde8;
  font-size: clamp(18px, 2vw, 22px);
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  color: #0c1016;
  background: linear-gradient(135deg, var(--gold), #d9aa3f);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.hero-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e141d;
  box-shadow: 0 28px 80px rgba(0,0,0,0.38);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.hero-card figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.decision {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 42px);
  background: #0f151f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-card,
.decision-grid,
.section-head,
.cards,
.offer-grid,
.timeline,
.split,
.budget,
.check-grid,
.meeting-panel {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.decision-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(240,200,91,0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(240,200,91,0.13), rgba(72,213,189,0.08));
}

.decision-card span {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
}

.decision-card h2 {
  margin-top: 16px;
}

.decision-card p {
  max-width: 850px;
  margin-top: 16px;
  color: #d1d9e6;
  font-size: 18px;
}

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

.decision-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.decision-grid strong {
  color: var(--teal);
}

.decision-grid p {
  margin-top: 14px;
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 120px) clamp(18px, 4vw, 42px);
}

.section.light {
  background: var(--paper);
  color: var(--ink);
}

.section.dark,
.section.timeline-section,
.section.event {
  background: #101721;
  color: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  margin-top: 18px;
}

.section-head p {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 18px;
}

.dark .section-head p,
.timeline-section .section-head p,
.event .section-head p {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.role-card,
.timeline article,
.mini-list article,
.meeting-grid article {
  border-radius: 8px;
}

.card {
  min-height: 235px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  background: #fffdf8;
}

.card svg {
  color: var(--teal);
  margin-bottom: 24px;
}

.card p,
.role-card p,
.timeline p,
.mini-list p,
.meeting-grid p {
  margin-top: 12px;
  color: var(--muted-dark);
  font-size: 15px;
}

.card.inverted {
  background: rgba(255,255,255,0.045);
  border-color: var(--line);
  color: #fff;
}

.card.inverted p {
  color: var(--muted);
}

.card.featured {
  border-color: rgba(72,213,189,0.45);
  background: linear-gradient(180deg, rgba(72,213,189,0.15), rgba(255,255,255,0.045));
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.offer-main,
.offer-side {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.offer-main p,
.offer-side p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.offer-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.offer-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e8eef8;
  background: rgba(255,255,255,0.035);
  font-weight: 800;
}

.offer-side strong {
  display: block;
  margin-top: 26px;
  padding: 16px;
  border-left: 4px solid var(--red);
  background: rgba(227,104,104,0.11);
  color: #ffdede;
}

.role-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  background: #fffdf8;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline article {
  min-height: 270px;
  padding: 24px;
  background: #111a25;
}

.timeline span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  margin-bottom: 44px;
  border-radius: 8px;
  background: rgba(240,200,91,0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.timeline p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
}

.split-copy p {
  max-width: 700px;
  margin-top: 16px;
  color: var(--muted-dark);
  font-size: 18px;
}

.mini-list {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.mini-list article {
  padding: 18px;
  border: 1px solid var(--line-dark);
  background: #fffdf8;
}

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

.budget span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: rgba(240,200,91,0.11);
  font-weight: 900;
}

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

.check-grid label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf8;
  font-weight: 800;
}

.check-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.meeting {
  background: #0f151f;
  color: #fff;
}

.meeting-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(240,200,91,0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(240,200,91,0.13), rgba(72,213,189,0.08));
}

.meeting-panel h2 {
  margin-top: 18px;
}

.meeting-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meeting-grid article {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
}

.meeting-grid p {
  color: var(--muted);
}

.final-rule {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(72,213,189,0.35);
  border-radius: 8px;
  background: rgba(72,213,189,0.1);
}

.final-rule strong {
  color: var(--teal);
}

.final-rule p {
  max-width: 920px;
  margin-top: 8px;
  color: #e5edf8;
  font-size: 18px;
}

footer {
  min-height: 92px;
  padding: 24px clamp(18px, 4vw, 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: #05070a;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--gold);
  font-weight: 900;
  text-align: right;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .offer-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    order: -1;
  }

  .decision-grid,
  .cards.three,
  .cards.four,
  .timeline,
  .budget,
  .check-grid,
  .meeting-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
  }

  .pill-link {
    width: 100%;
  }

  nav a {
    padding-left: 0;
    padding-right: 10px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .actions .button {
    width: 100%;
  }

  .offer-list {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  footer a {
    text-align: left;
  }
}
