:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #111821;
  --surface-2: #182230;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #a7b0bf;
  --brand: #27d3a2;
  --brand-2: #55a7ff;
  --danger: #ffcc66;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 80% 10%, rgba(85, 167, 255, 0.18), transparent 32rem),
    linear-gradient(135deg, #090b10 0%, #10161f 48%, #0b0d12 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.brand__icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.brand__label {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 62px;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 640px;
  margin: 0 0 34px;
  color: #d6dbe5;
  font-size: 21px;
  line-height: 1.58;
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.download-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid rgba(39, 211, 162, 0.55);
  border-radius: 8px;
  color: #06100d;
  background: linear-gradient(135deg, var(--brand), #b8ffe7);
  box-shadow: 0 18px 45px rgba(39, 211, 162, 0.22);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 22px 54px rgba(39, 211, 162, 0.28);
  outline: none;
}

.download-button__icon,
.download-button__icon svg {
  width: 22px;
  height: 22px;
}

.download-button__icon svg {
  display: block;
  fill: currentColor;
}

.version-card {
  min-height: 58px;
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.76);
  backdrop-filter: blur(16px);
}

.version-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.version-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.phone-preview {
  width: min(100%, 330px);
  justify-self: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    #080a0f;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.phone-preview::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 31px;
  pointer-events: none;
}

.phone-preview__screen {
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: #07090e;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-preview__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
  z-index: 2;
}

.phone-preview__notch {
  width: 108px;
  height: 25px;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #080a0f;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.phone-preview__notch::after {
  content: "";
  width: 38px;
  height: 4px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.phone-preview__side-button {
  width: 3px;
  height: 54px;
  position: absolute;
  right: -4px;
  border-radius: 0 99px 99px 0;
  background: rgba(255, 255, 255, 0.24);
}

.phone-preview__side-button--top {
  top: 124px;
}

.phone-preview__side-button--bottom {
  top: 196px;
}

.phone-preview__screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.steps article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.78);
}

.steps span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #06100d;
  background: var(--brand);
  font-weight: 900;
}

.steps h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  color: var(--danger);
  font-size: 13px;
}

@media (max-width: 860px) {
  .shell {
    padding-top: 28px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: 48px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .phone-preview {
    justify-self: center;
  }

  .phone-preview__screen {
    max-height: 560px;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .shell,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .brand__icon {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  h1 {
    font-size: 40px;
  }

  .download-button,
  .version-card {
    width: 100%;
  }
}
