:root {
  color-scheme: dark;
  --bg: #080b12;
  --card: #111622;
  --card-2: #171d2b;
  --text: #f7f8fb;
  --muted: #9ba6b7;
  --line: rgba(255,255,255,.09);
  --accent: #7c5cff;
  --accent-2: #35d6a3;
  --telegram: var(--tg-theme-button-color, #7c5cff);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -5%, rgba(124,92,255,.34), transparent 33rem),
    radial-gradient(circle at -10% 25%, rgba(53,214,163,.14), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(30,37,55,.95), rgba(12,15,24,.92));
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -68px;
  top: -55px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b7a9ff, var(--accent) 42%, transparent 67%);
  filter: blur(2px);
  opacity: .76;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border-radius: 15px;
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 17px; font-size: clamp(36px, 9vw, 62px); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 10px; font-size: 27px; letter-spacing: -.035em; }
.hero-copy { max-width: 440px; margin-bottom: 27px; color: var(--muted); font-size: 16px; line-height: 1.55; }

.primary, .secondary, .plan button {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .15s ease, opacity .15s ease;
}

button:active { transform: scale(.98); }
.primary { width: 100%; color: white; background: linear-gradient(135deg, var(--accent), #9f79ff); }
.trial-note { margin: 11px 0 0; color: var(--muted); text-align: center; font-size: 12px; }

section { margin-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 0 5px 16px; }
.section-heading h2 { margin-bottom: 0; }
.pill { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; white-space: nowrap; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plan { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17,22,34,.9); }
.plan.featured { border-color: rgba(124,92,255,.8); background: linear-gradient(155deg, rgba(124,92,255,.22), rgba(17,22,34,.96) 52%); }
.badge { position: absolute; right: 12px; top: 12px; color: #b9a9ff; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.plan-top { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.plan-icon { font-size: 19px; }
.plan strong { display: block; margin-bottom: 6px; font-size: 28px; letter-spacing: -.04em; }
.plan p { color: var(--muted); font-size: 13px; }
.plan button { width: 100%; margin-top: 8px; padding: 0 10px; color: var(--text); background: rgba(255,255,255,.08); }
.featured button { background: var(--accent); }

.partner-card { display: grid; gap: 20px; padding: 24px; border: 1px solid rgba(53,214,163,.24); border-radius: 25px; background: linear-gradient(135deg, rgba(53,214,163,.13), rgba(17,22,34,.92) 48%); }
.partner-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.secondary { color: #061810; background: var(--accent-2); }

.benefits { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.benefits div { display: flex; align-items: center; gap: 18px; padding: 19px; background: var(--card); }
.benefits span { color: var(--accent); font-size: 12px; font-weight: 900; }
.benefits p { margin: 0; color: var(--muted); line-height: 1.45; }
.benefits b { color: var(--text); }

footer { padding: 28px 10px 5px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }
.demo-label { color: #e0b45a; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 10;
  width: min(calc(100% - 36px), 520px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(20,26,39,.96);
  box-shadow: 0 12px 40px rgba(0,0,0,.42);
  color: var(--text);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .shell { padding-left: 12px; padding-right: 12px; }
  .hero { min-height: 390px; padding: 22px; border-radius: 25px; }
  .brand-mark { margin-bottom: 42px; }
  .plan { padding: 15px; }
  .plan strong { font-size: 24px; }
  .plan button { font-size: 12px; }
}
