:root {
  color-scheme: dark;
  --bg: #050507;
  --text: #F5F5F7;
  --text2: rgba(235, 235, 245, .72);
  --card: rgba(30, 30, 36, .55);
  --cardBrd: rgba(255, 255, 255, .10);
  --cardEdge: rgba(255, 255, 255, .16);
  --pill: rgba(120, 120, 128, .22);
  --violet: #A97CFF;
  --g1: #123B75;
  --g2: #3A2470;
  --g3: #5A2A18;
  --g4: #0F4A3E;
  --focus: var(--violet);
  --cta-fill: var(--violet);
  --cta-ink: #0B0C0E;
  --cta-glint: rgba(255, 255, 255, .42);
  --shadow: rgba(5, 5, 7, .22);
  --radius-card: 24px;
  --radius-button: 16px;
  --radius-field: 14px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --drift-ease: cubic-bezier(.37, 0, .63, 1);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F2F3F7;
    --text: #0B0C0E;
    --text2: rgba(50, 50, 56, .78);
    --card: rgba(255, 255, 255, .58);
    --cardBrd: rgba(255, 255, 255, .65);
    --cardEdge: rgba(255, 255, 255, .90);
    --pill: rgba(120, 120, 128, .14);
    --violet: #8944EF;
    --g1: #8FC1FF;
    --g2: #D3B8FF;
    --g3: #FFD6A8;
    --g4: #A8E8D8;
    --focus: color-mix(in srgb, var(--violet), var(--text) 24%);
    --cta-fill: #793DD2;
    --cta-ink: #FFF;
    --cta-glint: rgba(255, 255, 255, .50);
    --shadow: rgba(58, 36, 112, .10);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  min-block-size: 100vh;
  min-block-size: 100svh;
  isolation: isolate;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  font-weight: 600;
  line-height: 1.4;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
.icon-sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }

.live-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.light-field { position: absolute; inset: 0; }
.blob {
  position: absolute;
  display: block;
  inline-size: var(--size);
  block-size: var(--size);
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  border-radius: 50%;
  opacity: .55;
}
.blob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--tone);
  filter: blur(90px);
}
.blob-1 { --tone: var(--g1); --size: 340px; --x: -90px; --y: -60px; --dx: 40px; --dy: 30px; --period: 26s; }
.blob-2 { --tone: var(--g2); --size: 300px; --x: 180px; --y: 120px; --dx: -35px; --dy: 25px; --period: 32s; }
.blob-3 { --tone: var(--g3); --size: 280px; --x: -60px; --y: 430px; --dx: 30px; --dy: -35px; --period: 28s; }
.blob-4 { --tone: var(--g4); --size: 300px; --x: 150px; --y: 620px; --dx: -25px; --dy: -30px; --period: 34s; }

.layout {
  inline-size: min(100%, 520px);
  margin-inline: auto;
  padding: 24px 20px 16px;
  padding-block-start: clamp(24px, 5svh - 10px, 44px);
}
.identity { display: flex; align-items: center; gap: 16px; }
.avatar {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  inline-size: 76px;
  block-size: 76px;
  border-radius: 50%;
  border: 1px solid var(--cardBrd);
  border-block-start-color: var(--cardEdge);
  background: radial-gradient(ellipse at 32% 0%, var(--cardEdge), transparent 68%), var(--card);
  box-shadow: inset 0 -1px var(--cardEdge), 0 4px 8px var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}
.avatar img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.avatar img + span { display: none; }
.avatar::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid transparent;
  border-block-start-color: var(--cardEdge);
  pointer-events: none;
}
.profile h1 { font-size: 44px; font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
.profile p { margin-block-start: 6px; color: var(--text2); font-size: 15px; }
.telegram-action { margin-block-start: 20px; }

.action { -webkit-tap-highlight-color: transparent; }
.action:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.action:active { scale: .985; }
.out { inline-size: 18px; block-size: 18px; flex: none; }
.telegram {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 68px;
  padding: 10px 14px;
  border: 1px solid var(--cardBrd);
  border-radius: var(--radius-button);
  background-color: var(--cta-fill);
  background-image: linear-gradient(174deg, color-mix(in srgb, var(--cta-glint), transparent 74%), transparent 58%);
  color: var(--cta-ink);
  box-shadow: 0 4px 8px var(--shadow);
}
.telegram::before, .glass::before {
  content: "";
  position: absolute;
  inset: 0 14px auto;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, var(--cardEdge) 24% 76%, transparent);
  pointer-events: none;
}
.telegram::before { --cardEdge: var(--cta-glint); }
.telegram-icon { inline-size: 28px; block-size: 28px; fill: currentColor; flex: none; }
.telegram-copy { display: grid; gap: 2px; }
.telegram-copy strong { font-size: 17px; font-weight: 800; line-height: 1.2; }
.telegram-copy > span { font-size: 13px; }
.telegram .out, .whatsapp .out { margin-inline-start: auto; }

.apps { margin-block-start: 24px; }
.apps h2 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.app-grid { display: grid; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.glass {
  position: relative;
  background: var(--card);
  border: 1px solid var(--cardBrd);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 8px var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.card {
  min-block-size: 80px;
  block-size: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.app-icon {
  display: block;
  inline-size: 52px;
  block-size: 52px;
  border-radius: var(--radius-field);
  object-fit: cover;
}
.app-copy { min-inline-size: 0; }
.app-copy h3 { font-size: 15px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; text-wrap: balance; }
.app-copy p { margin-block-start: 4px; font-size: 13px; line-height: 1.3; color: var(--text2); }
.store-label {
  display: inline-flex;
  vertical-align: top;
  align-items: center;
  gap: 4px;
  margin-block-start: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.store-label svg { inline-size: 14px; block-size: 14px; fill: currentColor; }
.card .out { color: var(--text2); }
.ai-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--cardBrd);
  border-block-start-color: var(--cardEdge);
  background: radial-gradient(ellipse at top left, var(--cardEdge), transparent 76%), var(--pill);
  background-color: color-mix(in srgb, var(--pill), var(--violet) 14%);
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.upcoming { grid-template-columns: auto minmax(0, 1fr); }
.whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-block-size: 52px;
  margin-block-start: 16px;
  border-radius: var(--radius-button);
  font-weight: 700;
}
.footer { padding: 0 20px 10px; color: var(--text2); font-size: 12px; text-align: center; }

@media (max-width: 47.999rem) and (min-height: 48rem) {
  .layout { padding-block-start: 44px; }
  .telegram-action { margin-block-start: 24px; }
  .apps { margin-block-start: 28px; }
  .app-grid { gap: 10px; }
  .card { min-block-size: 84px; padding-block: 12px; }
  .footer { padding-block-end: 20px; }
}

@media (min-width: 48rem) {
  .layout { inline-size: min(100%, 840px); padding: 44px 32px 28px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telegram { max-inline-size: 352px; }
  .blob-1 { --x: 4%; --y: 10%; --size: 440px; }
  .blob-2 { --x: 51%; --y: 2%; --size: 450px; }
  .blob-3 { --x: 12%; --y: 54%; --size: 370px; }
  .blob-4 { --x: 66%; --y: 59%; --size: 460px; }
}

@media (min-width: 62rem) {
  .layout {
    inline-size: min(100%, 1120px);
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-content: center;
    align-items: start;
    column-gap: clamp(48px, 6vw, 96px);
    padding: 64px 40px;
  }
  .identity { display: grid; gap: 20px; }
  .avatar { inline-size: 112px; block-size: 112px; font-size: 60px; }
  .profile h1 { font-size: clamp(64px, 6vw, 86px); }
  .profile p { margin-block-start: 10px; font-size: 18px; }
  .telegram-action { margin-block-start: 28px; }
  .telegram { min-block-size: 76px; padding-inline: 16px; }
  .apps { margin-block-start: 0; }
  .apps h2 { font-size: 26px; }
  .app-grid { gap: 12px; margin-block-start: 16px; }
  .card {
    min-block-size: 168px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    padding: 16px;
  }
  .card .app-icon { grid-area: 1 / 1; inline-size: 60px; block-size: 60px; }
  .card .out { grid-area: 1 / 2; align-self: start; }
  .app-copy {
    grid-column: 1 / -1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .app-copy h3 { font-size: 16px; }
  .app-copy p { font-size: 14px; }
  .store-label { margin-block-start: auto; padding-block-start: 8px; }
  .upcoming { grid-template-columns: minmax(0, 1fr); }
  .whatsapp { grid-column: 2; }
  .footer { padding-block-end: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .light-field { transition: transform 260ms var(--ease-out); }
  .blob { will-change: transform; animation: drift var(--period) var(--drift-ease) infinite; }
  .identity, .telegram-action, .apps h2, .app-grid li, .whatsapp {
    animation: arrive 220ms var(--ease-out) both;
  }
  .telegram-action { animation-delay: 40ms; }
  .apps h2 { animation-delay: 76ms; }
  .app-grid li:nth-child(1) { animation-delay: 112ms; }
  .app-grid li:nth-child(2) { animation-delay: 148ms; }
  .app-grid li:nth-child(3) { animation-delay: 184ms; }
  .app-grid li:nth-child(4) { animation-delay: 220ms; }
  .whatsapp { animation-delay: 256ms; }
  .action { transition: scale 180ms var(--ease-out), translate 220ms var(--ease-out); }
  .action:active { transition-duration: 150ms; }
  .action::before { transition: opacity 220ms var(--ease-out); }
  .action .out { transition: transform 220ms var(--ease-out); }
  .action:focus-visible { animation: none; }
  @keyframes drift { 50% { transform: translate(var(--dx), var(--dy)); } }
  @keyframes arrive { from { opacity: .4; transform: translateY(8px); } }
}

@media (hover: hover) and (pointer: fine) {
  .action:hover { translate: 0 -2px; }
  .action::before { opacity: .76; }
  .action:is(:hover, :focus-visible)::before { opacity: 1; }
  .action:hover .out { transform: translate(2px, -2px); }
  .action:active { translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .action:hover, .action:active { translate: none; scale: none; }
  .action:hover .out { transform: none; }
  .action:is(:hover, :active) { box-shadow: inset 0 0 0 1px var(--text); }
}

@media (forced-colors: active) {
  .action:focus-visible { outline-color: Highlight; }
  .telegram, .card, .whatsapp { border-color: ButtonText; }
}
