/* Лендинг v2 — тёмная тема, aurora-фон, glass-карточки, scroll-reveal, spotlight. */
:root {
    --bg: #070a14;
    --card: rgba(255, 255, 255, .04);
    --line: rgba(255, 255, 255, .09);
    --txt: #e8ebf7;
    --muted: #8b93b5;
    --a: #7c6cff;
    --b: #22d3ee;
    --c: #34d399;
}

html { scroll-behavior: smooth; }
body.l2 { background: var(--bg); color: var(--txt); font-family: "Inter", sans-serif; overflow-x: hidden; }

/* Aurora */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 560px; height: 560px; background: var(--a); top: -12%; left: -8%; }
.aurora i:nth-child(2) { width: 480px; height: 480px; background: var(--b); top: 18%; right: -10%; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 520px; height: 520px; background: var(--c); bottom: -18%; left: 30%; opacity: .28; animation-delay: -12s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

.grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
    opacity: .5;
}

.l2-wrap { position: relative; z-index: 1; }

/* Glass */
.glass { background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; }
.nav-glass { background: rgba(7, 10, 20, .6); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.grad-text { background: linear-gradient(100deg, var(--a), var(--b) 50%, var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

/* Buttons */
.btn-glow {
    position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 14px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--a), #5b8cff); box-shadow: 0 10px 40px -8px rgba(124, 108, 255, .7); transition: transform .25s, box-shadow .25s;
    overflow: hidden;
}
.btn-glow::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 16px 50px -6px rgba(124, 108, 255, .9); color: #fff; }
.btn-glow:hover::after { left: 140%; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--card); transition: border-color .25s, background .25s, transform .25s; }
.btn-ghost:hover { border-color: var(--a); background: rgba(124, 108, 255, .1); transform: translateY(-3px); }

/* Reveal */
.rv { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

/* Spotlight cards */
.spot { position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.spot::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 108, 255, .22), transparent 45%);
}
.spot:hover { border-color: rgba(124, 108, 255, .5); transform: translateY(-6px); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Floating hero card */
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 9s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(.6deg); } }

/* Network SVG */
.net-line { stroke: url(#lg); stroke-width: 1.6; stroke-dasharray: 5 6; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.net-node { animation: nodepulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodepulse { 50% { transform: scale(1.18); } }

/* Calculator */
input[type=range].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--a) var(--p, 40%), rgba(255, 255, 255, .12) var(--p, 40%)); outline: none; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(124, 108, 255, .35), 0 4px 14px rgba(0, 0, 0, .5); cursor: pointer; }
input[type=range].rng::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(124, 108, 255, .35); cursor: pointer; }
.tab-btn { padding: 10px 22px; border-radius: 12px; font-weight: 600; color: var(--muted); border: 1px solid transparent; transition: .25s; }
.tab-btn.on { color: #fff; background: rgba(124, 108, 255, .2); border-color: rgba(124, 108, 255, .6); }
.bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--a), var(--b)); transition: width .7s cubic-bezier(.2, .7, .2, 1); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary i { transition: transform .3s; color: var(--b); }
details.faq[open] summary i { transform: rotate(45deg); }
details.faq p { padding: 0 0 22px; color: var(--muted); line-height: 1.7; }

/* Cursor glow */
.cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: 0; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 65%); transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rv { opacity: 1; transform: none; }
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* Иконки пакетов: парение, блик, искры, реакция на наведение и клик */
.plan-icon-wrap { width: 68px; height: 68px; margin: 0 0 10px; cursor: pointer; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); position: relative; }
.plan-icon { width: 100%; height: 100%; overflow: visible; animation: planFloat 4.5s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.plan-icon-bronze .plan-icon { filter: drop-shadow(0 6px 10px rgba(217, 138, 67, .45)); }
.plan-icon-silver .plan-icon { filter: drop-shadow(0 6px 10px rgba(127, 136, 153, .5)); }
.plan-icon-gold .plan-icon { filter: drop-shadow(0 6px 12px rgba(245, 197, 24, .55)); }
.plan-icon-vip .plan-icon { filter: drop-shadow(0 6px 12px rgba(139, 92, 246, .6)); }
.plan-icon-wrap:hover, .plan-card:hover .plan-icon-wrap, .spot:hover .plan-icon-wrap { transform: scale(1.14) rotate(-7deg); }
.plan-icon-wrap.pop { animation: planPop .7s cubic-bezier(.3, 1.4, .5, 1); }
.plan-shine { animation: planShine 3.6s ease-in-out infinite; }
.plan-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: planTwinkle 3s ease-in-out infinite; }
.plan-spark.s2 { animation-delay: 1s; } .plan-spark.s3 { animation-delay: 2s; }
@keyframes planFloat { 50% { transform: translateY(-6px); } }
@keyframes planShine { 0%, 45% { transform: translateX(0) rotate(25deg); } 100% { transform: translateX(110px) rotate(25deg); } }
@keyframes planTwinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes planPop { 0% { transform: scale(1); } 30% { transform: scale(.8) rotate(-12deg); } 60% { transform: scale(1.3) rotate(10deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .plan-icon, .plan-shine, .plan-spark, .plan-icon-wrap.pop { animation: none !important; } .plan-spark { opacity: .8; } }
