:root {
  color-scheme: light;
  font-family: 'Avenir Next', 'Trebuchet MS', sans-serif;
  color: #101d32;
  background: #edf3fd;
  --blue: #064fb4;
  --muted: #435670;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  background: radial-gradient(ellipse at 14% 6%, #fff 0%, transparent 56%),
    radial-gradient(ellipse at 92% 100%, #cadffb 0%, transparent 59%);
}

p { margin: 0; }
::selection { color: #062d65; background: #bcdcff; }

.landing { width: min(100%, 500px); }

.intro { align-self: center; padding-block: 22px; }
.identity { display: flex; align-items: center; gap: 13px; }

.identity img {
  display: block;
  border-radius: 15px;
  box-shadow: 0 7px 18px #0755c03d;
}

.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.product { color: var(--muted); font-size: .875rem; font-weight: 600; }

h1 {
  margin: clamp(26px, 4vw, 46px) 0 14px;
  font-size: clamp(2.25rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
}

h1 em { display: inline-block; color: var(--blue); font-style: normal; }

.description {
  max-width: 43ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.125rem);
  line-height: 1.55;
}

.links { display: grid; gap: 10px; margin-top: 26px; }

.glass-link {
  display: block;
  min-width: 0;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.glass-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.link-surface {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 8px 16px 8px 10px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #fff;
  border-radius: inherit;
  background: linear-gradient(155deg, #fff, #edf5ffd9);
  box-shadow: inset 0 -1px 2px #1c58a719;
  transition: transform 150ms var(--ease-out);
}

.download .link-surface {
  color: #fff;
  border-color: #5b91e6;
  background: linear-gradient(115deg, #094cb0 10%, #064794 100%);
  box-shadow: inset 0 1px 1px #ffffff38;
}

.link-icon, .link-label, .link-arrow { position: relative; }

.link-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e4efff;
}

.link-icon svg { display: block; width: 24px; height: 24px; }
.play-store, .apple { background: #ffffff1c; }
.telegram { color: #1269b4; }
.youtube { color: #cc252d; background: #ffebec; }
.link-label strong { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.2; }
.link-label small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.2; }
.download .link-label small { color: #e1edff; }

.link-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms var(--ease-out);
}

.light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle closest-side, var(--light-color, #398cf858), transparent);
  opacity: 0;
  transition: opacity 150ms var(--ease-out);
}

.download { --light-color: #a8dcff5e; }
.glass-link:active .link-surface { transform: scale(.98); }
.glass-link:active .light { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  [data-glass]:hover .light { opacity: 1; }
  .glass-link:hover .link-arrow { transform: translate3d(2px, -2px, 0); }
}

@media (max-width: 760px) {
  .intro { padding-block: 4px 0; }
  h1 { font-size: clamp(2.25rem, 9.4vw, 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .glass-link .link-surface, .glass-link .link-arrow { transition: none; }
  .glass-link:active .link-surface, .glass-link:hover .link-arrow { transform: none; }
}
