:root {
  --bg: #f7f8fb;
  --text: #111827;
  --muted: #5b6472;
  --card: #ffffff;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
  padding: 64px 0 40px;
}

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: var(--primary);
  color: #ffffff;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.phone {
  width: 320px;
  height: 620px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 38px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.22);
}

.phone-top {
  width: 88px;
  height: 6px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #374151;
}

.screen {
  height: calc(100% - 20px);
  border-radius: 26px;
  background: #f9fafb;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.scan-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.doc-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.doc-lines span {
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
}

.doc-lines span:nth-child(2) {
  width: 78%;
}

.doc-lines span:nth-child(3) {
  width: 58%;
}

.scan-button {
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.feature-row span {
  padding: 10px 6px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

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

.features article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.features h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 44px;
  }

  .phone {
    width: min(320px, 100%);
    height: 560px;
  }

  .features {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  footer {
    flex-direction: column;
  }
}