:root {
  --bg-deep: #03130f;
  --bg: #071b16;
  --felt: #123527;
  --felt-2: #173f2e;
  --line: rgba(243, 231, 206, 0.14);
  --ivory: #f3e7ce;
  --ivory-dim: #d8cdb6;
  --gold: #e5b45c;
  --gold-deep: #b98438;
  --green: #62ce82;
  --green-deep: #2d8b54;
  --yellow: #f2c653;
  --yellow-deep: #b88924;
  --red: #d95750;
  --red-deep: #a8322e;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 19, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ivory-dim);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 11px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg-deep);
  background: var(--gold);
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(18, 53, 39, 0.34), transparent 45%),
    radial-gradient(circle at 26% 24%, rgba(98, 206, 130, 0.18), transparent 34%),
    radial-gradient(circle at 80% 22%, rgba(229, 180, 92, 0.16), transparent 30%),
    linear-gradient(180deg, #123527 0%, #071b16 52%, #03130f 100%);
  overflow: hidden;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 42px;
}

.hero-copy-wrap {
  min-width: 0;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(44px, 7.6vw, 92px);
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--ivory-dim);
  font-size: clamp(18px, 2.2vw, 23px);
}

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

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

.button.primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 12px 30px rgba(229, 180, 92, 0.22);
}

.button.secondary {
  color: var(--ivory);
  border-color: var(--line);
  background: rgba(243, 231, 206, 0.08);
}

.hero-art {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 22px 0;
}

.app-icon {
  width: min(100%, 380px);
  border-radius: 26%;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.dice-row {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.die {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 4px solid;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.die-red {
  background: var(--red);
  border-color: var(--red-deep);
  transform: rotate(-10deg);
}

.die-yellow {
  background: var(--yellow);
  border-color: var(--yellow-deep);
  transform: translateY(-8px);
}

.die-green {
  background: var(--green);
  border-color: var(--green-deep);
  transform: rotate(10deg);
}

.accent-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 8px;
}

.accent-strip span:nth-child(1) { background: var(--red); }
.accent-strip span:nth-child(2) { background: var(--yellow); }
.accent-strip span:nth-child(3) { background: var(--green); }

.page-hero {
  background:
    linear-gradient(90deg, rgba(3, 19, 15, 0.96), rgba(18, 53, 39, 0.72)),
    url("assets/icon.png") center right 8vw / min(36vw, 340px) no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.page-hero h1 {
  font-size: clamp(40px, 7vw, 74px);
}

.page-hero p {
  max-width: 690px;
  color: var(--ivory-dim);
  font-size: 19px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.section.tight {
  padding-top: 36px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head p,
.lede {
  max-width: 700px;
  color: var(--ivory-dim);
  font-size: 17px;
}

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

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

.card,
.policy-block {
  background: rgba(23, 63, 46, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.card strong {
  color: var(--gold);
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card h3,
.policy-block h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p,
.policy-block p,
.policy-block li {
  color: var(--ivory-dim);
}

.card a,
.policy-block a {
  color: var(--gold);
  font-weight: 800;
}

.policy-block h2 {
  margin-top: 28px;
}

.policy-block h2:first-child {
  margin-top: 0;
}

.callout {
  background:
    linear-gradient(135deg, rgba(229, 180, 92, 0.18), rgba(98, 206, 130, 0.12)),
    var(--felt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.callout .section {
  padding: 46px 0;
}

.callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.callout p {
  color: var(--ivory-dim);
  margin-bottom: 0;
}

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

.support-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(243, 231, 206, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--ivory-dim);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ivory-dim);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ivory);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-art {
    order: -1;
  }

  .app-icon {
    width: min(74vw, 300px);
  }

  .page-hero {
    background:
      linear-gradient(180deg, rgba(3, 19, 15, 0.9), rgba(18, 53, 39, 0.82)),
      url("assets/icon.png") top 18px right -64px / 220px no-repeat;
  }

  .page-hero .wrap {
    padding-top: 120px;
  }

  .section-head,
  .footer-inner,
  .callout-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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