:root {
  --bg: #F7F0E6;
  --bg-alt: #EDE4D3;
  --fg: #1A1208;
  --accent: #7D1F2A;
  --accent-light: #A8323D;
  --gold: #C9963E;
  --gold-light: #E2BA6A;
  --cream: #FDFAF4;
  --text: #2D1F14;
  --text-muted: #6B5344;
  --border: #D4C4B0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.nav-logo-accent { color: var(--gold); }
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-games-link {
  margin-left: auto;
  padding: 7px 14px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-games-link:hover { color: var(--accent); }
.nav-editor-link {
  padding: 7px 18px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.nav-editor-link:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  padding: 80px 32px 60px;
  background: var(--bg);
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
}

/* Board preview */
.board-preview {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
  background: #2C1810;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  box-shadow: 0 20px 60px rgba(125,31,42,0.18), 0 8px 24px rgba(0,0,0,0.25);
}
.board-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.board-corner-tl { background: #4CAF50; color: white; }
.board-corner-br { background: var(--accent); color: white; }
.corner-label { font-weight: 900; font-size: 0.9rem; }
.board-row {
  display: contents;
}
.board-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.58rem;
  padding: 4px;
  border-radius: 3px;
  text-align: center;
}
.board-cell-light { background: #F5F5F5; color: #333; }
.board-cell-dark  { background: #3D5A80; color: white; }
.board-cell-chest, .board-cell-chance { background: #EDE0CC; color: var(--text-muted); font-weight: 700; font-size: 0.48rem; letter-spacing: 0.05em; }
.cell-name { font-weight: 600; line-height: 1.2; }
.cell-price { color: var(--accent); font-weight: 700; }
.board-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.center-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--gold-light);
  text-align: center;
  line-height: 1.3;
}

/* Floating cards */
.hero-visual { position: relative; }
.floating-cards { position: absolute; top: -20px; right: -30px; }
.float-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  position: absolute;
  width: 120px;
}
.float-card-1 { top: 20px; right: -40px; transform: rotate(8deg); }
.float-card-2 { top: 90px; right: -50px; transform: rotate(-5deg); }
.float-card-3 { top: 160px; right: -20px; transform: rotate(3deg); }
.card-icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.card-chance { background: var(--accent); color: white; }
.card-chest  { background: var(--gold); color: white; }
.card-text   { font-size: 0.68rem; line-height: 1.4; color: var(--text); }
.card-face {
  width: 50px; height: 28px;
  background: var(--gold-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ── FEATURES ── */
.features {
  padding: 80px 32px;
  background: var(--cream);
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 48px;
  max-width: 600px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── EDITOR PREVIEW ── */
.editor-preview {
  padding: 80px 32px;
  background: var(--bg);
}
.editor-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.editor-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.mockup-window {
  background: #1C1C1E;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.mockup-bar {
  background: #2C2C2E;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.mockup-content { padding: 20px; }
.mockup-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.step-num {
  width: 22px; height: 22px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-fields { display: flex; flex-direction: column; gap: 6px; }
.step-field {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.s-label {
  font-size: 0.65rem;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 72px;
}
.s-val {
  font-size: 0.8rem;
  color: #F5F0E6;
  font-style: italic;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  padding-bottom: 1px;
}
.mockup-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-preview, .btn-save {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.btn-preview { background: var(--accent); color: white; }
.btn-save    { background: var(--gold); color: white; }

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 80px 32px;
  background: var(--cream);
}
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 48px;
}
.step-num-big {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 12px;
}
.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.step-divider {
  width: 1px;
  height: 100px;
  background: var(--border);
  margin: 0 24px;
  align-self: center;
}

/* ── CLOSING ── */
.closing {
  padding: 100px 32px;
  background: var(--accent);
  text-align: center;
}
.closing-inner { max-width: 680px; margin: 0 auto; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
}
.closing-body {
  font-size: 1.1rem;
  color: rgba(253, 250, 244, 0.75);
  line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer {
  padding: 32px;
  background: #2C1810;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-note { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .editor-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-divider { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .features { padding: 48px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .editor-preview { padding: 48px 20px; }
  .how-it-works { padding: 48px 20px; }
  .closing { padding: 64px 20px; }
  .nav-inner { padding: 12px 20px; }
}