/* ===== Theme tokens ===== */
:root {
  --bg: #0a0f0d;
  --bg-alt: #0e1512;
  --surface: #121b17;
  --surface-2: #16221c;
  --border: #223229;
  --text: #eaf3ee;
  --muted: #9db4a8;
  --brand: #3ddc84;
  --brand-2: #21c06a;
  --brand-deep: #0f7a45;
  --accent: #b8ff5c;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 20px 60px -18px rgba(61, 220, 132, 0.45);
  --maxw: 1180px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

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

img, svg { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #052012; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -16px rgba(61,220,132,.6); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.logo-mark { font-size: 1.5rem; filter: drop-shadow(0 4px 10px rgba(61,220,132,.4)); }
.logo-text span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.96rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: #052012; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(closest-side, rgba(61,220,132,.28), transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.3);
  color: var(--brand); padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(61,220,132,.6)} 70%{box-shadow:0 0 0 10px rgba(61,220,132,0)} 100%{box-shadow:0 0 0 0 rgba(61,220,132,0)} }

.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin: 20px 0 18px; letter-spacing: -1px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.18rem); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 560px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: 0.82rem; }

/* Hero device */
.hero-visual { display: flex; justify-content: center; }
.device {
  width: 100%; max-width: 380px; aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 22px; padding: 14px;
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.device-screen {
  width: 100%; height: 100%; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #14261c, #0a120e);
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.device-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-size: 0.75rem; color: var(--muted); border-bottom: 1px solid var(--border);
}
.device-live { color: var(--danger); font-weight: 700; }
.device-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.device-grid span {
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px;
  transition: transform .3s, background .3s;
}
.device-grid span:hover { transform: scale(1.08); background: rgba(61,220,132,.12); }

/* Marquee */
.marquee { margin-top: 56px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; }
.marquee-track { display: flex; gap: 46px; padding: 16px 0; width: max-content; animation: scroll 26s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 1.05rem; opacity: .7; white-space: nowrap; }
.marquee-track span::before { content: "🐊"; margin-right: 46px; }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Content stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card {
  position: relative; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(61,220,132,.07), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(61,220,132,.45); box-shadow: var(--shadow); }
.stat-icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px;
  font-size: 1.8rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(61,220,132,.16), rgba(61,220,132,.04));
  border: 1px solid rgba(61,220,132,.25);
}
.stat-card h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.stat-number {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.1rem);
  line-height: 1.05; margin: 8px 0 12px;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card p { color: var(--muted); font-size: 0.95rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(61,220,132,.4); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(61,220,132,.16), rgba(61,220,132,.04));
  border: 1px solid rgba(61,220,132,.25); margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.96rem; }

/* Pricing */
.billing-note { text-align: center; margin: -20px 0 34px; }
.billing-note span { background: rgba(184,255,92,.1); border: 1px solid rgba(184,255,92,.3); color: var(--accent); padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(61,220,132,.4); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(61,220,132,.08), var(--surface));
  box-shadow: var(--shadow-brand);
}
.plan-name { font-size: 1.15rem; color: var(--muted); font-weight: 600; }
.price { display: flex; align-items: flex-end; gap: 3px; margin: 12px 0 2px; }
.price .currency { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.price .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.per { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.save-tag { align-self: flex-start; background: rgba(61,220,132,.14); color: var(--brand); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.popular-tag, .best-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: .5px;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.popular-tag { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #052012; }
.best-tag { background: var(--accent); color: #1a2600; }
.plan-features { list-style: none; margin: 6px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-features li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--muted); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.pricing-fine { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 26px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips span {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 18px; font-weight: 500; font-size: 0.95rem; transition: .2s;
}
.chips span:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #052012;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px; transition: border-color .2s;
}
.faq details[open] { border-color: rgba(61,220,132,.4); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 0.96rem; }

/* Contact */
.cta-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 24px; padding: 40px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-card .tg-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ca5e0, #229ed9);
  box-shadow: 0 12px 30px -8px rgba(34, 158, 217, .6);
}
.cta-card .tg-icon svg { width: 36px; height: 36px; transform: translateX(-1px); }
.cta-card h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.cta-card > p { color: var(--muted); margin-bottom: 26px; max-width: 460px; margin-left: auto; margin-right: auto; }
.btn-telegram {
  background: linear-gradient(135deg, #2ca5e0, #229ed9);
  color: #fff; box-shadow: 0 20px 60px -18px rgba(34, 158, 217, .65);
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -16px rgba(34, 158, 217, .8); }
.tg-btn { font-size: 1.1rem; }
.tg-btn-icon { width: 22px; height: 22px; }
.tg-handle { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }
.tg-handle strong { color: #4fb8e8; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 54px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 340px; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.footer-cols h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--border); padding: 22px; color: var(--muted); font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { grid-column: span 2; }
  .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(10,15,13,.98); border-bottom: 1px solid var(--border);
    padding: 10px 22px 22px; transform: translateY(-120%); transition: transform .3s ease; align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid, .features-grid-4, .steps, .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .cta-card { padding: 28px 20px; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
