﻿:root {
  /* Colors */
  --bg: #0b1220; /* deep bluish black */
  --surface: #121a2b;
  --text: #e6ebf3;
  --muted: #a8b3c7;
  --primary: #8b5cf6; /* violet */
  --primary-2: #0ea5e9; /* sky */
  --accent: #22d3ee; /* cyan */
  --success: #22c55e;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --container: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: radial-gradient(1200px 600px at 80% -20%, rgba(34,211,238,.06), transparent 60%),
              linear-gradient(180deg, var(--bg), #0a0f1c 55%);
  color: var(--text);
  line-height: 1.45;
}
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px;
  padding: 14px 16px;
  backdrop-filter: saturate(120%) blur(10px);
  background: linear-gradient(180deg, rgba(11,18,32,.85), rgba(11,18,32,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-faded { background: linear-gradient(180deg, rgba(11,18,32,.65), rgba(11,18,32,.40)); border-bottom-color: rgba(255,255,255,.05); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; justify-self: start; }
.logo img { border-radius: 6px; }


.top-nav { display: inline-flex; gap: 16px; align-items: center; justify-self: center; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-nav { display: inline-flex; gap: 16px; align-items: center; justify-self: center; }
.top-nav a:hover { color: var(--text); }

/* Telegram image button in header */
.header-actions { justify-self: end; display: inline-flex; align-items: center; }
.tg-header-link img { height: 32px; width: auto; display: block; }
@media (min-width: 920px) { .tg-header-link img { height: 36px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; transition: .2s ease; }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #0b0f19; box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost { color: var(--text); border: 1px solid rgba(255,255,255,.12); padding: 10px 14px; }
.btn--ghost:hover { background: rgba(255,255,255,.06); }

.main { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.main { margin-top: calc(var(--header-h) + 6px); }

/* Center all subheadings */
h2 { text-align: center; font-size: clamp(20px, 4.5vw, 28px); margin: 0 0 14px; font-family: inherit; font-weight: inherit; }

.hero {
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 22px; align-items: center;
  padding: 24px 0 6px; min-height: calc(100vh - var(--header-h));
}
.hero__content { text-align: left; }
.hero h1 { font-size: clamp(24px, 6vw, 40px); line-height: 1.1; margin: 8px 0 12px; }
.lead { color: var(--muted); font-size: clamp(15px, 4.5vw, 18px); margin: 0 0 14px; }
.micro { color: var(--muted); font-size: 13px; margin-top: 8px; }
.hero__media { display: flex; justify-content: center; align-items: flex-end; overflow: visible; align-self: end; position: relative; margin-bottom: -72px; z-index: 0; }
.hero__media img { width: min(90vw, 360px); height: auto; filter: drop-shadow(var(--shadow)); }

@media (min-width: 920px) {
  .hero { grid-template-columns: 1.05fr .95fr; grid-template-rows: auto; padding-top: 40px; }
  .hero__media { justify-content: end; }
}

.features { padding: 28px 0; position: relative; z-index: 2; background: var(--bg); }
.features h2, .screens h2 { font-size: clamp(20px, 4.5vw, 28px); margin: 0 0 14px; }
.feature-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-grid li { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 14px; }
.feature-grid b { display: block; margin: 2px 0 4px; }
.feature-grid p { margin: 0; color: var(--muted); }
.emoji { font-size: 20px; }

@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.screens { padding: 8px 0 18px; }
.screens__rail { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.screens__rail img { width: 100%; height: auto; border-radius: 22px; background: #0e1526; border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); }
@media (min-width: 720px) { .screens__rail { grid-auto-columns: 32%; } }

.site-footer { border-top: 0; color: var(--muted); text-align: center; padding: 12px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tg-footer-link { display: inline-block; margin: 0; }
.tg-footer-link img { height: 28px; width: auto; display: block; }
@media (min-width: 920px) { .tg-footer-link img { height: 32px; } }
.
.site-footer p { margin: 0; line-height: 1.25; }

/* Back-to-top button removed */

/* Accessibility tweaks */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
a { outline: none; }

/* Anchor offsets for sticky header */
#features, #screens, #available, #pricing, #cta { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Stories (Instagram-like) */
.stories { padding: 10px 0 22px; }
.stories__viewport { position: relative; overflow: hidden; border-radius: 22px; background: #0e1526; border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); }
.stories__track { display: flex; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.story { flex: 0 0 100%; display: grid; place-items: center; }
.story { flex: 0 0 100%; position: relative; display: grid; place-items: center; padding: 18px 10px 30px; }
.story__frame { width: min(61vw, 280px); /* ~1.5x smaller than before */ border-radius: 22px; background: transparent; border: 0; display: grid; place-items: center; overflow: visible; margin-top: 12px; }
.story__frame img { width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 16px; box-shadow: none; }
.story__progress { position: absolute; left: 10px; right: 10px; top: 10px; height: 3px; background: rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.story__progress span { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary-2)); }

.stories__btn { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.35); color: #fff; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.stories__btn:hover { background: rgba(0,0,0,.5); }
.stories__btn.prev { left: 8px; }
.stories__btn.next { right: 8px; }

.stories__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; }
.stories__dots button { width: 7px; height: 7px; border-radius: 999px; border: 0; background: rgba(255,255,255,.35); padding: 0; }
.stories__dots button[aria-current="true"] { background: #fff; }

@media (min-width: 920px) {
  .story__frame { width: min(21vw, 280px); margin-top: 16px; }
}

/* Light hero variant matching your screenshot */
.hero--light { color: #0b1220; border-radius: 0; padding: 72px 16px 0; margin-top: 0; position: relative; gap: 40px; overflow: visible; }
.hero--light::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; background: #fff; z-index: -1; }
.hero--light .hero__content { text-align: center; }
.hero--light .hero__title { word-break: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: clamp(22px, 3.8vw, 36px); letter-spacing: .005em; margin: 6px 0 12px; text-wrap: balance; }
.hero--light .hero__subtitle { font-weight: 400; font-size: clamp(18px, 5vw, 24px); margin: 0 0 16px; }
.hero--light .hero__desc { color: #4b5563; margin: 4px 0; }
.hero--light .phone { width: min(58.5vw, 420px); height: auto; display: block; filter: none; background: transparent; }
.btn--tg { background: #fff; color: #0b1220; border: none; padding: 28px 44px; font-size: 32px; }
.btn--tg img { display: inline-block; width: 56px; height: 56px; }
.btn--tg:hover { background: #f5f7fb; }

/* Image CTA for Telegram */
.tg-image-link img { width: 133px; max-width: 40vw; height: auto; display: block; margin: 8px auto 0; }
.hero__cta { display: grid; place-items: center; gap: 10px; }

@media (min-width: 920px) {
  .hero--light { grid-template-columns: 1.1fr .9fr; padding: 100px 40px; column-gap: 80px; row-gap: 40px; }
  .hero--light .hero__media { justify-content: end; }
}

/* Available section (dark with glow trail) */
.available { position: relative; padding: 68px 0 120px; color: #fff; margin-top: 8px; }
.available::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(800px 400px at 50% -50px, rgba(139,92,246,.18), transparent 60%),
  radial-gradient(600px 300px at 80% 30%, rgba(34,211,238,.12), transparent 70%),
  #0b1220; }
.available::after { content: none; }
.available__inner { max-width: var(--container); margin: 0 auto; padding: 0 16px; text-align: center; }
.available__head h2 { display: block; margin: 0 0 14px; }
.available__head p { color: #d1d5db; margin: 2px 0; }
.available__grid { list-style: none; padding: 24px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.available__grid li { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 16px; text-align: center; }
.available__grid .ic { font-size: 24px; display: inline-block; margin-bottom: 6px; }
.available__grid b { display: block; margin-bottom: 6px; }
.available__grid p { color: #a8b3c7; margin: 0; font-size: 14px; }
@media (min-width: 920px) { .available__grid { grid-template-columns: repeat(3, 1fr); } }

/* Pricing section */
.pricing { position: relative; padding: 64px 0 90px; color: #0b1220; }
.pricing::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; background:
  radial-gradient(1000px 400px at 50% -120px, rgba(34,197,94,.08), transparent 60%),
  #fff; z-index: -1; }
.pricing__inner { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.pricing__head { text-align: center; margin-bottom: 24px; }
.pricing__head h2 { margin: 0 0 14px; }
.pricing__head p { margin: 0; color: #4b5563; }
.billing-toggle { display: inline-flex; gap: 8px; background: #f3f4f6; padding: 6px; border-radius: 999px; margin-top: 10px; }
.billing-toggle__btn { border: 0; padding: 8px 12px; background: transparent; border-radius: 999px; font-weight: 700; color: #111827; cursor: pointer; }
.billing-toggle__btn.is-active { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.billing-toggle .save { color: #16a34a; font-weight: 800; }
.pricing__grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.plan { position: relative; background: linear-gradient(180deg, #fff, #fafafa); border: 1px solid rgba(0,0,0,.06); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.plan.is-highlight { border-color: rgba(34,197,94,.35); box-shadow: 0 12px 40px rgba(34,197,94,.12); }
.plan.is-highlight::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 120px at 50% -40px, rgba(34,197,94,.12), transparent 70%); pointer-events: none; }
.plan__name { text-align: center; margin: 0 0 10px; font-weight: 800; }
.plan__price { text-align: center; font-weight: 800; font-size: clamp(22px, 4.5vw, 36px); margin: 0 0 10px; }
.plan__price .num { font-size: 1.15em; }
.plan__price.anim { transform: scale(1.02); transition: transform .22s ease; }
.plan__list { list-style: none; padding: 0; margin: 12px 0 18px; color: #374151; }
.plan__list li { padding: 6px 0 6px 28px; border-top: 1px dashed rgba(0,0,0,.08); position: relative; }
.plan__list li:first-child { border-top: 0; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #e6f6ee; color: #059669; font-size: 12px; line-height: 18px; text-align: center; font-weight: 900; }
.price-btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; padding: 14px 16px; border-radius: 12px; font-weight: 800; border: 0; background: #e5e7eb; color: #111827; cursor: not-allowed; margin-top: auto; text-decoration: none; }
.price-btn[disabled] { opacity: .9; }
.price-btn--primary { background: #1d4ed8; color: #fff; cursor: pointer; }
.price-btn--primary:hover { background: #1e40af; }
/* Ribbons */
.plan__ribbon { position: absolute; top: 12px; left: -8px; background: linear-gradient(90deg, #22c55e, #16a34a); color: #fff; font-weight: 800; font-size: 12px; padding: 6px 12px; border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.plan__ribbon--soon { background: linear-gradient(90deg, #f97316, #f59e0b); }
@media (min-width: 900px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .plan { padding: 24px 24px 20px; }
}

.site-header.is-faded { background: linear-gradient(180deg, rgba(11,18,32,.65), rgba(11,18,32,.40)); border-bottom-color: rgba(255,255,255,.05); }






/* Header overrides (cleanup) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 16px; backdrop-filter: saturate(120%) blur(10px); background: linear-gradient(180deg, rgba(11,18,32,.85), rgba(11,18,32,.55)); border-bottom: 1px solid rgba(255,255,255,.06); transition: background .25s ease, border-color .25s ease; }
.site-header.is-faded { background: linear-gradient(180deg, rgba(11,18,32,.65), rgba(11,18,32,.40)); border-bottom-color: rgba(255,255,255,.05); }
.top-nav { display: inline-flex; gap: 16px; align-items: center; justify-self: center; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.header-actions { justify-self: end; display: inline-flex; align-items: center; }
.main { margin-top: calc(var(--header-h) + 6px); }
/* Footer links */
.footer-links { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }

/* Legal disclaimer */
.footer-legal { max-width: 960px; color: var(--muted); font-size: 12.5px; line-height: 1.45; text-align: center; margin: 4px 0 0; }
/* Hide fallback Telegram button by default; show via JS only if image fails */
.hero__cta .btn--tg { display: none; }
.hero__cta .tg-image-link { display: block; }
/* Brand text next to logo */
.logo__text { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 16px; }
@media (min-width: 920px) { .logo__text { font-size: 18px; } }
/* Readable H1 (no forced uppercase for long key phrase) */
.hero--light .hero__title { word-break: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: clamp(22px, 3.8vw, 36px); letter-spacing: .005em; margin: 6px 0 12px; text-wrap: balance; }
/* Improve H1 readability for long key phrase */
.hero__title { word-break: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: clamp(22px, 3.8vw, 36px); letter-spacing: .005em; margin: 6px 0 12px; text-wrap: balance; }
@media (min-width: 920px) { .hero__title { word-break: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: clamp(22px, 3.8vw, 36px); letter-spacing: .005em; margin: 6px 0 12px; text-wrap: balance; } }


/* Hero subtitle readability and width */
.hero__subtitle {
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1.35;
  font-weight: 400;
  margin: 4px 0 10px;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (min-width: 920px) { .hero__subtitle { max-width: 66ch; } }
/* Improve contrast for light hero background */
.hero--light .hero__subtitle { color: #111827; }


/* Match logo size to header button */
.logo img { height: 32px; width: auto; }
@media (min-width: 920px) { .logo img { height: 36px; } }
