/* ===== WordForge Landing — design tokens mirror the in-app theme ===== */
:root {
  --background: #F8F6EF;
  --surface: #FFFFFF;
  --primary: #4D9F32;
  --primary-light: #55B63B;
  --primary-dark: #1F4B2A;
  --forest: #247A34;
  --accent: #E2AA2E;
  --ink: #18251B;
  --ink-secondary: #5F6D5C;
  --border: #E3E0D7;
  --gem: #2EC4E6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(31, 75, 42, 0.14);
  --shadow-sm: 0 6px 18px rgba(31, 75, 42, 0.10);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

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

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 239, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--forest));
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand-mark.sm { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 700; color: var(--ink-secondary); transition: color .15s; }
.nav a:hover { color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 13px;
  color: var(--ink-secondary); padding: 7px 13px; transition: all .15s;
}
.lang-switch button.active { background: var(--primary); color: #fff; }

/* ===== Hero ===== */
.hero { padding: 70px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 900; color: var(--primary-dark); letter-spacing: -0.5px; }
.lead { font-size: 18px; color: var(--ink-secondary); margin-top: 18px; max-width: 38ch; font-weight: 600; }
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-secondary); font-weight: 700; }

.cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.store-btn {
  display: flex; flex-direction: column; justify-content: center;
  padding: 11px 22px; border-radius: 14px;
  background: var(--primary-dark); color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
  min-width: 168px;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-sub { font-size: 11px; opacity: .82; font-weight: 700; }
.store-name { font-size: 19px; font-weight: 900; line-height: 1.1; }

/* Hero art / phone mock */
.hero-art { display: grid; place-items: center; }
.phone {
  width: 240px; height: 480px; border-radius: 38px;
  background: linear-gradient(160deg, var(--primary-dark), var(--forest));
  padding: 14px; box-shadow: var(--shadow); transform: rotate(3deg);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 26px;
  background: var(--background); display: grid; place-items: center;
}
.mini-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 18px;
}
.mini-board span {
  width: 42px; height: 42px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border); box-shadow: 0 2px 0 var(--border);
}
.mini-board .filled { background: var(--accent); color: #4a3500; border-color: #c9941f; box-shadow: 0 2px 0 #c9941f; }
.mini-board .bonus { background: var(--primary); color: #fff; font-size: 13px; border-color: var(--forest); box-shadow: 0 2px 0 var(--forest); }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, #fff, #fbfaf4); border-block: 1px solid var(--border); }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 900; color: var(--primary-dark); margin-bottom: 38px; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.modes { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { font-size: 32px; margin-bottom: 12px; }
.card h3 { font-size: 18px; font-weight: 900; color: var(--primary-dark); margin-bottom: 7px; }
.card p { font-size: 14.5px; color: var(--ink-secondary); font-weight: 600; }

.mode-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.mode-tag {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .08em;
  color: #fff; background: var(--primary); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.mode-card h3 { font-size: 22px; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.mode-card p { font-size: 15px; color: var(--ink-secondary); font-weight: 600; }

/* ===== Download ===== */
.download { background: linear-gradient(165deg, #eef5e8, #f8f6ef); }
.download-inner { text-align: center; }
.soon-note { margin-top: 18px; font-size: 13px; color: var(--ink-secondary); font-weight: 700; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-weight: 900; margin-left: 8px; }
.footer-pub { font-size: 13px; color: var(--ink-secondary); margin-top: 8px; font-weight: 600; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-weight: 700; color: var(--ink-secondary); transition: color .15s; }
.footer-links a:hover { color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-art { order: 0; margin-bottom: 10px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .features, .modes { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 460px) {
  .store-btn { min-width: 0; flex: 1; }
}
