:root {
  --ink: #111614;
  --muted: #65716d;
  --paper: #f5f2ea;
  --soft: #e8e0d0;
  --green: #0b4b37;
  --green-deep: #06291f;
  --gold: #c9a15c;
  --blue: #18385d;
  --line: rgba(17, 22, 20, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(245, 242, 234, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-weight: 700;
  text-transform: lowercase;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
}

.brand-mark::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("./assets/chainpoker-mark.svg") center / contain no-repeat;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  font-size: 14px;
}

.nav-links a,
.nav-action {
  opacity: 0.88;
}

.nav-links a:hover,
.nav-action:hover {
  opacity: 1;
}

.nav-action {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 18, 14, 0.9), rgba(5, 18, 14, 0.45) 44%, rgba(5, 18, 14, 0.08)),
    linear-gradient(0deg, rgba(5, 18, 14, 0.75), rgba(5, 18, 14, 0.05) 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 770px;
  padding: 0 clamp(20px, 7vw, 88px) clamp(70px, 10vh, 118px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
}

h3 {
  margin-bottom: 9px;
  font-size: 23px;
  line-height: 1.08;
}

.hero-text {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
}

.button.primary {
  color: #17211c;
  background: var(--gold);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.metric {
  padding: 28px clamp(18px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 84px);
}

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

.section.dark {
  color: #f8f3e8;
  background:
    linear-gradient(135deg, rgba(201, 161, 92, 0.12), rgba(24, 56, 93, 0.18)),
    var(--green-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

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

.product-card {
  display: grid;
  grid-template-rows: minmax(250px, auto) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf2;
}

.product-card.wide {
  grid-column: span 2;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.product-card div {
  padding: 24px;
}

.product-card p:not(.label) {
  color: var(--muted);
}

.label {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tier-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.tier-row {
  display: grid;
  grid-template-columns: 0.72fr 1.15fr 1.65fr 1fr;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tier-row:last-child {
  border-bottom: 0;
}

.tier-row.header {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(70px, 9vw, 132px) clamp(20px, 6vw, 84px);
  background: #fffdf7;
}

.system-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.system-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.system-gallery img {
  width: 100%;
  height: 100%;
  min-height: 205px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.system-gallery img:first-child {
  grid-row: span 2;
}

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

.family-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(70px, 9vw, 124px) clamp(20px, 6vw, 84px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 41, 31, 0.96), rgba(11, 75, 55, 0.9)),
    var(--green);
}

.contact-band h2 {
  margin-bottom: 20px;
}

.contact-band p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  align-self: start;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
}

select,
input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

select option {
  color: var(--ink);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 84px);
  color: var(--muted);
  background: #fffaf0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-band,
  .product-grid,
  .section-heading,
  .split-band,
  .contact-band,
  .family-strip {
    grid-template-columns: 1fr;
  }

  .product-card.wide {
    grid-column: auto;
  }

  .tier-row {
    grid-template-columns: 0.65fr 1fr;
  }

  .tier-row.header {
    display: none;
  }

  .system-gallery {
    grid-template-columns: 1fr;
  }

  .system-gallery img:first-child {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-copy {
    padding: 0 18px 58px;
  }

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

  .button {
    width: 100%;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tier-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .site-footer {
    flex-direction: column;
  }
}
