:root {
  --bg: #07060c;
  --bg2: #0c0a12;
  --panel: #12101a;
  --border: #2a2240;
  --neon: #b84dff;
  --neon-soft: #d070ff;
  --neon-dim: rgba(184, 77, 255, 0.35);
  --text: #f3eefc;
  --muted: #9a90b0;
  --dim: #6a6080;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 18% -5%, rgba(184, 77, 255, 0.38), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 18%, rgba(90, 40, 160, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(184, 77, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #0a0812 0%, var(--bg) 45%);
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 77, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 77, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
  opacity: 0.7;
}
.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

a { color: var(--neon-soft); text-decoration: none; }
a:hover { color: #fff; }

.top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  animation: fade-in 0.6s ease both;
}
.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary {
  background: var(--neon);
  color: #12081e;
  box-shadow: 0 0 32px var(--neon-dim);
}
.btn-primary:hover { box-shadow: 0 0 48px rgba(184, 77, 255, 0.55); }
.btn-ghost {
  background: rgba(18, 8, 30, 0.7);
  color: var(--neon);
  border-color: var(--neon);
  backdrop-filter: blur(8px);
}
.btn.full { width: 100%; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 88px;
}

/* —— Hero: one composition —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 24px 0 48px;
}
.hero-copy { animation: rise 0.75s ease both; max-width: 34rem; }
.brand-hero {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(125deg, #fff 15%, var(--neon-soft) 55%, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(184, 77, 255, 0.4));
  animation: glow-pulse 4s ease-in-out infinite;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 32em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  animation: rise 0.85s 0.12s ease both;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 8%;
  background: radial-gradient(circle at 40% 40%, rgba(184, 77, 255, 0.35), transparent 65%);
  filter: blur(28px);
  z-index: 0;
}
.app-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, #1a1428 0%, #0e0c16 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 77, 255, 0.12),
    0 0 60px rgba(184, 77, 255, 0.15);
}
.app-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}
.app-chrome .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dim);
}
.app-chrome .dot:nth-child(1) { background: #ff4d6d; }
.app-chrome .dot:nth-child(2) { background: #e8c547; }
.app-chrome .dot:nth-child(3) { background: #3dff9a; }
.app-chrome em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
}
.app-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 280px;
}
.app-side {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.nav-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--dim);
  font-weight: 500;
}
.nav-item.active {
  background: rgba(184, 77, 255, 0.18);
  color: var(--neon-soft);
}
.app-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.9rem;
}
.neon-num {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--neon-soft);
  letter-spacing: -0.03em;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 88px;
  padding: 8px 0;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--neon-soft), rgba(184, 77, 255, 0.25));
  animation: bar-up 1.1s ease both;
}
.bars i:nth-child(2) { animation-delay: 0.08s; }
.bars i:nth-child(3) { animation-delay: 0.16s; }
.bars i:nth-child(4) { animation-delay: 0.24s; }
.bars i:nth-child(5) { animation-delay: 0.32s; }
.deal-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(184, 77, 255, 0.08);
  border: 1px solid rgba(184, 77, 255, 0.15);
  border-radius: 8px;
  font-size: 0.88rem;
}
.deal-row b { color: #6dffb0; }
.deal-row.dim { opacity: 0.55; background: transparent; }

/* —— Sections —— */
.features, .telegram, .pricing, .download, .community {
  margin-bottom: 88px;
  animation: rise 0.7s ease both;
}
h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.section-lead { margin: 0 0 28px; color: var(--muted); max-width: 36em; }

.feature-tag {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-text h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}
.feature-text > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
}
.feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.feature-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.95rem;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon-dim);
}

.feature-shot, .tg-phone {
  margin: 0;
}
.feature-shot img,
.tg-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(184, 77, 255, 0.12);
}
.feature-shot img.missing,
.tg-phone img.missing { display: none; }
.feature-shot figcaption,
.tg-phone figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--dim);
}

.shot-fallback {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #1a1428, #0e0c16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(184, 77, 255, 0.12);
  overflow: hidden;
  min-height: 280px;
}
.mock {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.mock header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mock header b {
  font-family: var(--display);
  font-size: 1.1rem;
}
.mock header span { color: var(--dim); font-size: 0.82rem; }
.mock-row, .mock-car, .mock-task {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(184, 77, 255, 0.08);
  border: 1px solid rgba(184, 77, 255, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}
.mock-row em, .mock-car b { font-style: normal; color: var(--text); font-weight: 700; }
.mock-car b { color: #6dffb0; }
.mock-result {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(184, 77, 255, 0.2);
  color: var(--neon-soft);
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: -0.02em;
}
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chips i {
  font-style: normal;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.mock-cat {
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-weight: 600;
}
.mock-task.done {
  border-color: rgba(109, 255, 176, 0.35);
  color: #6dffb0;
}
.mock-task.done::after { content: " ✓"; }

/* Telegram */
.telegram {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: 40px clamp(0px, 2vw, 12px);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(184, 77, 255, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(20, 16, 32, 0.9), rgba(10, 8, 18, 0.5));
  border: 1px solid var(--border);
}
.telegram .section-lead { margin-bottom: 18px; }
.telegram .feature-points { margin-bottom: 24px; }
.tg-phone { max-width: 280px; margin-left: auto; margin-right: auto; }
.phone-fallback { background: transparent; border: none; box-shadow: none; min-height: 0; }
.phone-bezel {
  background: #0a0910;
  border: 2px solid #2e2844;
  border-radius: 28px;
  padding: 12px 10px 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(184, 77, 255, 0.15);
}
.phone-notch {
  width: 96px;
  height: 8px;
  margin: 4px auto 14px;
  border-radius: 999px;
  background: #1c1828;
}
.phone-ui { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 10px; }
.phone-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--neon-soft);
}
.phone-tabs {
  display: flex;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}
.phone-tabs span {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
}
.phone-tabs .on {
  color: var(--neon-soft);
  background: rgba(184, 77, 255, 0.2);
}
.phone-field {
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.85rem;
}
.phone-btn {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--neon);
  color: #12081e;
}
.phone-btn.ghost {
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--neon);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.price-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 28px rgba(184, 77, 255, 0.2);
  transform: translateY(-3px);
}
.price-card.featured {
  border-color: var(--neon);
  box-shadow: 0 0 36px rgba(184, 77, 255, 0.28);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #12081e;
  background: var(--neon);
  padding: 3px 8px;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.price {
  margin: 6px 0;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.term { margin: 0 0 16px; color: var(--dim); font-size: 0.85rem; }
.price-card .btn { margin-top: auto; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.link-pill {
  display: inline-flex;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  background: rgba(18, 16, 26, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.link-pill:hover {
  border-color: var(--neon);
  color: #fff;
  box-shadow: 0 0 20px rgba(184, 77, 255, 0.2);
}
.link-pill.muted { color: var(--dim); cursor: default; }

.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px) 44px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.foot a { color: var(--dim); }
.foot a:hover { color: var(--neon-soft); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(184, 77, 255, 0.35)); }
  50% { filter: drop-shadow(0 0 36px rgba(184, 77, 255, 0.55)); }
}
@keyframes bar-up {
  from { transform: scaleY(0.15); opacity: 0.4; transform-origin: bottom; }
  to { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 12px;
  }
  .hero-visual { order: -1; max-width: 480px; }
  .feature-block,
  .feature-block.reverse,
  .telegram {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .tg-phone { max-width: 260px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .brand-hero { font-size: 2.5rem; }
  .app-body { grid-template-columns: 1fr; }
  .app-side {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .telegram { padding: 28px 16px; }
}
