:root {
  --sky: #79d4ef;
  --sky-deep: #48b8dc;
  --grass: #6eaa53;
  --grass-dark: #477d3b;
  --carrot: #ef8647;
  --sun: #ffd56a;
  --cream: #fffaf0;
  --paper: #fff4d5;
  --wood: #68452f;
  --wood-light: #9a6a43;
  --ink: #3f2d21;
  --muted: #735e4f;
  --line: rgba(104, 69, 47, 0.24);
  --shadow: 0 16px 0 rgba(104, 69, 47, 0.12), 0 24px 48px rgba(58, 91, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 15% 11%, rgba(255, 255, 255, 0.85) 0 5%, transparent 5.3%),
    linear-gradient(180deg, var(--sky) 0 32%, #dff3cf 32% 100%);
  content: "";
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

.site-shell {
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 3px solid var(--wood);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 6px 0 rgba(104, 69, 47, 0.08);
  backdrop-filter: blur(12px);
}

.nav-row {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: flex;
  width: 190px;
  height: 64px;
  align-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: var(--grass);
  box-shadow: 0 4px 0 var(--grass-dark);
}

.nav-play {
  color: var(--ink) !important;
  background: var(--carrot) !important;
  box-shadow: 0 4px 0 #b45b2e !important;
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  border: 2px solid var(--wood);
  border-radius: 10px;
  color: var(--wood);
  background: var(--sun);
  font-size: 23px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 74px 0 80px;
  border-bottom: 6px solid var(--wood);
  background:
    linear-gradient(180deg, rgba(121, 212, 239, 0.1) 0 64%, rgba(110, 170, 83, 0.94) 64% 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 92px;
  opacity: 0.32;
  background: repeating-linear-gradient(90deg, transparent 0 42px, var(--wood) 42px 48px);
  clip-path: polygon(0 56%, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
}

.eyebrow,
.section-kicker,
.hud-label {
  color: var(--grass-dark);
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--wood);
  border-radius: 9px;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--wood);
}

.display-title,
.page-title,
.section-title {
  margin: 0;
  color: var(--cream);
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: 3px 3px 0 var(--wood), -1px -1px 0 var(--wood), 1px -1px 0 var(--wood), -1px 1px 0 var(--wood);
}

.display-title {
  max-width: 640px;
  margin-top: 25px;
  font-size: clamp(56px, 7vw, 104px);
}

.display-title span {
  display: block;
  color: var(--sun);
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  color: #314c31;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}

.hero-copy-block {
  animation: market-rise 650ms ease both;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 3px solid var(--wood);
  border-radius: 12px;
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--carrot);
  box-shadow: 0 7px 0 #b45b2e;
}

.button-secondary {
  background: var(--paper);
  box-shadow: 0 7px 0 var(--wood-light);
}

.seed-stack {
  position: relative;
  min-height: 590px;
  animation: market-rise 780ms 120ms ease both;
}

.seed-card {
  position: absolute;
  width: 238px;
  padding: 10px 10px 46px;
  border: 4px solid var(--wood);
  border-radius: 22px 22px 13px 13px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

.seed-card img {
  width: 100%;
  aspect-ratio: 0.56;
  border: 2px solid var(--wood);
  border-radius: 13px;
  object-fit: cover;
  object-position: top;
}

.seed-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  color: var(--wood);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.seed-card--hero {
  z-index: 3;
  top: 0;
  left: 31%;
  width: 276px;
  transform: rotate(1deg);
}

.seed-card--farm {
  z-index: 1;
  top: 85px;
  left: 0;
  transform: rotate(-8deg);
}

.seed-card--village {
  z-index: 2;
  top: 102px;
  right: 0;
  transform: rotate(8deg);
}

.seed-card--hero:hover {
  transform: rotate(0) translateY(-8px);
}

.seed-card--farm:hover {
  z-index: 4;
  transform: rotate(-3deg) translateY(-8px);
}

.seed-card--village:hover {
  z-index: 4;
  transform: rotate(3deg) translateY(-8px);
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-paper {
  background-color: var(--cream);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
}

.section-green {
  color: #fff;
  background: var(--grass-dark);
}

.section-sky {
  background: #dff5fb;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-title {
  margin-top: 10px;
  color: var(--grass-dark);
  font-size: clamp(38px, 5vw, 64px);
}

.section-green .section-title {
  color: var(--sun);
}

.section-lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-green .section-lead,
.section-green .section-kicker {
  color: #ecf6dd;
}

.feature-grid,
.journal-grid,
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.journal-card,
.info-card {
  position: relative;
  padding: 28px;
  border: 3px solid var(--wood);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(104, 69, 47, 0.18);
}

.feature-card::before {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border: 2px solid var(--wood);
  border-radius: 13px;
  background: var(--sun);
  content: attr(data-icon);
  font-size: 25px;
}

.feature-card h3,
.journal-card h3,
.info-card h3 {
  margin: 0 0 10px;
  color: var(--grass-dark);
  font-size: 23px;
  line-height: 1.2;
}

.feature-card p,
.journal-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card,
.journal-card,
.info-card,
.shot {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.journal-card:hover,
.info-card:hover,
.shot:hover {
  transform: translateY(-5px);
  box-shadow: 10px 13px 0 rgba(104, 69, 47, 0.18);
}

.loop-grid,
.split-grid,
.contact-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.phone-frame {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 12px;
  border: 5px solid var(--wood);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 14px 14px 0 rgba(59, 92, 50, 0.35);
}

.phone-frame img {
  width: 100%;
  border-radius: 20px;
}

.loop-list {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.loop-step {
  display: grid;
  align-items: start;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.loop-step strong {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--wood);
  border-radius: 10px;
  color: var(--wood);
  background: var(--sun);
  font-family: "Courier New", monospace;
}

.loop-step h3 {
  margin: 0 0 4px;
  color: var(--sun);
  font-size: 22px;
}

.loop-step p {
  margin: 0;
  color: #eff8e9;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.shot {
  padding: 12px 12px 18px;
  border: 3px solid var(--wood);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 9px 9px 0 rgba(104, 69, 47, 0.18);
}

.shot img {
  width: 100%;
  aspect-ratio: 0.56;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding-top: 14px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.market-cta {
  display: grid;
  align-items: center;
  padding: 52px;
  border: 4px solid var(--wood);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 213, 106, 0.95), rgba(255, 244, 213, 0.95)),
    repeating-linear-gradient(90deg, var(--paper) 0 24px, var(--carrot) 24px 48px);
  box-shadow: 12px 12px 0 var(--wood);
  grid-template-columns: 1fr auto;
  gap: 34px;
}

.market-cta h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.market-cta p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 72px 0;
  border-bottom: 5px solid var(--wood);
  background: linear-gradient(180deg, var(--sky), #c5f0dc);
  text-align: center;
}

.page-title {
  margin-top: 18px;
  font-size: clamp(48px, 8vw, 86px);
}

.page-intro {
  max-width: 720px;
  margin: 24px auto 0;
  color: #355237;
  font-size: 18px;
  font-weight: 700;
}

.journal-card .tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 7px;
  color: #fff;
  background: var(--carrot);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  padding: 22px;
  border: 3px solid var(--wood);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(104, 69, 47, 0.16);
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--grass-dark);
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-card {
  max-width: 900px;
  padding: 38px;
  border: 3px solid var(--wood);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(104, 69, 47, 0.15);
}

.legal-card h2 {
  margin-top: 38px;
  color: var(--grass-dark);
}

.legal-card p,
.legal-card li {
  max-width: 75ch;
}

.site-footer {
  border-top: 5px solid var(--wood);
  color: #f8f3e7;
  background: #3f6737;
}

.footer-grid {
  display: grid;
  padding: 58px 0 38px;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 48px;
}

.footer-logo {
  width: 190px;
  height: 90px;
  object-fit: contain;
  transform: scale(1.75);
  transform-origin: left center;
}

.footer-copy {
  max-width: 430px;
  margin: 12px 0 0;
  color: #dcebd4;
}

.footer-title {
  margin: 0 0 14px;
  color: var(--sun);
  font-family: "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #dcebd4;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid > :nth-child(2),
.journal-grid > :nth-child(2),
.value-grid > :nth-child(2),
.shot-grid > :nth-child(2) {
  transition-delay: 80ms;
}

.feature-grid > :nth-child(3),
.journal-grid > :nth-child(3),
.value-grid > :nth-child(3),
.shot-grid > :nth-child(3) {
  transition-delay: 160ms;
}

@keyframes market-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy policy pages share the new visual language without altering policy text. */
.body-style-1,
.body-style-1 .page {
  color: var(--ink);
  background: var(--cream);
}

.body-style-1 .rd-navbar,
.body-style-1 .rd-navbar-aside-outer,
.body-style-1 .rd-navbar-main-outer {
  background: var(--cream) !important;
}

.body-style-1 .brand-logo-dark,
.body-style-1 .brand-logo-light {
  width: 190px !important;
  height: 74px !important;
  object-fit: contain;
}

.body-style-1 .button-primary,
.body-style-1 .button-secondary-2 {
  border-color: var(--wood) !important;
  color: #fff !important;
  background: var(--carrot) !important;
}

.body-style-1 .bg-gray-700,
.body-style-1 .bg-gray-700-invariable {
  background: #3f6737 !important;
}

.body-style-1 .breadcrumbs-modern {
  background: var(--sky) !important;
}

.body-style-1 .breadcrumbs-modern .box-transform {
  opacity: 0.08;
}

.policy-modern .page-header,
.policy-modern .footer-classic,
.policy-modern .breadcrumbs-modern {
  display: none;
}

.policy-modern .page {
  min-height: auto;
}

.policy-modern .featured-games {
  padding-top: 36px;
}

.policy-modern .container1 {
  width: min(900px, calc(100% - 32px));
  max-width: none;
}

.policy-modern .heading-title-con,
.policy-modern .heading-title-con p,
.policy-modern .heading-title-con div,
.policy-modern .heading-title-con strong {
  color: var(--ink) !important;
}

.policy-modern .heading-title-con {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.policy-modern .heading-title-con p {
  font-size: 16px !important;
  font-weight: 400 !important;
}

.policy-modern .heading-title-con > p[style*="font-weight: bold"] {
  margin-top: 34px !important;
  color: var(--grass-dark) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 3px solid var(--wood);
    background: var(--cream);
    box-shadow: 0 10px 20px rgba(104, 69, 47, 0.16);
  }

  .main-nav.is-open {
    display: grid;
  }

  .menu-button {
    display: block;
  }

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

  .hero {
    padding-top: 56px;
  }

  .hero-copy-block {
    text-align: center;
  }

  .hero-copy,
  .button-row {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .seed-stack {
    min-height: 565px;
  }

  .seed-card--hero {
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
  }

  .seed-card--hero:hover {
    transform: translateX(-50%) rotate(0) translateY(-8px);
  }

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

  .market-cta {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand-mark {
    width: 155px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 66px;
  }

  .display-title {
    font-size: clamp(50px, 17vw, 72px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .seed-stack {
    min-height: 500px;
  }

  .seed-card {
    width: 170px;
  }

  .seed-card--hero {
    width: 210px;
  }

  .seed-card--farm,
  .seed-card--village {
    top: 95px;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid,
  .journal-grid,
  .value-grid,
  .shot-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .journal-card,
  .info-card,
  .legal-card {
    padding: 24px;
  }

  .shot {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .market-cta {
    padding: 30px 24px;
    box-shadow: 7px 7px 0 var(--wood);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
