:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #172033;
  --muted: #5d6a7e;
  --line: rgba(23, 32, 51, 0.1);
  --brand: #1769ff;
  --brand-strong: #0f4ec6;
  --mint: #19b58a;
  --warning: #e3a018;
  --shadow: rgba(20, 37, 68, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  box-shadow: 0 6px 18px var(--shadow);
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--brand);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(23, 105, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-strong);
  box-shadow: 0 6px 18px rgba(20, 37, 68, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(23, 105, 255, 0.12), rgba(25, 181, 138, 0.08)),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 46px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 70px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(23, 105, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 750;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(20, 37, 68, 0.08);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.paper-stage {
  position: absolute;
  inset: 18px 0 0 24px;
  display: grid;
  place-items: center;
}

.paper {
  position: relative;
  width: min(82vw, 380px);
  aspect-ratio: 0.72;
  background: var(--surface);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(20, 37, 68, 0.17);
  transform: rotate(1.2deg);
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  height: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.paper::before {
  top: 128px;
  box-shadow: 0 34px 0 var(--surface-soft), 0 68px 0 var(--surface-soft), 0 102px 0 var(--surface-soft);
}

.paper::after {
  bottom: 46px;
  right: 110px;
  background: rgba(25, 181, 138, 0.16);
}

.id-card {
  position: absolute;
  top: 38px;
  left: 34px;
  width: 154px;
  height: 90px;
  border-radius: 8px;
  border: 1px solid rgba(23, 105, 255, 0.12);
  background: #f8fbff;
  box-shadow: 0 14px 34px rgba(20, 37, 68, 0.08);
}

.id-card::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--mint));
}

.id-card::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 70px;
  width: 54px;
  height: 8px;
  border-radius: 8px;
  background: rgba(23, 105, 255, 0.18);
  box-shadow: 0 24px 0 rgba(23, 105, 255, 0.12);
}

.scan-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: var(--brand);
}

.scan-corner.tl {
  top: -18px;
  left: -18px;
  border-top: 5px solid;
  border-left: 5px solid;
}

.scan-corner.tr {
  top: -18px;
  right: -18px;
  border-top: 5px solid;
  border-right: 5px solid;
}

.scan-corner.bl {
  bottom: -18px;
  left: -18px;
  border-bottom: 5px solid;
  border-left: 5px solid;
}

.scan-corner.br {
  right: -18px;
  bottom: -18px;
  border-right: 5px solid;
  border-bottom: 5px solid;
}

.app-icon {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 96px;
  height: 96px;
  border-radius: 21px;
  box-shadow: 0 18px 44px rgba(20, 37, 68, 0.18);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

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

.feature {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(20, 37, 68, 0.06);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.step {
  padding: 18px;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.legal-page .updated {
  margin: 0 0 34px;
  color: var(--muted);
}

.legal-page section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--brand-strong);
  font-weight: 700;
}

.callout {
  padding: 18px;
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: 8px;
  background: rgba(23, 105, 255, 0.06);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 680px);
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    width: min(100% - 28px, 680px);
    padding: 42px 0 58px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .paper-stage {
    inset: 0;
  }

  .section,
  .legal-page,
  .footer-inner {
    width: min(100% - 28px, 680px);
  }

  .feature-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero h1 {
    font-size: 44px;
  }

  .paper {
    width: min(76vw, 300px);
  }

  .id-card {
    width: 128px;
    height: 78px;
  }
}
