/* ============================================================
   BLAUNCHER — landing page
   Same palette as the app itself: deep near-black surfaces,
   one neon violet accent with glow, soft rounding/shadows.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0c0b10;
  --panel: #15131c;
  --card: #1d1a28;
  --hover: #2a2540;
  --accent: #a855f7;
  --accent-hover: #c084fc;
  --accent-press: #9333ea;
  --text: #e6e6ec;
  --text-secondary: #a0a0b0;
  --text-muted: #6e6e7e;
  --border: rgba(255,255,255,0.10);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12,11,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand-logo { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 24px;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--accent-hover); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-press));
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: 0 0 0 rgba(168,85,247,0);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 30px rgba(168,85,247,0.45);
  transform: translateY(-1px);
}

.btn-small { padding: 8px 16px; font-size: 13px; }

.btn-large { padding: 16px 32px; font-size: 17px; border-radius: 12px; }

.btn-icon { font-size: 12px; }

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--hover);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 60%;
  filter: saturate(1.1);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 30%, rgba(168,85,247,0.18), transparent 60%),
    linear-gradient(180deg, rgba(12,11,16,0.55) 0%, rgba(12,11,16,0.88) 55%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 0 60px rgba(168,85,247,0.5);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(168,85,247,0.35);
}

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-version {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-hover);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 8px;
  padding: 6px 10px;
}

.hero-requirements {
  color: var(--text-muted);
  font-size: 13px;
}

/* Live "online now" counter under the download button */
.hero-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero-online[hidden] { display: none; }
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34,197,94,0.6);
  animation: onlinePulse 2s infinite;
}
@keyframes onlinePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ---- Section shared ---- */
.section-title {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 48px;
}

/* ---- Features ---- */
.features { padding: 90px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---- Download CTA ---- */
.download-cta {
  padding: 100px 0 120px;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.download-grid.single {
  grid-template-columns: 1fr;
  max-width: 380px;
}

.download-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.download-card-primary {
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 0 50px rgba(168,85,247,0.14);
}

.download-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-press));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(168,85,247,0.4);
}

.download-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.download-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 22px;
  flex: 1;
}

.download-card .btn { align-self: flex-start; }

.download-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-family: "JetBrains Mono", Consolas, monospace;
  margin-top: 14px;
}

.download-desc code,
.download-desc strong {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12.5px;
  color: var(--accent-hover);
}

.download-desc strong { font-weight: 700; }

.download-desc code {
  font-family: "JetBrains Mono", Consolas, monospace;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.footer-logo { width: 22px; height: 22px; border-radius: 5px; opacity: 0.85; }

.footer-telegram {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-telegram:hover { color: var(--accent-hover); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-legal a:hover { color: var(--accent-hover); }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  /* три файла остаются в один ряд, просто компактнее */
  .download-grid { gap: 14px; }
  .download-card { padding: 24px 18px; }
  .download-card h3 { font-size: 17px; }
  .download-desc { font-size: 13px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hero { padding: 100px 0 80px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
