:root {
  color-scheme: light;
  --background: #ecfaff;
  --surface: #ffffff;
  --surface-warm: #fff7e2;
  --surface-green: #eaf9ee;
  --surface-blue: #e6f5ff;
  --ink: #233247;
  --muted: #667085;
  --stroke: rgba(35, 50, 71, 0.18);
  --coral: #ff7378;
  --blue: #5da6ff;
  --yellow: #ffd95a;
  --green: #6dd081;
  --purple: #9c7af7;
  --mint: #7ae0c6;
  --shadow: 0 12px 30px rgba(35, 50, 71, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 208, 129, 0.18) 1px, transparent 1px),
    var(--background);
  background-size: 44px 44px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 800;
}

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

.nav a:hover,
.nav a:focus {
  color: var(--ink);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: center;
  padding: 36px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid rgba(35, 50, 71, 0.12);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: var(--surface-warm);
  color: var(--ink);
  border-color: rgba(255, 217, 90, 0.78);
  box-shadow: none;
}

.hero-preview {
  display: grid;
  gap: 14px;
}

.symbol-strip,
.phone-screen,
.score-strip {
  border-radius: 8px;
  border: 3px solid rgba(35, 50, 71, 0.10);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.symbol-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
}

.sticker {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.70);
  color: #fff;
  font-size: 2rem;
  font-weight: 1000;
}

.sticker:nth-child(1) { background: var(--coral); transform: rotate(-6deg); }
.sticker:nth-child(2) { background: var(--blue); transform: rotate(5deg); }
.sticker:nth-child(3) { background: var(--yellow); transform: rotate(-5deg); }
.sticker:nth-child(4) { background: var(--green); transform: rotate(6deg); }
.sticker:nth-child(5) { background: var(--purple); transform: rotate(4deg); }

.phone-screen {
  background: var(--surface);
  padding: 20px;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-blue);
  border: 2px solid rgba(93, 166, 255, 0.34);
  font-weight: 900;
}

.problem {
  min-height: 190px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--surface-warm);
  border: 3px solid rgba(255, 217, 90, 0.74);
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 1000;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.key {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-green);
  border: 2px solid rgba(109, 208, 129, 0.45);
  font-weight: 1000;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.score-strip strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.score-strip span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.section {
  padding: 54px 0;
}

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

.card,
.legal-panel,
.doc-section {
  border-radius: 8px;
  border: 2px solid var(--stroke);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.card {
  padding: 20px;
}

.card p,
.doc-section p,
.doc-section li {
  color: var(--muted);
}

.legal-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.legal-panel a {
  padding: 18px;
  text-decoration: none;
  border-right: 2px solid var(--stroke);
  font-weight: 900;
}

.legal-panel a:last-child {
  border-right: 0;
}

.doc-layout {
  max-width: 900px;
  padding: 42px 0 72px;
}

.doc-header {
  padding: 36px 0 22px;
}

.doc-header h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.doc-section {
  margin-bottom: 18px;
  padding: 24px;
}

.doc-section ul {
  margin: 0;
  padding-left: 22px;
}

.lang-note {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .grid,
  .score-strip,
  .legal-panel {
    grid-template-columns: 1fr;
  }

  .legal-panel a {
    border-right: 0;
    border-bottom: 2px solid var(--stroke);
  }

  .legal-panel a:last-child {
    border-bottom: 0;
  }

  .sticker {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .problem {
    min-height: 150px;
  }
}
