:root {
  color-scheme: light;
  --ink: #173d36;
  --muted: #4b665c;
  --forest: #123831;
  --paper: #faf8ed;
  --gold: #ffd454;
  --line: #dce4d6;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #187bd3; outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { line-height: 1.6; }
.wrap { width: min(1120px, 100% - 56px); margin-inline: auto; }
.top { background: #102f29; color: #fff8e4; }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 94px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(14px, 4vw, 44px); font-size: .95rem; font-weight: 700; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { border: 1px solid #6b9080; border-radius: 9px; padding: 9px 14px; font-weight: 700; }
.nav-cta:hover { background: #285143; }
.hero {
  color: #fff8e4;
  background: #1b4534 url("vila-verde.jpg") center 44% / cover no-repeat;
  isolation: isolate;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0c3029 0%, #0c3029f5 15%, #0c3029c9 33%, #0c302948 60%, #0c302900 82%);
}
.hero-inner { min-height: 538px; display: flex; align-items: center; padding-block: 70px; }
.hero-copy { max-width: 640px; }
h1 { font-size: clamp(2.75rem, 6.15vw, 5rem); line-height: .99; letter-spacing: -.063em; text-wrap: balance; }
h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #fff9e9; max-width: 445px; margin-top: 23px; font-size: clamp(1rem, 1.75vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 10px 17px; border-radius: 10px; font-weight: 800; }
.primary { background: var(--gold); color: #283117; box-shadow: 0 3px #d79224; }
.primary:hover { background: #ffe487; }
.play-store { background: #eef2e6; border: 1px solid #a9bbaa; color: #294438; }
.coming-soon { padding: 3px 7px; border-radius: 5px; background: #d5e1cb; color: #294438; font-size: .72em; white-space: nowrap; }
.download-actions { margin-top: 0; }
.ghost { background: #193f33a6; border: 1px solid #c6ddc8; }
.ghost:hover { background: #285746; }
.section { padding-block: clamp(48px, 7vw, 85px); }
.intro { max-width: 720px; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4.45vw, 3.25rem); letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.intro p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.demo { display: grid; grid-template-columns: 1.35fr 1fr; border: 1px solid #d6e3c9; border-radius: 24px; background: #fffdf5; overflow: hidden; box-shadow: 0 9px 24px #284b2312; }
.field { min-width: 0; background: radial-gradient(ellipse at 50% 30%, #ebf4cc, #cbdcb1 100%); display: grid; align-content: center; justify-items: center; padding: 10px 16px 25px; }
.board { position: relative; width: min(100%, 485px); aspect-ratio: 1.58; transform: translateY(16px); }
.tile { position: absolute; left: var(--x); top: var(--y); width: 31%; aspect-ratio: 1.72; transform: translate(-50%, -50%); background: transparent; border: 0; padding: 0; isolation: isolate; }
.tile::before, .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.tile::before { background: #8f652c; transform: translateY(12%); }
.tile::after { background: linear-gradient(150deg, #a3da60, #75b441 70%); border-bottom: 3px solid #4f7d32; }
.plot { cursor: pointer; touch-action: manipulation; }
.plot::after { background: linear-gradient(145deg, #fff9ad, #eac74b); }
.plot:hover::after, .plot:focus-visible::after { background: #fff3a0; }
.plot[aria-pressed="true"]::after { background: linear-gradient(160deg, #fff4a4, #ffc738); }
.plot:focus-visible { z-index: 1; outline-color: #215e43; border-radius: 14px; }
.marker { display: grid; place-items: center; position: absolute; top: 50%; left: 50%; width: 31px; height: 31px; transform: translate(-50%, -50%); border-radius: 50%; font-weight: 800; background: #fffcec; color: #375526; box-shadow: 0 2px 4px #4d601f55; }
.piece { position: absolute; width: 82%; left: 9%; bottom: 24%; pointer-events: none; filter: drop-shadow(0 4px 3px #33521946); }
.park, .plot[aria-pressed="true"] .marker { visibility: hidden; }
.plot[aria-pressed="true"] .park { visibility: visible; }
.field-hint { text-align: center; color: #365238; font-weight: 700; font-size: .92rem; }
.score { padding: clamp(23px, 4vw, 42px); display: grid; align-content: center; }
.score-title { display: flex; align-items: center; gap: 12px; }
.score-title img { object-fit: contain; }
h3 { font-size: clamp(1.12rem, 2vw, 1.45rem); line-height: 1.1; }
.score-title p { color: var(--muted); font-size: .87rem; }
.score dl { margin: 17px 0 13px; }
.score dl div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.score dd { font-size: 1.24rem; font-weight: 800; color: #22744b; font-variant-numeric: tabular-nums; }
.score dl .total { font-weight: 800; }
.score .total dd { font-size: 1.55rem; }
.detail { font-size: .92rem; color: var(--muted); min-height: 3.1em; }
.reset { justify-self: start; border: 1px solid #b5c9b5; border-radius: 8px; padding: 8px 12px; margin-top: 10px; color: var(--forest); background: #f2f7e9; cursor: pointer; }
.reset:disabled { opacity: .6; cursor: default; }
.progress { background: #173b32; color: #fff8e6; }
.progress .intro p { color: #d4e5d2; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article { padding: 14px 20px 22px; background: #234d3f; border: 1px solid #517967; border-radius: 17px; }
.step-art { height: 132px; display: grid; place-items: center; background: radial-gradient(ellipse, #70a15b75, transparent 64%); }
.step-art img { width: 142px; height: 120px; object-fit: contain; }
.steps p { color: #dae9d4; font-size: .96rem; margin-top: 8px; }
.cities { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.cities article { min-height: 169px; position: relative; display: flex; align-items: end; isolation: isolate; border-radius: 15px; overflow: hidden; color: #fff9e9; background: #315849; }
.cities article::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0b251cf9, #0b251c9f 27%, transparent 70%); z-index: -1; }
.cities img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cities article div { padding: 17px; }
.cities p { font-size: .87rem; margin-top: 3px; }
.cities .featured { grid-row: span 2; }
.update { display: grid; grid-template-columns: 1fr minmax(200px, 32%); gap: clamp(20px, 5vw, 65px); background: #f1ebd8; border: 1px solid #e4dcc4; padding: clamp(24px, 5vw, 60px); border-radius: 22px; align-items: center; margin-bottom: clamp(48px, 7vw, 85px); }
.update p { margin: 15px 0 20px; color: var(--muted); }
.capture { margin-inline: auto; max-height: 330px; width: auto; border-radius: 11px; border: 4px solid #fff9e9; box-shadow: 0 10px 20px #173b3240; }
footer { background: #102f29; color: #fff8e4; }
.footer-inner { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding-block: 16px; }
@media (max-width: 800px) {
  .hero-inner { min-height: 490px; }
  .hero::before { background: linear-gradient(90deg, #0c3029f5, #0c3029bd 45%, #0c30290d 100%); }
  .cities { grid-template-columns: 1fr 1fr; }
  .cities .featured { grid-column: span 2; grid-row: auto; min-height: 240px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; gap: 8px 12px; padding: 4px 0 11px; }
  .nav nav { order: 1; flex-basis: 100%; justify-content: space-between; }
  .hero { background-position: center top; background-size: auto 78%; }
  .hero::before { background: linear-gradient(0deg, #0c3029 12%, #0c3029ed 36%, #0c30293b 77%, #0c302910 100%); }
  .hero-inner { min-height: 555px; align-items: end; padding: 146px 0 36px; }
  h1 { font-size: clamp(2.45rem, 9vw, 3.6rem); }
  .hero p { margin-top: 15px; }
  .actions { margin-top: 20px; gap: 10px; }
  .button { font-size: .93rem; }
  .demo, .steps, .update { grid-template-columns: 1fr; }
  .field { padding-bottom: 17px; }
  .board { transform: translateY(11px); }
  .steps article { display: grid; grid-template-columns: 92px 1fr; column-gap: 12px; align-items: center; padding: 12px; }
  .step-art { grid-row: span 2; height: 88px; }
  .step-art img { height: 84px; }
  .steps p { margin-top: 4px; }
  .cities article { min-height: 155px; }
  .cities article div { padding: 11px; }
  .footer-inner nav { flex-wrap: wrap; gap: 9px 15px; }
  .footer-inner .brand { flex: 0 0 70px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
