:root {
  --bg: #060a13;
  --bg2: #0b1220;
  --card: #0f1828;
  --border: #1c2a45;
  --text: #e9effc;
  --dim: #93a4c8;
  --accent: #5b8cff;
  --accent2: #00e5a0;
  --danger: #ff5d73;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "JetBrains Mono", "Cascadia Code", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* фоновые декорации */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(91,140,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,140,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 42, 69, 0.5);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.logo-icon { font-size: 22px; filter: drop-shadow(0 0 8px rgba(91,140,255,0.7)); }
.logo-text strong { color: var(--accent); }
.nav-links { display: flex; gap: 26px; color: var(--dim); font-size: 15px; }
.nav-links a { position: relative; transition: color 0.15s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.2s; border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.18s;
  border: none; text-align: center; font-family: var(--font);
}
.btn-accent { background: linear-gradient(135deg, #4d7dff, #6a3dff); color: #fff; box-shadow: 0 8px 24px rgba(77, 125, 255, 0.35); }
.btn-accent:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(77, 125, 255, 0.55); }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0% { left: -100%; } 55%, 100% { left: 200%; } }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-big { padding: 17px 30px; font-size: 17px; }
.btn-ico { font-size: 20px; }
.btn-sub { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 130px 24px 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: rgba(91,140,255,0.5); top: -120px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: rgba(0,229,160,0.35); bottom: -140px; left: -60px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: rgba(166,77,255,0.4); top: 40%; left: 55%; animation-delay: -8s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  font-size: 13px; color: var(--dim); margin-bottom: 18px;
}
.badge-new {
  background: linear-gradient(135deg, var(--accent2), #00b3ff); color: #041a12;
  padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 11.5px;
  box-shadow: 0 0 14px rgba(0,229,160,0.45);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin-bottom: 18px; font-weight: 800; letter-spacing: -0.5px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--dim); font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-stats { display: flex; gap: 34px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--accent2); text-shadow: 0 0 18px rgba(0,229,160,0.35); }
.stat-lbl { font-size: 12.5px; color: var(--dim); }
.hero-dlcount { color: var(--dim); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.hero-dlcount span { color: var(--accent); font-weight: 700; font-size: 15px; }

/* app window mock */
.hero-visual { position: relative; }
.app-window {
  background: linear-gradient(160deg, rgba(20,30,52,0.95), rgba(13,20,38,0.98));
  border: 1px solid rgba(91,140,255,0.25); border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.4), 0 0 60px rgba(77,125,255,0.12);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.app-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: #0d1526; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--dim);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.app-titlebar span:last-child { margin-left: 8px; }
.ping-live {
  margin-left: auto !important; color: var(--accent2); font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; gap: 4px; animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.app-body { padding: 14px 16px 16px; }
.app-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.app-tabs .tab {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 8px;
  background: rgba(255,255,255,0.04); color: var(--dim); font-size: 12.5px;
  transition: all 0.2s;
}
.app-tabs .tab.on {
  background: linear-gradient(135deg, #466eff, #5a46e6); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(77, 125, 255, 0.35);
}
.app-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; margin-bottom: 7px; border-radius: 8px;
  background: rgba(255,255,255,0.03); font-size: 13.5px;
  transition: background 0.2s;
}
.app-row:hover { background: rgba(255,255,255,0.055); }
.app-row .chk {
  width: 17px; height: 17px; border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  background: var(--accent2); color: #06251a;
  box-shadow: 0 0 10px rgba(0,229,160,0.35);
}
.app-row .chk.off { background: #1a2538; color: #4a5a7c; box-shadow: none; }
.app-btn {
  text-align: center; padding: 11px; margin: 12px 0 10px; border-radius: 9px;
  background: linear-gradient(135deg, #4d7dff, #6a3dff); font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 18px rgba(77, 125, 255, 0.3);
  transition: all 0.2s;
}
.app-btn:hover { box-shadow: 0 8px 24px rgba(77, 125, 255, 0.5); transform: translateY(-1px); }
.app-pingchart {
  display: flex; align-items: flex-end; gap: 4px; height: 44px;
  padding: 6px 8px; margin-bottom: 10px; border-radius: 8px;
  background: rgba(7,13,26,0.7); border: 1px solid var(--border);
}
.app-pingchart .bar {
  flex: 1; border-radius: 3px 3px 1px 1px; height: var(--h);
  background: linear-gradient(180deg, var(--accent2), rgba(0,229,160,0.25));
  animation: eq 2.4s ease-in-out infinite;
  transform-origin: bottom;
}
.app-pingchart .bar:nth-child(3n) { background: linear-gradient(180deg, var(--accent), rgba(91,140,255,0.25)); animation-delay: -0.5s; }
.app-pingchart .bar:nth-child(2n) { animation-delay: -1.1s; }
.app-pingchart .bar:nth-child(5n) { animation-delay: -1.7s; }
@keyframes eq { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }
.app-log { background: #070d1a; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; }
.log-line { color: var(--dim); padding: 2px 0; }
.log-line.ok { color: var(--accent2); }
.log-line.info { color: #ffd479; }

.float-card {
  position: absolute; padding: 10px 16px; border-radius: 12px;
  background: rgba(15, 24, 40, 0.92); border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4); font-size: 14px; backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
}
.fc-1 { bottom: 30px; left: -46px; animation-delay: -1s; }
.fc-1 b { color: var(--accent2); }
.fc-2 { top: -14px; right: -30px; animation-direction: reverse; animation-delay: -2.5s; }

/* ---------- sections ---------- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; letter-spacing: -0.4px; }
.section-head p { color: var(--dim); font-size: 16px; }
.section-head.light h2 { color: #fff; }

.features { padding: 80px 24px; }
.feat-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.feat-card {
  background: linear-gradient(160deg, rgba(20,30,52,0.6), rgba(15,24,40,0.9));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all 0.25s; position: relative; overflow: hidden;
}
.feat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.feat-card:hover { transform: translateY(-6px); border-color: rgba(91, 140, 255, 0.5); box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 0 30px rgba(77,125,255,0.08); }
.feat-card:hover::before { opacity: 1; }
.feat-ico {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: rgba(91,140,255,0.1); border: 1px solid rgba(91,140,255,0.25);
  transition: transform 0.25s;
}
.feat-card:hover .feat-ico { transform: scale(1.1) rotate(-4deg); }
.feat-card h3 { font-size: 18px; margin-bottom: 8px; }
.feat-card p { color: var(--dim); font-size: 14.5px; }

/* ---------- how ---------- */
.how {
  background: linear-gradient(160deg, #0a1326, #0d0a24);
  border-block: 1px solid var(--border);
  padding: 80px 24px; position: relative; overflow: hidden;
}
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 50% 0%, rgba(91,140,255,0.08), transparent 70%);
}
.steps { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; position: relative; }
.step { text-align: center; padding: 10px; }
.step-num {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4d7dff, #6a3dff);
  box-shadow: 0 8px 22px rgba(77, 125, 255, 0.35);
  transition: transform 0.25s;
}
.step:hover .step-num { transform: scale(1.12); box-shadow: 0 10px 30px rgba(77, 125, 255, 0.5); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* ---------- download ---------- */
.download { padding: 80px 24px; }
.dl-inner {
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(77, 125, 255, 0.14), rgba(0, 229, 160, 0.09));
  border: 1px solid rgba(91, 140, 255, 0.35); border-radius: 18px;
  padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; position: relative; overflow: hidden;
}
.dl-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px 200px at 80% 20%, rgba(0,229,160,0.12), transparent 70%);
}
.dl-text h2 { font-size: 30px; margin-bottom: 8px; }
.dl-text p { color: var(--dim); }
.dl-meta { display: flex; gap: 18px; margin-top: 14px; font-size: 13.5px; color: var(--accent2); flex-wrap: wrap; }
.btn-dl { background: linear-gradient(135deg, var(--accent2), #00b3ff); color: #041a12; box-shadow: 0 10px 28px rgba(0, 229, 160, 0.3); position: relative; }
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 229, 160, 0.45); }
.btn-dl::after {
  content: ""; position: absolute; inset: -4px; border-radius: 16px; border: 2px solid rgba(0,229,160,0.35);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.08); opacity: 0; } }

/* ---------- faq ---------- */
.faq { padding: 80px 24px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: linear-gradient(160deg, rgba(20,30,52,0.6), rgba(15,24,40,0.9));
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px;
  transition: border-color 0.2s;
}
.faq-list details[open] { border-color: rgba(91,140,255,0.45); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::after { content: "＋"; color: var(--accent); font-size: 18px; transition: transform 0.25s; }
.faq-list details[open] summary::after { content: "－"; transform: rotate(180deg); }
.faq-list p { color: var(--dim); margin-top: 10px; font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--dim); font-size: 13px; max-width: 520px; }

/* кастомный скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22314f; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2f4368; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .nav-links { display: none; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .float-card { display: none; }
  .dl-inner { padding: 32px 24px; justify-content: center; text-align: center; }
}
