*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ground: #F1E9DC;
  --surface: #FFFFFF;
  --surface-soft: #FBF7F0;
  --stroke: #EBE1D3;
  --ink: #4A342B;
  --muted: #9C8878;
  --dim: #B3A28C;
  --accent: #F2A03C;
  --accent-deep: #E8892A;
  --green: #4FA96A;
  --blue: #B9D2DD;
  --violet: #7C7BE0;
  --pink: #E86A9A;
  --gold: #F5C243;
  --radius: 24px;
  --radius-sm: 16px;
  --shell: 1040px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 700; line-height: 1.15; }

a { color: var(--accent-deep); }

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 233, 220, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.nav .inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav .brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav .brand span { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.5px; }
.nav .links { display: flex; gap: 22px; }
.nav .links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav .links a:hover { color: var(--ink); }

/* ── Hero ── */
.hero { padding: 76px 0 64px; }
.hero .inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .icon {
  width: 108px; height: 108px; border-radius: 26px; display: block; margin-bottom: 26px;
  box-shadow: 0 14px 34px rgba(74, 52, 43, 0.18);
}
.hero h1 { font-size: clamp(3rem, 7vw, 4.4rem); letter-spacing: 2px; margin-bottom: 14px; }
.hero .tagline { font-family: 'Baloo 2', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--stroke); }

/* ── Board demo ── */
.board {
  background: var(--surface); border-radius: 34px; padding: 18px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  box-shadow: 0 20px 50px rgba(74, 52, 43, 0.13);
  max-width: 380px; margin-left: auto;
}
.board .cell {
  aspect-ratio: 1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.board .cell img { width: 74%; height: 74%; object-fit: contain; }
.board .cell.mark::after {
  content: ""; width: 46%; height: 46%;
  background: #fff;
  clip-path: polygon(18% 0, 50% 32%, 82% 0, 100% 18%, 68% 50%, 100% 82%, 82% 100%, 50% 68%, 18% 100%, 0 82%, 32% 50%, 0 18%);
}
.g { background: var(--green); }
.b { background: var(--blue); }
.v { background: var(--violet); }
.p { background: var(--pink); }
.y { background: var(--gold); }

/* ── Sections ── */
section { padding: 68px 0; }
section.tint { background: var(--surface-soft); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ── Rules ── */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
}
.rule .badge {
  width: 54px; height: 54px; border-radius: 18px; background: var(--surface-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--accent);
}
.rule h3 { font-size: 1.2rem; margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 0.94rem; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 18px; align-items: flex-start;
}
.feature .glyph {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ── Shots ── */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { text-align: center; }
.shots img {
  width: 100%; border-radius: 22px; border: 1px solid var(--stroke);
  box-shadow: 0 14px 34px rgba(74, 52, 43, 0.10); display: block;
}
.shots figcaption { color: var(--muted); font-size: 0.86rem; margin-top: 12px; }

/* ── Pandas ── */
.pandas { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.pandas figure { width: 108px; text-align: center; }
.pandas img { width: 88px; height: 88px; object-fit: contain; }
.pandas figcaption { font-family: 'Baloo 2', sans-serif; font-weight: 600; color: var(--muted); font-size: 0.92rem; }

/* ── CTA ── */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 26px; }

/* ── Footer ── */
.foot { background: var(--ink); color: #E9DDCE; padding: 46px 0 40px; }
.foot .inner { max-width: var(--shell); margin: 0 auto; padding: 0 24px; text-align: center; }
.foot .links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.foot .links a { color: #E9DDCE; text-decoration: none; font-size: 0.9rem; opacity: 0.82; }
.foot .links a:hover { opacity: 1; }
.foot .copy { font-size: 0.82rem; opacity: 0.6; }

/* ── Legal ── */
.legal { padding: 64px 0 80px; max-width: 780px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal .updated { color: var(--dim); font-size: 0.88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.22rem; margin-top: 34px; margin-bottom: 10px; color: var(--accent-deep); }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; font-size: 0.97rem; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal .lead {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 24px 26px; color: var(--ink); font-size: 1rem;
}

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 20px 24px; margin-bottom: 12px;
}
.faq summary {
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 0.94rem; margin-top: 12px; }

@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; gap: 40px; }
  .board { margin: 0 auto; }
  .rules, .features, .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rules, .features, .shots { grid-template-columns: 1fr; }
  .nav .links { gap: 14px; }
  .nav .links a { font-size: 0.84rem; }
}
