:root {
  --black: #0b0b0d;
  --black-soft: #111114;
  --ivory: #f4f1e8;
  --gold: #c9a227;
  --gold-soft: #e5c65c;
  --green: #1f4d3a;
  --green-dark: #123225;
  --graphite: #2a2a2e;
  --muted: #b8b8b8;
  --line: rgba(244, 241, 232, 0.14);
  --line-strong: rgba(201, 162, 39, 0.34);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(244, 241, 232, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 241, 232, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(31, 77, 58, 0.32), transparent 34%),
    var(--black);
  background-size: 72px 72px, 72px 72px, auto, auto;
  font-family: "Manrope", "Montserrat", sans-serif;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  display: flex;
  width: var(--container);
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(244, 241, 232, 0.13);
  background: rgba(11, 11, 13, 0.68);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  height: 52px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(244, 241, 232, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(244, 241, 232, 0.05);
  color: var(--gold-soft);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 138px max(20px, calc((100vw - 1180px) / 2)) 76px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/xp-chess-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.015);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.98) 0%, rgba(11, 11, 13, 0.9) 34%, rgba(11, 11, 13, 0.42) 68%, rgba(11, 11, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.2) 0%, rgba(11, 11, 13, 0.76) 72%, var(--black) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(710px, 100%);
  padding-top: 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Cinzel", "Playfair Display", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(4.4rem, 11vw, 8.9rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 4.7vw, 4.25rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.13rem;
  line-height: 1.25;
}

.hero-lead {
  width: min(640px, 100%);
  margin-bottom: 18px;
  color: var(--ivory);
  font-size: clamp(1.32rem, 2.7vw, 2.05rem);
  font-weight: 900;
  line-height: 1.22;
}

.hero-copy {
  width: min(590px, 100%);
  margin-bottom: 30px;
  color: rgba(244, 241, 232, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #15130b;
  box-shadow: 0 18px 44px rgba(201, 162, 39, 0.24);
}

.button-secondary {
  border-color: rgba(244, 241, 232, 0.32);
  background: rgba(11, 11, 13, 0.58);
  color: var(--ivory);
}

.button-secondary:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.hero-stats {
  display: grid;
  width: min(650px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  background: rgba(244, 241, 232, 0.1);
}

.hero-stats div {
  padding: 18px;
  background: rgba(11, 11, 13, 0.62);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
}

.hero-stats span {
  color: rgba(244, 241, 232, 0.76);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  color: rgba(244, 241, 232, 0.58);
  font-size: 0.88rem;
  font-weight: 900;
}

.section {
  padding: clamp(76px, 10vw, 128px) 20px;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.intro-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 77, 58, 0.82), rgba(11, 11, 13, 0.9)),
    var(--green);
}

.intro-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.09), transparent);
}

.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.72fr 1.38fr 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.intro-label {
  display: grid;
  gap: 16px;
}

.intro-label span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.intro-grid h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.5vw, 3.35rem);
}

.intro-grid p:last-child,
.section-heading p,
.benefit-card p,
.method-steps p,
.sticky-copy p {
  color: rgba(244, 241, 232, 0.72);
}

.section-heading {
  display: grid;
  width: min(820px, 100%);
  margin-bottom: 46px;
}

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

.benefit-card {
  position: relative;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(244, 241, 232, 0.12);
  background:
    linear-gradient(180deg, rgba(42, 42, 46, 0.82), rgba(11, 11, 13, 0.92)),
    var(--graphite);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.benefit-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 78px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.card-number {
  display: block;
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-weight: 800;
}

.benefit-card h3 {
  margin-top: auto;
}

.audience-section {
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.94), rgba(18, 50, 37, 0.72)),
    var(--green-dark);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 130px;
}

.sticky-copy p:last-child {
  width: min(470px, 100%);
}

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

.audience-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 22px;
  border: 1px solid rgba(244, 241, 232, 0.11);
  border-left: 3px solid var(--gold);
  background: rgba(244, 241, 232, 0.055);
  color: rgba(244, 241, 232, 0.88);
  font-weight: 900;
}

.audience-list span {
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 0.84rem;
}

.method-section {
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.78), rgba(11, 11, 13, 1)),
    repeating-linear-gradient(45deg, rgba(244, 241, 232, 0.04) 0 1px, transparent 1px 18px);
}

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

.method-steps article {
  position: relative;
  min-height: 250px;
  padding: 84px 2px 0;
}

.method-steps article::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.method-steps span {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.56);
  background: var(--black);
  color: var(--gold-soft);
  font-family: "Cinzel", serif;
  font-weight: 800;
}

.cta-section {
  padding: clamp(84px, 11vw, 150px) 20px;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(31, 77, 58, 0.62)),
    var(--green);
}

.cta-inner {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  margin-right: auto;
  margin-left: auto;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 232, 0.72);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer img {
  width: 88px;
  height: auto;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.developer-credit {
  margin: 0;
  color: rgba(244, 241, 232, 0.58);
  font-size: 0.9rem;
  font-weight: 700;
}

.developer-credit a {
  color: var(--gold-soft);
}

@media (max-width: 980px) {
  .intro-grid,
  .split-layout,
  .benefit-grid,
  .method-steps {
    grid-template-columns: 1fr 1fr;
  }

  .intro-label {
    grid-column: 1 / -1;
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 32px, 1180px);
  }

  .site-header {
    position: absolute;
    top: 14px;
    min-height: 62px;
  }

  .brand {
    height: 44px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 96vh;
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(11, 11, 13, 0.76), rgba(11, 11, 13, 0.94) 54%, var(--black) 100%),
      linear-gradient(90deg, rgba(11, 11, 13, 0.88), rgba(11, 11, 13, 0.36));
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats,
  .intro-grid,
  .split-layout,
  .benefit-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 30px;
  }

  .hero-stats div {
    padding: 14px 16px;
  }

  .hero-scroll {
    display: none;
  }

  .intro-label span {
    width: 58px;
    height: 58px;
  }

  .benefit-card {
    min-height: 230px;
  }

  .audience-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .method-steps article {
    min-height: auto;
    padding-top: 74px;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}
