:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --background: #090a0d;
  --text: #f4f4f2;
  --muted: #9b9da3;
  --line: #26282e;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
}

main {
  width: min(calc(100% - 40px), 640px);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.home {
  width: min(calc(100% - 40px), 880px);
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  align-items: center;
  gap: clamp(48px, 9vw, 96px);
  padding-top: 48px;
}

.home-copy { min-width: 0; }

.label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 11vw, 72px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}

.intro,
.meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.home nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.language { margin-top: 40px; }

.phone {
  position: relative;
  width: 272px;
  aspect-ratio: 9 / 19.4;
  margin: 0;
  padding: 9px;
  overflow: hidden;
  border: 1px solid #3b3d43;
  border-radius: 44px;
  background: #15161a;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .38);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  background: #03040a;
}

.phone-preview,
.phone-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.phone-preview {
  background: #03040a;
}

.phone-poster {
  display: none;
}

.top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 72px;
}

a {
  color: var(--text);
  text-underline-offset: 4px;
  text-decoration-color: #555860;
}

a:hover { text-decoration-color: var(--text); }

section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  main { padding-top: 40px; }
  .top { margin-bottom: 52px; }
}

@media (max-width: 720px) {
  .home {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 56px;
    padding-top: 72px;
  }

  .phone {
    width: min(272px, 82vw);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-preview { display: none; }
  .phone-poster { display: block; }
}
