:root {
  color-scheme: light;
  --ink: #17191d;
  --muted: #85888d;
  --telegram: #2788d1;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; overflow-x: hidden; }

.topbar {
  position: relative;
  z-index: 2;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #f7f8f4;
  box-shadow: 0 1px 4px #183b2b18;
}

.telegram-brand { display: inline-flex; align-items: center; gap: 14px; color: #343a40; font-size: 27px; font-weight: 600; text-decoration: none; }
.telegram-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #2a91d3; }
.telegram-mark svg { width: 27px; height: 27px; fill: white; transform: translate(-1px, 1px); }
.launch-button:hover { background: #167ac0; }

.launch-screen {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 42px 20px;
  background-color: #a8cf9c;
  background-image: url("./assets/telegram-doodles.svg"), radial-gradient(ellipse at 82% 18%, #d8de98 0, transparent 38%), linear-gradient(125deg, #9dc99d 0%, #c5d99a 52%, #91c68e 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 440px 360px, cover, cover;
}

.bot-card {
  width: min(560px, 100%);
  min-width: 0;
  min-height: 630px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 46px 43px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 50px #304c3524;
  text-align: center;
}

.variant-content { display: none; width: 100%; flex-direction: column; align-items: center; }
html[data-landing-variant="a"] .variant-a,
html[data-landing-variant="b"] .variant-b { display: flex; }
html:not([data-landing-variant]) .variant-a { display: flex; }
html[data-landing-variant="b"] .bot-card { padding: 0 0 35px; }

.bot-avatar { width: 160px; height: 160px; flex: 0 0 auto; margin: 0 0 25px; border-radius: 50%; object-fit: cover; }
.bot-username { margin: 0 0 17px; color: var(--muted); font-size: 18px; text-decoration: none; }
.hero-image { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 600 / 336; flex: 0 0 auto; object-fit: cover; }
.bot-copy { width: 100%; padding: 26px 42px 0; }
.bot-card h1 { max-width: 440px; margin: 0 0 13px; font-size: clamp(29px, 3vw, 36px); font-weight: 750; line-height: 1.24; letter-spacing: -.035em; }
.bot-description { max-width: 440px; margin: 0 0 31px; font-size: 19px; line-height: 1.55; }
.launch-button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; padding: 0 27px; border-radius: 32px; background: var(--telegram); color: white; font-size: 16px; font-weight: 750; line-height: 1.25; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.launch-button:hover { transform: translateY(-1px); }

@media (max-width: 600px) {
  .topbar { height: 64px; padding: 0 14px; }
  .telegram-brand { gap: 9px; font-size: 21px; }
  .telegram-mark { width: 40px; height: 40px; }
  .telegram-mark svg { width: 23px; height: 23px; }
  .launch-screen { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 25px 16px; background-size: 330px 270px, cover, cover; }
  .bot-card { width: 100%; max-width: 560px; min-width: 0; min-height: 0; padding: 32px 23px 34px; border-radius: 21px; }
  html[data-landing-variant="b"] .bot-card { padding: 0 0 28px; }
  .bot-avatar { width: 132px; height: 132px; margin-bottom: 22px; }
  .bot-username { margin-bottom: 14px; font-size: 16px; }
  .hero-image { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 600 / 336; object-fit: contain; }
  .bot-copy { padding: 22px 23px 0; }
  .bot-card h1 { margin-bottom: 12px; font-size: clamp(26px, 7.2vw, 33px); }
  .bot-description { margin-bottom: 26px; font-size: 17px; }
  .launch-button { width: 100%; min-height: 56px; padding: 8px 15px; font-size: 15px; }
}
