:root {
  --bg-0: #0a0e13;
  --bg-1: #141517;
  --bg-2: #1c2733;
  --accent: #60df93;
  --accent-2: #bb7bd2;
  --text: #e7e9ea;
  --text-dim: #9aa3a8;
  --text-mute: #71767b;
  --border: #2a3540;
  --gradient-hero: linear-gradient(180deg, #000000 0%, #0a0e13 60%, #141517 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }

/* ═══ HEADER / HERO ═══ */
.hero-header {
  position: relative;
  background: var(--gradient-hero);
  padding: 40px 0 120px;
  overflow: hidden;
}
.hero-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 140%; height: 200%;
  background: radial-gradient(ellipse at 30% 30%, rgba(96, 223, 147, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(187, 123, 210, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.logo { width: 52px; height: 52px; border-radius: 14px; filter: drop-shadow(0 4px 20px rgba(96, 223, 147, 0.3)); }
.logo--sm { width: 36px; height: 36px; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #c8ccd0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #3bc77a 100%);
  color: #0a0e13;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(96, 223, 147, 0.3);
  width: fit-content;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(96, 223, 147, 0.45); }
.btn-download--lg { padding: 20px 32px; font-size: 17px; }
.btn-icon { font-size: 24px; }
.btn-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-label { font-size: 15px; }
.btn-version { font-size: 11px; opacity: 0.75; font-weight: 500; }

.hero-meta {
  display: flex; gap: 20px;
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 600;
}

.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--accent); }
.stat-lbl { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.5px; }

/* Phone frame */
.phone-frame {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 
    0 0 0 2px #1a1a1a,
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(96, 223, 147, 0.15);
  margin: 0 auto;
}
.phone-frame--small { width: 240px; border-radius: 32px; padding: 8px; }
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-frame--small .phone-notch { width: 80px; height: 22px; top: 8px; }
.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: #0a0e13;
}
.phone-frame--small .phone-video { border-radius: 22px; }

.hero-right { display: flex; justify-content: center; }

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ═══ SECTIONS ═══ */
section { padding: 80px 0; position: relative; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 56px;
  font-size: 16px;
}

/* Feature cards (основные) */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 40px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at top left, rgba(96, 223, 147, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.feature-card--right { grid-template-columns: 1fr 1fr; }
.feature-card--right .feature-phone { order: -1; }

.feature-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(96, 223, 147, 0.12);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.feature-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.feature-content p {
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 15px;
}
.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li {
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
}
.btn-details {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-details:hover { background: var(--bg-2); border-color: var(--accent); color: var(--accent); }

/* Grid features */
.features-grid { background: var(--bg-0); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.grid-card {
  padding: 28px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(96, 223, 147, 0.15);
}
.grid-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.grid-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.grid-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #1a2b20 0%, #0a0e13 100%);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-dim); margin-bottom: 32px; font-size: 17px; }
.cta-section .btn-download { margin: 0 auto; }

/* Footer */
.footer {
  background: #000;
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text-mute); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-about { color: var(--text-dim); font-size: 13px; margin-top: 16px; max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
}

/* ═══ OVERLAY ═══ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.overlay.active { display: flex; animation: fadeIn 0.25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay-content {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.overlay--text .overlay-content { max-width: 700px; }
.overlay-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.overlay-close:hover { background: var(--accent); color: #000; }
.overlay-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.overlay-text h2 { font-size: 28px; margin-bottom: 12px; }
.overlay-text p { color: var(--text-dim); margin-bottom: 20px; }
.overlay-text-body { color: var(--text-dim); line-height: 1.7; }
.overlay-text-body h3 { color: var(--text); margin: 20px 0 8px; font-size: 18px; }
.overlay-text-body p { margin-bottom: 12px; }
.overlay--text h2 { font-size: 28px; margin-bottom: 20px; padding-right: 40px; }

/* Mobile */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle, .hero-cta, .hero-meta, .hero-stats { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .btn-download { margin: 0 auto; }
  .feature-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .feature-card--right { grid-template-columns: 1fr; }
  .feature-card--right .feature-phone { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .overlay-body { grid-template-columns: 1fr; }
  .overlay-phone { order: -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}