:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #eef5f0;
  --ink: #191c1f;
  --muted: #5f666e;
  --line: #d9ddd7;
  --green: #156f4c;
  --green-dark: #0d4d38;
  --red: #b33c35;
  --gold: #c9822d;
  --blue: #2d5b87;
  --shadow: 0 22px 60px rgba(25, 28, 31, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(25, 28, 31, 0.08);
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-icon {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(25, 28, 31, 0.12);
  border-radius: 0.9rem;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(25, 28, 31, 0.12);
}

.brand-icon.small {
  width: 34px;
  height: 34px;
  border-radius: 0.7rem;
}

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

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(21, 111, 76, 0.1);
  color: var(--green-dark);
  outline: none;
}

.main {
  min-height: 70vh;
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 3.7rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  margin: 1.25rem 0 0;
  max-width: 620px;
  color: #2c3034;
  font-size: 1.35rem;
  line-height: 1.5;
}

.hero-subtext {
  margin: 1rem 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green-dark);
  color: #ffffff;
}

.button.secondary {
  background: var(--surface);
  color: var(--green-dark);
  border-color: var(--line);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 10px 24px rgba(25, 28, 31, 0.12);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.table-scene {
  position: absolute;
  inset: 1rem 0 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #145a3e, #0f3d31);
  box-shadow: var(--shadow);
}

.card-chip {
  position: absolute;
  width: 96px;
  height: 132px;
  border-radius: 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(25, 28, 31, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.card-chip::before,
.card-chip::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
}

.card-chip::before {
  width: 16px;
  height: 16px;
  top: 16px;
  left: 16px;
}

.card-chip::after {
  width: 48px;
  height: 48px;
  right: 22px;
  bottom: 26px;
  opacity: 0.12;
}

.card-chip.red {
  color: var(--red);
  left: 8%;
  top: 12%;
  transform: rotate(-14deg);
}

.card-chip.gold {
  color: var(--gold);
  right: 7%;
  bottom: 11%;
  transform: rotate(11deg);
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  min-height: 535px;
  border: 12px solid #111417;
  border-radius: 2.4rem;
  background: #f9faf8;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 25px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 1rem 1rem;
  background: #111417;
  z-index: 1;
}

.phone-screen {
  padding: 2.35rem 1.05rem 1rem;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.screen-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.screen-title {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.round-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 0.82rem;
}

.score-list {
  display: grid;
  gap: 0.55rem;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem;
  border: 1px solid #e3e6df;
  border-radius: 0.85rem;
  background: #ffffff;
}

.player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
}

.avatar.green {
  background: var(--green);
}

.avatar.red {
  background: var(--red);
}

.avatar.blue {
  background: var(--blue);
}

.player-name {
  font-weight: 850;
  line-height: 1.15;
}

.player-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.score {
  font-size: 1.2rem;
  font-weight: 900;
}

.calculator-panel {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 1rem;
  background: #17201c;
  color: #ffffff;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.calc-tile {
  min-height: 62px;
  padding: 0.5rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.calc-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
}

.calc-caption {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.screen-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.screen-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 0.75rem;
  color: #ffffff;
  background: var(--green-dark);
  font-weight: 900;
}

.screen-action.alt {
  color: var(--green-dark);
  background: var(--surface-soft);
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: #ffffff;
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.info-card,
.policy-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.feature-card {
  padding: 1.3rem;
  min-height: 230px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  color: #ffffff;
  background: var(--green);
  font-weight: 950;
}

.feature-card:nth-child(2n) .feature-icon {
  background: var(--red);
}

.feature-card:nth-child(3n) .feature-icon {
  background: var(--blue);
}

.feature-card h3,
.info-card h3,
.policy-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.feature-card p,
.info-card p,
.policy-card p,
.policy-card li,
.faq-item p {
  color: var(--muted);
}

.feature-card p {
  margin: 0.7rem 0 0;
}

.game-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.game-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(21, 111, 76, 0.1);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.step {
  padding-top: 1rem;
  border-top: 3px solid var(--line);
}

.step-number {
  color: var(--green-dark);
  font-weight: 950;
  font-size: 0.92rem;
}

.step h3 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.cta-band {
  padding: 3rem 0;
  background: #18201c;
  color: #ffffff;
}

.cta-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.cta-inner p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cta-inner .button.secondary {
  background: #ffffff;
  border-color: #ffffff;
}

.page-hero {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 2rem;
}

.page-hero h1 {
  font-size: 3.2rem;
}

.page-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.content-stack {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 5rem;
  display: grid;
  gap: 1rem;
}

.info-card,
.policy-card {
  padding: 1.4rem;
}

.info-card p,
.policy-card p {
  margin: 0.65rem 0 0;
}

.info-card ul,
.policy-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.info-card li + li,
.policy-card li + li {
  margin-top: 0.4rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: #18201c;
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.4rem;
}

.contact-card p {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-card a {
  color: #ffffff;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  min-height: 56px;
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
}

.date-note {
  color: var(--muted);
  font-weight: 800;
}

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

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-dark);
  outline: none;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: 470px;
  }

  h1 {
    font-size: 3.1rem;
  }

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

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

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .nav-links a {
    padding-inline: 0.65rem;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .hero-lede {
    font-size: 1.15rem;
  }

  .hero {
    gap: 1.4rem;
    padding: 2rem 0 1rem;
  }

  .hero-visual {
    align-items: start;
    height: 230px;
    min-height: 0;
    overflow: hidden;
  }

  .table-scene {
    inset: 0.7rem 0 auto;
    height: 215px;
    border-radius: 1.2rem;
  }

  .card-chip {
    width: 76px;
    height: 104px;
  }

  .phone {
    width: min(270px, 88vw);
    min-height: 500px;
    border-width: 10px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .section {
    padding: 3.2rem 0;
  }

  .section-heading h2 {
    font-size: 1.9rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.2rem 0;
  }
}
