@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --p: #7c3aed; --p-h: #6d28d9; --p-glow: rgba(124,58,237,0.5);
    --bg: #030005; --card: #0c0c0e; --border: #1f1f22;
    --text: #fff; --dim: #9ca3af;
    --font: 'Manrope', sans-serif; --mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg: #f8fafc; --card: #ffffff; --border: #e2e8f0; --text: #0f172a; --dim: #64748b;
}

* { box-sizing: border-box; outline: none; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; transition: 0.3s; line-height: 1.5; }

/* Анимации фона */
.bg-canvas { position: fixed; inset: 0; z-index: -1; opacity: 0.3; pointer-events: none; }
.glow-blob { position: fixed; width: 800px; height: 800px; background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%); border-radius: 50%; filter: blur(80px); z-index: -2; animation: float 10s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, 30px); } }

/* UI Kit */
.con { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; border: 1px solid transparent; font-size: 0.95rem; text-decoration: none; }
.btn-p { background: var(--p); color: white; box-shadow: 0 0 30px rgba(124,58,237,0.25); }
.btn-p:hover { background: var(--p-h); transform: translateY(-3px); box-shadow: 0 0 50px var(--p-glow); }
.btn-o { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--text); }
.btn-o:hover { border-color: var(--p); color: var(--p); }

.grad-text { background: linear-gradient(135deg, var(--text) 30%, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Header */
nav { position: sticky; top: 0; z-index: 100; background: rgba(3,0,5,0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-in { height: 80px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; font-family: 'Space Grotesk', sans-serif; }
.logo span { color: var(--p); }
.menu { display: flex; gap: 30px; list-style: none; }
.menu a { color: var(--dim); text-decoration: none; font-weight: 600; transition: 0.2s; }
.menu a:hover { color: var(--p); }

/* Hero */
.hero { padding: 160px 0 100px; text-align: center; position: relative; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #10b981; border-radius: 100px; font-size: 0.8rem; margin-bottom: 30px; font-family: var(--mono); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.05; font-weight: 800; margin-bottom: 25px; letter-spacing: -1.5px; }
.hero p { font-size: 1.25rem; color: var(--dim); max-width: 650px; margin: 0 auto 40px; }

/* Stats Bar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 20px; overflow: hidden; margin-top: 80px; border: 1px solid var(--border); }
.stat { background: var(--bg); padding: 30px; text-align: center; }
.stat b { display: block; font-size: 2rem; font-family: var(--mono); color: var(--text); }
.stat span { font-size: 0.8rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }

/* Pricing */
.sec { padding: 120px 0; border-bottom: 1px solid var(--border); }
.head { text-align: center; margin-bottom: 70px; }
.head h2 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }

.switch-bill { display: flex; justify-content: center; gap: 15px; align-items: center; margin-bottom: 50px; font-weight: 700; cursor: pointer; }
.switch-bg { width: 56px; height: 30px; background: var(--border); border-radius: 30px; position: relative; transition: 0.3s; }
.switch-bg::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: 0.3s; }
.switch-bill.active .switch-bg { background: var(--p); }
.switch-bill.active .switch-bg::after { transform: translateX(26px); }

.grid-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--card); border: 1px solid var(--border); padding: 40px; border-radius: 24px; transition: 0.3s; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.card:hover { transform: translateY(-10px); border-color: var(--p); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.card.pop { border-color: var(--p); background: linear-gradient(180deg, rgba(124,58,237,0.05), var(--card)); }
.pop-tag { position: absolute; top: 20px; right: 20px; background: var(--p); font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: 800; color: white; }

.price { font-size: 3.5rem; font-weight: 800; font-family: var(--mono); margin: 20px 0; color: var(--text); }
.price span { font-size: 1rem; color: var(--dim); font-family: var(--font); font-weight: 400; }

.features li { display: flex; gap: 12px; margin-bottom: 15px; color: var(--dim); }
.features i { color: var(--p); }

/* Features Grid */
.grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feat-card { background: var(--card); padding: 35px; border-radius: 20px; border: 1px solid var(--border); transition: 0.3s; }
.feat-card:hover { border-color: var(--p); }
.feat-icon { width: 60px; height: 60px; background: rgba(124,58,237,0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--p); margin-bottom: 25px; }

/* Footer */
footer { padding: 80px 0; background: var(--card); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.f-col h4 { color: var(--text); margin-bottom: 25px; font-weight: 700; }
.f-col a { display: block; color: var(--dim); text-decoration: none; margin-bottom: 12px; transition: 0.2s; }
.f-col a:hover { color: var(--p); }

/* Preloader */
#preloader { position: fixed; inset: 0; background: #000; z-index: 9999; display: flex; justify-content: center; align-items: center; font-family: var(--mono); font-size: 2rem; color: var(--p); }

@media(max-width:1024px) { .menu { display: none; } .stats, .grid-feat, .f-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 3rem; } }