:root {
  --paper: #f4f4f1;
  --surface: #ffffff;
  --ink: #0c0e14;
  --muted: #5a6170;
  --faint: #7b8190;
  --line: #deded7;
  --line-strong: #c8c8c0;
  --blue: #2b4bff;
  --blue-dark: #1e3ad9;
  --green: #0d9e6d;
  --night: #090e1c;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(43, 75, 255, 0.32);
  outline-offset: 3px;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(43, 75, 255, 0.1), transparent 25rem),
    linear-gradient(rgba(12, 14, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 14, 20, 0.035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 75%);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.demo-label,
.card-topline,
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.demo-label span,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(13, 158, 109, 0.1);
}

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: clamp(56px, 10vw, 140px);
  padding: 78px 0 90px;
}

.hero-copy {
  animation: reveal 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.eyebrow span {
  color: var(--blue);
}

.eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--line-strong);
}

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

h1 {
  max-width: 12ch;
  margin-top: 25px;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro {
  max-width: 56ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 34px;
  color: #3f4654;
  font-size: 12px;
  font-weight: 600;
}

.requirements span {
  position: relative;
  padding-left: 17px;
}

.requirements span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.start-card {
  position: relative;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px -40px rgba(9, 14, 28, 0.45);
  animation: card-in 750ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.start-card::before {
  content: '';
  position: absolute;
  inset: -11px 11px 11px -11px;
  z-index: -1;
  border: 1px solid rgba(43, 75, 255, 0.24);
  border-radius: 14px;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  color: var(--green);
}

.card-code {
  margin-left: auto;
  color: var(--faint);
}

.identity-visual {
  position: relative;
  height: 185px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 26px;
  background: var(--night);
  border-radius: 9px;
}

.identity-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(255, 255, 255, 0.025) 8px 9px);
}

.portrait {
  position: relative;
  width: 105px;
  height: 130px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(141, 153, 184, 0.3);
  border-radius: 52px 52px 18px 18px;
}

.head {
  position: absolute;
  top: 21px;
  left: 31px;
  width: 43px;
  height: 53px;
  border: 1.5px solid #8d99b8;
  border-radius: 48% 48% 45% 45%;
}

.shoulders {
  position: absolute;
  bottom: -27px;
  left: 12px;
  width: 80px;
  height: 72px;
  border: 1.5px solid #8d99b8;
  border-radius: 50% 50% 0 0;
}

.scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: #5c73ff;
  box-shadow: 0 0 12px #2b4bff;
  animation: scan 2.4s ease-in-out infinite;
}

.identity-lines {
  width: 150px;
  display: grid;
  gap: 17px;
}

.identity-lines span {
  height: 5px;
  background: rgba(141, 153, 184, 0.36);
  border-radius: 99px;
}

.identity-lines span:nth-child(2) {
  width: 74%;
}

.identity-lines span:nth-child(3) {
  width: 48%;
  background: var(--blue);
}

.check-seal {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
}

.start-card h2 {
  margin-top: 24px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.start-card > p:not(.privacy-note) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.start-button {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 21px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.start-button:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 14px 24px -14px rgba(43, 75, 255, 0.72);
}

.start-button:active {
  transform: translateY(0);
}

.start-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.start-button svg {
  width: 21px;
  height: 21px;
}

.privacy-note {
  margin: 13px 8px 2px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  padding: 70px 0 86px;
  border-top: 1px solid var(--line);
}

.steps-heading h2 {
  max-width: 12ch;
  margin-top: 20px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.step-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.step-list h3 {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.step-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

footer strong {
  color: var(--ink);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px) rotate(1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes scan {
  0%, 100% { top: 20%; opacity: 0.6; }
  50% { top: 78%; opacity: 1; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .start-card {
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .demo-label {
    max-width: 120px;
    justify-content: flex-end;
    text-align: right;
    font-size: 8px;
  }

  .demo-label span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 72px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .intro {
    font-size: 15px;
    line-height: 1.65;
  }

  .requirements {
    display: grid;
  }

  .start-card {
    padding: 14px;
  }

  .identity-visual {
    height: 160px;
    padding: 19px;
  }

  .portrait {
    transform: scale(0.88);
    transform-origin: left center;
  }

  .identity-lines {
    margin-left: -12px;
  }

  .steps {
    padding: 56px 0 64px;
  }

  footer {
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
