:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --line: #e6e6e6;
  --nav-h: 50px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 8px 0 12px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  height: 20px;
  margin-left: 4px;
}

.wordmark img {
  display: block;
  height: 20px;
  width: auto;
  filter: brightness(0);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-download:hover {
  background: #1a1a1a;
}

.nav-menu {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-menu:hover {
  background: #ececec;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr) auto;
  align-items: end;
  gap: clamp(20px, 3vw, 48px);
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(48px, 8vh, 96px) clamp(28px, 4vw, 64px) clamp(40px, 7vh, 80px);
}

h1 {
  margin: 0;
  max-width: 7.2ch;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-stage {
  position: relative;
  align-self: center;
  width: min(100%, 520px);
  aspect-ratio: 1.05 / 1;
  margin-inline: auto;
}

.hero-back {
  position: absolute;
  top: 6%;
  right: 0;
  width: 62%;
  height: 78%;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(180deg, #d7e4d4 0%, #b7c9b4 48%, #8ea58d 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.hero-card {
  position: absolute;
  top: 12%;
  left: 4%;
  width: 68%;
  height: 82%;
  border-radius: 8px;
  background: #6d5bd0;
  box-shadow: 0 24px 50px rgba(40, 30, 80, 0.18);
  overflow: hidden;
}

.hero-card-top {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 78%;
  height: 46%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 68%);
}

.hero-card-lines {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-card-lines span:nth-child(1) {
  width: 72%;
}

.hero-card-lines span:nth-child(2) {
  width: 46%;
  height: 18px;
}

.hero-card-lines span:nth-child(3) {
  width: 34%;
}

.hero-edge {
  position: absolute;
  top: 18%;
  right: 8%;
  width: 7%;
  height: 58%;
  border-radius: 8px 0 0 8px;
  background: #1c1c1c;
}

.hero-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  height: 84px;
  min-width: 196px;
  padding: 0 28px;
  border-radius: 18px;
  background: #000;
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-download:hover {
  background: #1a1a1a;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding-bottom: 64px;
  }

  h1 {
    max-width: none;
  }

  .hero-stage {
    width: min(100%, 420px);
  }

  .hero-download {
    height: 64px;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-right: 6px;
  }

  h1 {
    font-size: 48px;
  }
}
