/* --- GLOBAL --- */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --bg: #050505; --text: #ffffff; --muted: #9CA3AF;
    --accent: #3B82F6; --glass: rgba(20, 20, 20, 0.6);
    --border: rgba(255, 255, 255, 0.1); 
    --font-main: 'Inter', sans-serif;
    --font-head: 'Inter Tight', sans-serif;
}
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--bg); color: var(--text); font-family: var(--font-main); overflow-x: hidden; }

/* --- CURSOR & ANIMATION --- */
.cursor-glow {
    position: fixed; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 9999;
    mix-blend-mode: screen; transition: transform 0.05s linear;
}
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- BACKGROUND --- */
.ambient-light { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; opacity: 0.35; animation: float 12s infinite ease-in-out; }
.one { top: -20%; left: -20%; width: 70vw; height: 70vw; background: radial-gradient(circle, #4F46E5, transparent); }
.two { bottom: -20%; right: -20%; width: 70vw; height: 70vw; background: radial-gradient(circle, #059669, transparent); animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
.noise-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.05; z-index: -1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }

/* --- NAV (PREMIUM) --- */
.nav-wrapper { position: fixed; top: 20px; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.glass-nav {
    pointer-events: auto; width: 90%; max-width: 1000px; padding: 12px 24px;
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.5px; font-size: 1.2rem; }
.nav-links a { 
    color: #bbb; text-decoration: none; margin: 0 15px; font-size: 0.95rem; 
    font-family: var(--font-head); font-weight: 500; transition: 0.3s; position: relative;
}
.nav-links a:hover { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.6); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 50%;
    background: var(--accent); transition: 0.3s; transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; box-shadow: 0 0 10px var(--accent); }

.btn-nav { color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 10px 22px; background: rgba(255,255,255,0.1); border-radius: 20px; transition: 0.3s; }
.btn-nav:hover { background: #fff; color: #000; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* --- HERO --- */
.hero { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 60px; }
.hero-content { display: flex; flex-direction: column; align-items: center; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 100px; margin-bottom: 30px; }
.badge-text { font-size: 0.9rem; color: #fff; font-weight: 500; }
.hero h1 {
    font-family: var(--font-head); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -2px; line-height: 1.05; margin: 0 0 24px;
    background: linear-gradient(180deg, #fff 10%, #888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.typewriter-text { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.cursor { animation: blink 1s infinite; color: var(--accent); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 600px; line-height: 1.6; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #fff; color: #000; text-decoration: none; padding: 14px 32px; border-radius: 30px; font-weight: 600; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,255,255,0.3); }
.btn-secondary { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; padding: 14px 32px; border-radius: 30px; font-weight: 600; backdrop-filter: blur(10px); transition: 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* --- MARQUEE --- */
.tech-strip { width: 100%; overflow: hidden; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); margin-bottom: 80px; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: scroll 30s linear infinite; color: var(--muted); font-weight: 600; letter-spacing: 1px; font-size: 0.9rem; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SECTIONS & TRUST --- */
.section-block { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; margin-bottom: 50px; text-align: center; letter-spacing: -1px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.trust-item { background: var(--glass); border: 1px solid var(--border); padding: 30px; border-radius: 24px; backdrop-filter: blur(20px); transition: 0.3s; }
.trust-item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.trust-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.trust-item h4 { font-family: var(--font-head); font-size: 1.3rem; margin: 0 0 10px; }
.trust-item p { margin: 0; color: var(--muted); line-height: 1.5; }

/* --- BENTO GRID (FIXED LAYOUT) --- */
.bento-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 350px 350px; gap: 24px; }
.bento-card {
    background: var(--glass); border: 1px solid var(--border); border-radius: 30px; padding: 30px;
    backdrop-filter: blur(40px); display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.4s; overflow: hidden; position: relative; box-sizing: border-box;
}
.bento-card.large { grid-row: 1 / 3; grid-column: 1 / 2; }
.bento-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.card-content h3 { font-family: var(--font-head); margin: 0 0 10px; font-size: 1.5rem; color: #fff; }
.card-content p { margin: 0; color: var(--muted); line-height: 1.5; }

/* 1. WEB ANIMATION (FIXED VISIBILITY) */
.card-visual { flex-grow: 1; margin-bottom: 20px; border-radius: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); position: relative; overflow: hidden; }
.browser-window { padding: 15px; height: 100%; display: flex; flex-direction: column; }
.browser-header { display: flex; gap: 6px; margin-bottom: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; } .gray { background: #333; }
.browser-content { display: flex; flex-direction: column; gap: 10px; }
/* Элементы скелета (ярче) */
.sk-nav { width: 100%; height: 10px; background: rgba(255,255,255,0.15); border-radius: 4px; }
.sk-hero { width: 60%; height: 30px; background: rgba(255,255,255,0.15); border-radius: 4px; }
.sk-grid { display: flex; gap: 10px; }
.sk-col { flex: 1; height: 20px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.sk-btn { width: 30%; height: 15px; background: var(--accent); border-radius: 4px; opacity: 0.8; }

/* CSS Infinite Loop */
.web-loop { animation: webCycle 4s infinite ease-in-out; opacity: 0; transform: translateY(10px); }
.d-1 { animation-delay: 0.3s; }
.d-2 { animation-delay: 0.6s; }
.d-3 { animation-delay: 0.9s; }
.d-4 { animation-delay: 1.2s; }
@keyframes webCycle {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* 2. CHAT ANIMATION */
.chat-interface { padding: 20px; display: flex; flex-direction: column; gap: 10px; height: 100%; overflow: hidden; justify-content: flex-end; }
.chat-msg { padding: 8px 12px; border-radius: 12px; width: fit-content; font-size: 0.85rem; animation: msgFade 0.3s ease-out; }
.chat-msg.left { background: rgba(255,255,255,0.1); border-bottom-left-radius: 2px; }
.chat-msg.right { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-msg.action { background: rgba(52, 199, 89, 0.2); color: #4ade80; border: 1px solid #4ade80; align-self: center; cursor: pointer; }
@keyframes msgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 3. TERMINAL */
.code-mockup { padding: 20px; font-family: monospace; font-size: 0.8rem; background: #000; height: 100%; }
.terminal-text { color: #4ade80; }
.term-line { display: block; margin-bottom: 5px; }

/* --- SPOTLIGHT --- */
.spotlight-card { position: relative; overflow: hidden; }
.spotlight-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--x) var(--y), rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none; z-index: 2;
}

/* --- PRICING --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-glass {
    background: var(--glass); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
    backdrop-filter: blur(40px); display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.3s; position: relative; height: 100%;
}
.price-glass:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.4); }
/* Custom Glows */
.glow-blue:hover { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2); border-color: #3B82F6; }
.glow-purple:hover { box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2); border-color: #A855F7; }
.glow-green:hover { box-shadow: 0 15px 40px rgba(52, 211, 153, 0.2); border-color: #34D399; }
.featured { border: 1px solid var(--accent); background: rgba(59, 130, 246, 0.08); }
.tag-hit { position: absolute; top: 15px; right: 15px; background: linear-gradient(135deg, #FF3B30, #FF9500); color: white; font-weight: 700; font-size: 0.7rem; padding: 4px 10px; border-radius: 100px; }
.price-top { margin-bottom: 20px; }
.plan-name { font-family: var(--font-head); font-size: 0.9rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.price-val { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.price-desc { font-size: 0.9rem; color: var(--muted); margin: 0; }
.features { list-style: none; padding: 0; margin: 0 0 30px; flex-grow: 1; }
.features li { padding: 12px 0; color: #e5e5e5; border-top: 1px solid var(--border); font-size: 0.95rem; }
.btn-glass { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 12px; color: #fff; text-align: center; text-decoration: none; transition: 0.3s; font-weight: 600; margin-top: auto; }
.btn-glass:hover { background: #fff; color: #000; }
.btn-gradient { display: block; padding: 12px; border: none; border-radius: 12px; color: #fff; text-align: center; text-decoration: none; font-weight: 600; background: linear-gradient(90deg, #3B82F6, #2563EB); transition: 0.3s; margin-top: auto; }
.btn-gradient:hover { transform: scale(1.02); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }

/* --- FAQ & FORM --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 20px; cursor: pointer; transition: 0.3s; }
.faq-item:hover { background: rgba(255,255,255,0.08); }
.faq-item summary { font-family: var(--font-head); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
.faq-item p { margin-top: 15px; color: var(--muted); line-height: 1.6; }

.contact-section { padding: 80px 0 100px; }
.cyber-form-wrapper { width: 100%; max-width: 550px; margin: 0 auto; background: #080808; border: 1px solid var(--border); border-radius: 30px; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.cyber-form-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: 0.5s; }
.cyber-form-wrapper:hover::before { opacity: 1; }
.form-title h2 { margin-top: 0; font-size: 2rem; }
.form-title p { color: var(--muted); margin-bottom: 30px; }
.cyber-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.input-wrapper label { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; display: block; }
.input-wrapper input, .input-wrapper select {
    width: 100%; padding: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; color: #fff; font-size: 1rem; transition: 0.3s;
}
.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: var(--accent); background: rgba(59, 130, 246, 0.05); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); outline: none;
}
.btn-glow-submit {
    position: relative; padding: 16px; border: none; border-radius: 12px; color: #fff; font-weight: 700; cursor: pointer; overflow: hidden; background: transparent; font-size: 1rem;
}
.btn-glow-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, #3B82F6, #2563EB); z-index: -1; transition: 0.3s;
}
.btn-glow-submit:hover .btn-glow-bg { filter: brightness(1.2); }
.msg { padding: 12px; margin-bottom: 15px; border-radius: 8px; font-size: 0.9rem; }
.msg.success { color: #4ade80; background: rgba(74, 222, 128, 0.1); }

/* --- FOOTER --- */
footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; text-align: center; }
.footer-content { display: flex; justify-content: center; }
.f-copy { color: var(--muted); text-decoration: none; }

/* --- SCROLL BTN --- */
#scrollToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: rgba(255,255,255,0.1); border: 1px solid var(--border); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(10px); transition: 0.3s; opacity: 0; pointer-events: none; z-index: 10000; }
#scrollToTop.show { opacity: 1; pointer-events: auto; }
#scrollToTop:hover { background: #fff; color: #000; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-card { min-height: 320px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .cyber-form-wrapper { padding: 20px; }
}