:root {
  color-scheme: light;
  --bg: #f8fafa;
  --surface: #ffffff;
  --surface-soft: #eef7f3;
  --surface-cool: #e6f4ff;
  --ink: #191c1d;
  --muted: #3d4a3e;
  --accent: #006d37;
  --accent-dark: #005228;
  --practice: #2ecc71;
  --ai: #ff6f6a;
  --online: #268bd8;
  --warning: #f6b73c;
  --border: #d7e3d7;
  --shadow: 0 20px 60px rgba(25, 28, 29, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(46, 204, 113, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 14%, rgba(92, 184, 253, 0.20), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(248, 250, 250, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 227, 215, 0.8);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 0;
  padding: 16px max(22px, calc((100vw - 1120px) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 109, 55, 0.18);
  height: 46px;
  width: 46px;
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.nav a {
  color: var(--muted);
}

.button {
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 109, 55, 0.18);
  color: #ffffff;
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--ink);
}

.hero,
.section,
.legal-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 70px 22px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.78fr);
  min-height: calc(100vh - 78px);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 650;
  max-width: 660px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-top {
  align-items: center;
  background: #f2f4f4;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  padding: 12px 14px;
}

.dot {
  background: #b7c8bd;
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.phone-screen {
  padding: 22px;
}

.app-title {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.app-title img {
  border-radius: 22px;
  height: 72px;
  width: 72px;
}

.letter-board {
  display: grid;
  gap: 10px;
}

.letter-row {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(5, 1fr);
}

.number-row {
  grid-template-columns: repeat(6, 1fr);
}

.guess-row-tiles {
  grid-template-columns: repeat(5, 1fr);
}

.tile {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-bottom: 4px solid rgba(0, 109, 55, 0.24);
  border-radius: 8px;
  display: flex;
  font-size: 26px;
  font-weight: 950;
  height: 58px;
  justify-content: center;
}

.tile.hot {
  background: rgba(255, 111, 106, 0.12);
  border-bottom-color: rgba(255, 111, 106, 0.42);
}

.guess-panel {
  background: #f8fafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 22px;
  padding: 16px;
}

.guess-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 74px 1fr 74px;
}

.guess-number {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 950;
  padding: 12px;
  text-align: center;
}

.hint {
  background: var(--online);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  padding: 12px;
  text-align: center;
}

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 25px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-head {
  max-width: 710px;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.feature-mark {
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-size: 20px;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}

.practice {
  background: var(--practice);
}

.ai {
  background: var(--ai);
}

.online {
  background: var(--online);
}

.warning {
  background: var(--warning);
  color: var(--ink);
}

.split {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.9fr 1.1fr;
}

.info-panel {
  background: var(--accent-dark);
  border-radius: 8px;
  color: #ffffff;
  padding: 28px;
}

.info-panel p {
  color: #d8ede2;
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.check-list li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 14px;
}

.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
  padding: 24px;
}

.store-card img {
  border-radius: 24px;
  height: 96px;
  width: 96px;
}

.package {
  background: #f2f4f4;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  margin-top: 8px;
  padding: 8px 10px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin: 0 auto;
  max-width: 1120px;
  padding: 26px 22px 42px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.footer-links a {
  font-weight: 850;
}

.legal-page {
  max-width: 860px;
}

.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 48px);
}

.legal-box h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.legal-box h2 {
  font-size: 26px;
  margin-top: 34px;
}

.legal-box p,
.legal-box li {
  color: var(--muted);
  font-weight: 650;
}

.legal-box li {
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .grid,
  .store-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .nav a {
    padding: 0 8px;
  }

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

  .guess-row {
    grid-template-columns: 1fr;
  }

  .letter-row {
    gap: 6px;
  }

  .tile {
    font-size: 20px;
    height: 48px;
  }
}
