:root {
  --bg: #07070f;
  --bg-elevated: #0f0f1a;
  --bg-card: rgba(18, 18, 31, 0.72);
  --text: #f4f4ff;
  --text-muted: rgba(244, 244, 255, 0.62);
  --accent: #8b7cff;
  --accent-2: #2dd4bf;
  --accent-glow: rgba(139, 124, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.bg-glow::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, #6d5cff 0%, transparent 70%);
}
.bg-glow::after {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, #2dd4bf 0%, transparent 70%);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img { width: 40px; height: 40px; }
.brand span {
  font-size: 1.15rem;
  background: linear-gradient(135deg, #fff, #c8c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d5cff);
  color: #fff;
  box-shadow: 0 12px 40px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 16px 48px rgba(139, 124, 255, 0.45); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-lg { padding: 18px 28px; font-size: 1rem; }

.hero {
  padding: 72px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(139, 124, 255, 0.12);
  border: 1px solid rgba(139, 124, 255, 0.22);
  color: #d9d4ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 0%, #9b8cff 55%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-meta strong { color: var(--text); }

.phone {
  position: relative;
  width: min(100%, 340px);
  margin: 0 auto;
  aspect-ratio: 9/18;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
}
.phone::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: radial-gradient(circle at 50% 20%, rgba(139,124,255,0.25), transparent 55%);
  z-index: -1;
}
.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #151525 0%, #0d0d18 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.phone-top {
  padding: 18px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-top .title { font-weight: 800; font-size: 0.95rem; }
.phone-top .status { font-size: 0.75rem; color: #6ee7b7; }
.chat-list { padding: 12px; display: grid; gap: 10px; flex: 1; }
.chat-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b7cff, #2dd4bf);
}
.chat-item:nth-child(2) .avatar { background: linear-gradient(135deg, #f472b6, #8b7cff); }
.chat-item:nth-child(3) .avatar { background: linear-gradient(135deg, #38bdf8, #2dd4bf); }
.chat-name { font-weight: 700; font-size: 0.86rem; }
.chat-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 0.72rem; color: var(--text-muted); }

.section { padding: 84px 0; }
.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(139,124,255,0.14);
  color: #c4bcff;
  font-size: 1.3rem;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
  font-size: 0.9rem;
}
.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.download-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.download-box {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(139,124,255,0.16), rgba(45,212,191,0.08));
  border: 1px solid rgba(139,124,255,0.22);
  box-shadow: var(--shadow);
}
.download-box h2 { margin: 0 0 10px; font-size: 2rem; letter-spacing: -0.03em; }
.download-box p { color: var(--text-muted); margin: 0 0 22px; }
.download-info {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.download-info span { color: var(--text); font-weight: 700; }
.qr-box {
  padding: 28px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.qr-box canvas, .qr-box img { border-radius: 16px; background: #fff; padding: 10px; }
.qr-caption { color: var(--text-muted); font-size: 0.9rem; max-width: 220px; }

.faq { display: grid; gap: 12px; }
.faq-item {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); }

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-owner {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-owner strong { color: var(--text); }

.legal-page { padding: 48px 0 80px; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-meta { color: var(--text-muted); margin-bottom: 32px; }
.legal-page h2 { margin-top: 32px; font-size: 1.25rem; }
.legal-page p, .legal-page li { color: rgba(244,244,255,0.78); }
.legal-page ul { padding-left: 20px; }

@media (max-width: 960px) {
  .hero-grid, .download-panel, .grid-3, .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding-top: 42px; }
  .phone { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeIn .7s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: none; }
}

/* Interactive enhancements */
.site-header.scrolled {
  background: rgba(7, 7, 15, 0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,15,0.95);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 8px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 10px;
}
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.stats-bar { padding: 0 0 48px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.section-alt { background: rgba(255,255,255,0.02); }

.calls-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 800;
}

.call-demo {
  position: relative;
  aspect-ratio: 1;
  max-width: 280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(139,124,255,0.08);
  border: 1px solid rgba(139,124,255,0.2);
}
.call-demo-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid rgba(139,124,255,0.35);
  animation: pulseRing 2s ease infinite;
}
.call-demo-icon { font-size: 3rem; z-index: 1; }
.call-demo-text { position: absolute; bottom: 18%; font-size: 0.85rem; color: var(--text-muted); }
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .4s;
}
.typing-indicator.show { opacity: 1; }
.typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingDot 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.chat-item.chat-flash {
  background: rgba(139,124,255,0.12);
  transition: background .3s;
}

.float-download {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #6d5cff);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 12px 40px var(--accent-glow);
  animation: floatPulse 2.5s ease infinite;
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hide-mobile {}
@media (max-width: 960px) {
  .hide-mobile { display: none; }
  .nav-burger { display: flex; }
  .stats-grid, .calls-panel { grid-template-columns: 1fr; }
}

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 7, 15, 0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.status-pill.ok { border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.status-pill.bad { border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.status-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-grid-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 24px 0; }
.status-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); }
.status-card.ok { border-color: rgba(52, 211, 153, 0.3); }
.status-card.bad { border-color: rgba(248, 113, 113, 0.3); }
.status-card .status-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.status-card.ok .status-dot { background: #34d399; box-shadow: 0 0 12px #34d399; }
.status-card.bad .status-dot { background: #f87171; box-shadow: 0 0 12px #f87171; }
.status-detail { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.status-overall { display: inline-flex; padding: 12px 20px; border-radius: 999px; font-weight: 800; margin-bottom: 8px; }
.status-overall.ok { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.3); }
.status-overall.bad { background: rgba(248, 113, 113, 0.12); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.security-grid { margin: 32px 0; }
.site-footer { padding-bottom: 72px; }
.legal-page { padding-bottom: 100px; }
.float-download { bottom: 72px; }
