@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/InterDisplay-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0d0d0d;
  --paper: #fff;
  --grey: #6b6b6b;
  --rule: #d9d9d9;
  --dark-rule: #333;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Display", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
h2 {
  font-size: clamp(34px, 5.2vw, 68px);
  max-width: 18ch;
}
h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
p {
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.btn.light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: #777;
}

/* Hero */
.hero {
  background: radial-gradient(120% 90% at 70% 0%, #2a2a2a 0%, #111 45%, #0a0a0a 100%);
  color: var(--paper);
  min-height: min(100vh, 860px);
  display: flex;
  flex-direction: column;
}
.hero .wrap {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 16px;
  color: #cfcfcf;
}
.topbar a {
  text-decoration: none;
}
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 72px;
}
.wordmark {
  font-size: clamp(120px, 26vw, 360px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.85;
  margin-left: -0.04em;
}
.hero p.lead {
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: #d8d8d8;
  max-width: 30ch;
  margin-top: 36px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Sections */
section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  margin-bottom: clamp(40px, 6vw, 80px);
  font-size: 16px;
}
.num {
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.dark {
  background: #0d0d0d;
  color: var(--paper);
}
.dark .head {
  border-color: #555;
}
.dark .num {
  color: #9a9a9a;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  margin-top: clamp(48px, 7vw, 96px);
}
.stat {
  display: flex;
  align-items: center;
  gap: 28px;
}
.circle {
  flex: none;
  width: clamp(120px, 16vw, 184px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(40px, 5.4vw, 64px);
  letter-spacing: -0.04em;
}
.stat p {
  max-width: 26ch;
}
.source {
  margin-top: 48px;
  font-size: 14px;
  color: var(--grey);
}

/* Solution */
.features {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.features li {
  border-top: 1px solid #555;
  padding-top: 18px;
}
.features p {
  color: #b5b5b5;
  margin-top: 8px;
  font-size: 16px;
}
.intro {
  margin-top: 28px;
}

/* Phones */
.phones {
  gap: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.phone {
  flex: none;
  width: 290px;
  aspect-ratio: 9 / 18.5;
  background: #000;
  border: 1px solid #3a3a3a;
  border-radius: 38px;
  padding: 9px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.phone:nth-child(2) {
  margin-top: 48px;
}
.phone:nth-child(3) {
  margin-top: 0;
}
.screen {
  height: 100%;
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 30px;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
}
.screen h4 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.screen .small {
  color: var(--grey);
  font-size: 11px;
}
.pieces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.pieces figure {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 8px;
  min-height: 0;
}
.pieces img {
  max-height: 100%;
  object-fit: contain;
}
.pill {
  margin-top: 10px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  border-radius: 999px;
  padding: 9px;
  font-weight: 500;
}
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.lines li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}
.lines span:last-child {
  color: var(--grey);
}
.look {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
}
.look img {
  max-height: 100%;
  object-fit: contain;
}
.tag {
  align-self: flex-start;
  margin: 8px 0 4px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: s;
}
.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  counter-increment: s;
}
.steps li::before {
  content: "0" counter(s);
  display: block;
  color: var(--grey);
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}
.steps p {
  color: var(--grey);
  margin-top: 8px;
  font-size: 16px;
}

/* Technology */
.tech {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(40px, 6vw, 72px);
}
.tech div {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.tech p {
  color: var(--grey);
  margin-top: 8px;
  font-size: 16px;
}

/* Status + contact */
.status {
  display: inline-block;
  border: 1px solid #888;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 15px;
  margin-bottom: 28px;
}
.contact-mail {
  display: inline-block;
  font-size: clamp(30px, 6vw, 80px);
  letter-spacing: -0.04em;
  margin: 28px 0 16px;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}
.contact p {
  color: var(--grey);
}

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--grey);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Legal pages */
.legal {
  padding: 64px 0 96px;
}
.legal .wrap {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(40px, 7vw, 72px);
  margin: 24px 0 12px;
}
.legal h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  max-width: none;
  margin: 44px 0 10px;
  font-weight: 500;
}
.legal p,
.legal li {
  color: #2b2b2b;
  font-size: 17px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 6px 0;
}
.legal .updated {
  color: var(--grey);
  font-size: 15px;
}
.light-top {
  border-bottom: 1px solid var(--rule);
}
.light-top .topbar {
  color: var(--ink);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-main > * {
    animation: rise 0.9s ease both;
  }
  .hero-main > :nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero-main > :nth-child(3) {
    animation-delay: 0.22s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .phones {
    gap: 14px;
  }
  .phone {
    width: calc((100vw - 2 * var(--gutter) - 14px) / 2);
    min-width: 0;
    border-radius: 28px;
    padding: 6px;
  }
  .screen {
    border-radius: 22px;
    padding: 18px 10px 10px;
    font-size: 10px;
  }
  .screen h4 {
    font-size: 14px;
  }
  .screen .small,
  .tag {
    font-size: 9px;
  }
  .lines li {
    font-size: 10px;
    padding: 5px 0;
  }
  .phone:first-child {
    display: none;
  }
  .phone:nth-child(2) {
    margin-top: 28px;
  }
  .btn {
    padding: 13px 24px;
  }
}

.prototype {
  margin: 24px 0 40px;
  font-size: 20px;
}

.prototype a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
