:root {
  color-scheme: dark;
  --bg: #000;
  --line: rgba(255, 255, 255, 0.12);
  --line-blue: rgba(45, 174, 255, 0.34);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.68);
  --dim: rgba(248, 250, 252, 0.46);
  --blue: #36b7ff;
  --red: #e21c23;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background:
    radial-gradient(circle at 50% 12%, rgba(45, 174, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(226, 28, 35, 0.13), transparent 38%),
    #000;
}

a,
button {
  font: inherit;
}

.install-page {
  position: relative;
  width: min(100%, 520px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 18px;
  isolation: isolate;
}

.install-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 78%, transparent);
  opacity: 0.48;
}

.install-page::after {
  content: "";
  position: absolute;
  inset: auto -20% -18% -20%;
  z-index: -1;
  height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(45, 174, 255, 0.18), transparent 64%);
  pointer-events: none;
}

.hero {
  display: grid;
  gap: 24px;
  padding-top: max(18px, calc(env(safe-area-inset-top) + 18px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 74px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.65));
}

.brand-copy strong {
  display: block;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}

.brand-copy span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.headline {
  display: grid;
  gap: 12px;
}

.tag {
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(45, 174, 255, 0.45);
  border-radius: 10px;
  background: rgba(45, 174, 255, 0.11);
  color: var(--blue);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

h1 {
  margin: 0;
  max-width: 9em;
  color: #fff;
  font-size: clamp(36px, 10.2vw, 52px);
  line-height: 1.08;
  font-weight: 980;
}

.lead {
  max-width: 27em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 760;
}

.install-card {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid var(--line-blue);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 174, 255, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 25, 0.96), rgba(4, 5, 7, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: rgba(45, 174, 255, 0.14);
  color: var(--blue);
  font-weight: 950;
}

.step-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-copy strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}

.step-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 720;
}

.share-guide {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  text-align: center;
}

.share-guide p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}

.arrow {
  width: 150px;
  height: 78px;
  margin: 0 auto;
  overflow: visible;
  color: var(--blue);
  filter: drop-shadow(0 8px 22px rgba(45, 174, 255, 0.34));
  animation: floatArrow 1.7s ease-in-out infinite;
}

.arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safari-bar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.safari-chip,
.share-chip {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.share-chip {
  background: rgba(45, 174, 255, 0.18);
  color: var(--blue);
  outline: 2px solid rgba(45, 174, 255, 0.32);
  animation: pulseShare 1.55s ease-in-out infinite;
}

.safari-chip svg,
.share-chip svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.url-pill {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.actions a {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 950;
}

.primary {
  background: linear-gradient(180deg, #42bdff, #1c97ec);
  color: #fff;
  box-shadow: 0 16px 36px rgba(29, 150, 235, 0.24);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf3;
}

@keyframes floatArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes pulseShare {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 174, 255, 0.34);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(45, 174, 255, 0);
  }
}

@media (max-width: 390px) {
  .install-page {
    padding-inline: 16px;
  }

  .brand-mark {
    width: 66px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .install-card {
    padding: 13px;
    border-radius: 19px;
  }

  .step {
    min-height: 68px;
    padding: 11px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  .install-page {
    padding-top: 18px;
  }

  .hero {
    gap: 18px;
  }

  .share-guide {
    padding-top: 18px;
  }

  .arrow {
    height: 56px;
  }
}
