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

:root {
    --bg-main: #020617; /* Night Navy */
    --bg-card: #111827; /* Graphite */
    --bg-card-hover: #1f2937;
    --text-main: #E5E7EB; /* Light Shell */
    --text-secondary: #9CA3AF;
    --text-heading: #ffffff;
    --accent-decor: #7C3AED; /* Neural Violet - Section Headers, Decor */
    --accent-cta: #22F3FF;   /* Cyber Cyan - Buttons, Chat, Links */
    --accent-cta-hover: #06B6D4;
    --bg-overlay: rgba(2, 6, 23, 0.9);
}

body { margin: 0; background-color: var(--bg-main); font-family: 'JetBrains Mono', 'Courier New', monospace; color: var(--text-main); overflow-x: hidden; }
canvas { display: block; position: fixed; top: 0; left: 0; z-index: -1; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--accent-decor); border-radius: 3px; }

/* --- АНИМАЦИИ --- */
/* Toned down neon for cleaner B2B look */
@keyframes neon-text-decor {
    0%, 100% { text-shadow: 0 0 5px rgba(124, 58, 237, 0.5); opacity: 0.9; }
    50% { text-shadow: 0 0 15px var(--accent-decor); opacity: 1; }
}
@keyframes neon-text-cta {
    0%, 100% { text-shadow: 0 0 5px rgba(34, 243, 255, 0.5); opacity: 0.9; }
    50% { text-shadow: 0 0 15px var(--accent-cta); opacity: 1; }
}
@keyframes neon-box {
    0%, 100% { box-shadow: 0 0 5px rgba(124, 58, 237, 0.2); border-color: rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 15px rgba(124, 58, 237, 0.4); border-color: var(--accent-decor); }
}
@keyframes neon-box-cta {
    0%, 100% { box-shadow: 0 0 5px rgba(34, 243, 255, 0.2); border-color: rgba(34, 243, 255, 0.4); }
    50% { box-shadow: 0 0 15px rgba(34, 243, 255, 0.4); border-color: var(--accent-cta); }
}

#ui-layer { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* НАВИГАЦИЯ */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(124, 58, 237, 0.3); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; background: rgba(2, 6, 23, 0.8); }
.logo { font-size: 24px; font-weight: bold; color: var(--accent-decor); letter-spacing: 2px; animation: neon-text-decor 3s infinite; cursor: pointer; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; text-transform: uppercase; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-decor); text-shadow: 0 0 10px var(--accent-decor); }
.hamburger { display: none; font-size: 30px; color: var(--accent-decor); cursor: pointer; z-index: 101; }

/* ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 30px;
    border: 1px solid var(--accent-decor);
    padding: 5px 10px;
    border-radius: 5px;
}
.lang-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}
.lang-link.active {
    color: var(--accent-decor);
    text-shadow: 0 0 5px var(--accent-decor);
}
.lang-link:hover {
    color: var(--text-heading);
}

.mob-lang-switch {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding: 10px 16px;
    border: 1px solid var(--accent-decor);
    border-radius: 8px;
    align-items: center;
}
.mob-lang-sep {
    color: var(--text-secondary);
}
.mob-lang-switch .lang-link {
    font-size: 18px;
}

/* МОБИЛЬНОЕ МЕНЮ */
.mob-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-overlay); z-index: 2001; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateX(100%); transition: 0.4s; }
.mob-menu.active { transform: translateX(0); }
.mob-menu a { font-size: 24px; margin: 20px; color: var(--text-heading); text-decoration: none; }
.mob-menu a:hover { color: var(--accent-decor); }

/* СЕКЦИИ */
section { scroll-margin-top: 100px; margin: 80px 0; padding: 40px; background: rgba(17, 24, 39, 0.7); border: 1px solid rgba(124, 58, 237, 0.3); backdrop-filter: blur(5px); border-radius: 8px; }

#hero { 
    min-height: 60vh; display: flex; flex-direction: column; justify-content: flex-start; 
    padding-top: 0; margin-top: 0; /* Pull content up */
    background: none; border: none; backdrop-filter: none; pointer-events: none; 
}
#hero * { pointer-events: auto; }

h1 { font-size: 4rem; line-height: 1; margin: 0 0 20px; color: var(--text-heading); text-shadow: 0 0 10px rgba(255,255,255,0.1); }
h2 { color: var(--accent-decor); border-bottom: 2px solid var(--accent-decor); display: inline-block; margin-bottom: 30px; font-size: 2rem; text-transform: uppercase; animation: neon-text-decor 3s infinite; }
h3 { 
    color: #67E8F9; /* Light Cyan for subheaders */
    margin-bottom: 10px; 
    display: flex;
    align-items: center;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(103, 232, 249, 0.3); /* Subtle glow */
}
p { font-size: 1.1rem; line-height: 1.6; color: var(--text-main); margin-bottom: 15px; }
.hl { color: var(--accent-decor); font-weight: bold; }

/* КНОПКИ (CTA) */
.btn { display: inline-block; padding: 15px 40px; border: 2px solid var(--accent-cta); color: #0B1220; font-weight: bold; text-decoration: none; text-transform: uppercase; transition: 0.3s; background: var(--accent-cta); cursor: pointer; box-shadow: 0 0 15px rgba(34, 243, 255, 0.3); }
.btn:hover { background: var(--accent-cta-hover); border-color: var(--accent-cta-hover); color: #000; box-shadow: 0 0 25px var(--accent-cta); transform: translateY(-2px); }

/* КАРТОЧКИ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: var(--bg-card); border: 1px solid rgba(124, 58, 237, 0.2); padding: 25px; transition: 0.3s; }
.card:hover { transform: translateY(-5px); border-color: var(--accent-decor); box-shadow: 0 0 20px rgba(124, 58, 237, 0.2); background: var(--bg-card-hover); }

/* ФУТЕР */
footer { margin-top: 100px; padding: 50px 20px; background: linear-gradient(to top, var(--bg-main), #0b1220); border-top: 1px solid var(--accent-decor); position: relative; z-index: 20; text-align: left; }
.footer-content { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-left { flex: 1 1 320px; }
.footer-center { flex: 0 0 auto; text-align: center; align-self: flex-end; }
.footer-right { flex: 1 1 320px; }
.contact-links { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.contact-link { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--accent-cta); 
    text-decoration: none; 
    font-size: 1.1rem; 
    padding: 12px 20px;
    border: 1px solid rgba(34, 243, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s;
    background: rgba(34, 243, 255, 0.05);
    min-width: 280px;
    max-width: 420px;
    justify-content: flex-start;
}
.contact-link:hover { 
    color: #000; 
    border-color: var(--accent-cta);
    box-shadow: 0 0 20px rgba(34, 243, 255, 0.4);
    background: var(--accent-cta);
    transform: translateY(-2px);
}
.footer-copy {
    margin-top: 0;
    color: var(--text-secondary);
    flex: 0 0 auto;
    text-align: center;
    align-self: center;
    min-width: 220px;
}
.contact-icon { 
    width: 24px; 
    height: 24px; 
    flex-shrink: 0;
    fill: var(--accent-cta);
}
.contact-link:hover .contact-icon {
    fill: #000;
}

/* КНОПКА НАВЕРХ */
#scrollTop { 
    position: fixed; bottom: 190px; right: 30px; width: 50px; height: 50px; 
    background: rgba(2, 6, 23, 0.8); border: 2px solid var(--accent-decor); color: var(--accent-decor); font-size: 24px; 
    display: none; justify-content: center; align-items: center; cursor: pointer; 
    z-index: 1003; transition: 0.3s; border-radius: 50%; 
}
#scrollTop:hover { background: var(--accent-decor); color: #fff; box-shadow: 0 0 20px var(--accent-decor); }

/* AI CHAT FAB - ICON ONLY */
.fab-chat {
    position: fixed; bottom: 60px; right: 30px; 
    width: 50px; height: 50px; /* Fixed circle size */
    background: rgba(2, 6, 23, 0.9); 
    border: 2px solid var(--accent-cta); 
    color: var(--accent-cta); 
    cursor: pointer; 
    z-index: 1002; 
    box-shadow: 0 0 15px rgba(34, 243, 255, 0.3); 
    border-radius: 50%; /* Circle */
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s; 
    animation: neon-box-cta 4s infinite;
    overflow: hidden; /* Hide text overflow */
}
.fab-chat:hover {
    background: var(--accent-cta); color: #000; 
    box-shadow: 0 0 30px var(--accent-cta); 
    transform: scale(1.1);
}
.fab-chat span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.fab-chat svg {
    width: 32px; /* Adjust icon size inside circle */
    height: 32px;
}
/* Hide the text content directly in CSS by checking font-size or using a utility class if html changes, 
   but since HTML has text node, we can use font-size: 0 on the container. */
.fab-chat {
    font-size: 0; 
}

/* CHAT MODAL */
.chat-modal {
    position: fixed; bottom: 90px; right: 20px;
    width: 350px; height: 500px;
    background: var(--bg-main);
    border: 2px solid var(--accent-cta);
    border-radius: 10px;
    display: none; 
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 0 40px rgba(34, 243, 255, 0.2);
    backdrop-filter: blur(10px);
}
.chat-modal.open { display: flex; }

.chat-header {
    padding: 15px;
    background: rgba(34, 243, 255, 0.1);
    border-bottom: 1px solid var(--accent-cta);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--accent-cta); font-weight: bold; letter-spacing: 1px;
}
.chat-header > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-chat { cursor: pointer; font-size: 20px; transition: 0.3s; }
.close-chat:hover { color: #fff; text-shadow: 0 0 10px #fff; }

.chat-history {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    background: var(--bg-main);
}
.chat-history::-webkit-scrollbar { width: 4px; }
.chat-history::-webkit-scrollbar-thumb { background: var(--accent-cta); }

.chat-input-box {
    padding: 15px;
    border-top: 1px dashed var(--accent-cta);
    display: flex; align-items: center;
    background: var(--bg-main);
}
#chatInput {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    outline: none;
    margin-left: 10px;
}

/* CTA STRIP UPDATE */
.cta-strip a.btn { cursor: pointer; }

/* ЗАГРУЗЧИК */
#loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-main); z-index: 9999; display: flex; justify-content: center; align-items: center; border: 4px solid var(--accent-decor); transition: opacity 0.5s; }
.load-txt { font-size: 2rem; color: var(--accent-decor); letter-spacing: 5px; animation: neon-text-decor 0.5s infinite; text-transform: uppercase; text-align: center; padding: 0 20px; }

/* WORK PROCESS STYLES */
.work-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: var(--bg-card);
    border: 2px solid rgba(124, 58, 237, 0.3);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.6s ease;
}

.process-step:hover::before {
    left: 100%;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--accent-decor);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
    background: var(--bg-card-hover);
}

.step-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.cyberpunk-icon {
    width: 64px;
    height: 64px;
    /* Default filter for icons - mostly violet/cyan mix, but toned down */
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6)); 
    transition: all 0.3s ease;
}

.process-step:hover .cyberpunk-icon,
.card:hover .cyberpunk-icon {
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.8)) drop-shadow(0 0 25px rgba(34, 243, 255, 0.4));
    transform: scale(1.1);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-decor);
    background: rgba(124, 58, 237, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.process-step h3 {
    color: #67E8F9; /* Updated to Light Cyan */
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    animation: none; /* Removed neon animation from H3 per request */
    text-shadow: 0 0 5px rgba(103, 232, 249, 0.3);
}

.step-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-main);
}

.step-content p strong {
    color: var(--accent-decor); /* Highlight key terms with Violet */
    font-weight: bold;
    text-shadow: none;
}

/* INLINE CYBERPUNK ICONS */
.cyberpunk-icon.inline-icon {
    width: 64px;
    height: 64px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
}

/* --- CONTACT FORM SECTION --- */
#contact {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-main) 100%);
    border: 1px solid var(--accent-decor);
    position: relative;
    overflow: hidden;
}

#contact h2 {
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--text-main);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.form-group {
    position: relative;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(124, 58, 237, 0.5); /* Violet dim */
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box; /* Fix padding/width issues */
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-input:focus {
    border-bottom-color: var(--accent-cta);
    box-shadow: 0 10px 20px -10px rgba(34, 243, 255, 0.2);
}

.form-input:focus::placeholder {
    color: var(--accent-cta);
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 2px;
}

/* --- PRIVACY CHECKBOX --- */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
}

.privacy-text a {
    color: var(--accent-cta);
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 243, 255, 0.3);
}

.privacy-text a:hover {
    border-color: var(--accent-cta);
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid var(--accent-decor);
    border-radius: 4px;
    transition: 0.3s;
}

.custom-checkbox:hover input ~ .checkmark {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--accent-cta);
    border-color: var(--accent-cta);
    box-shadow: 0 0 15px var(--accent-cta);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-disclaimer {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CENTERED BUTTON WRAPPER */
.centered-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Success Message Style */
.form-success {
    display: none;
    color: var(--accent-cta);
    font-size: 1.2rem;
    margin-top: 20px;
    animation: neon-text-cta 2s infinite;
}

/* --- SCROLL REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FAQ SECTION --- */
#faq {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(17, 24, 39, 0.6);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

.faq-question:hover {
    background: rgba(124, 58, 237, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: normal;
    text-shadow: none; /* Reset neon for cleaner text */
}

.faq-question.open h3 {
    color: var(--accent-cta);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-decor);
    transition: 0.3s;
}

.faq-question.open .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-cta);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

@media(max-width: 768px) {
    .work-process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .process-step {
        padding: 20px;
    }
    .step-icon {
        font-size: 2.5rem;
    }
    .process-step h3 {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
    .card h3 {
        font-size: 1.3rem;
    }
    p {
        font-size: 16px; /* Better readability on mobile */
    }
    .step-number {
        font-size: 1rem;
        padding: 6px 10px;
    }
    .contact-links {
        gap: 12px;
    }
    .contact-link {
        font-size: 0.95rem;
        padding: 10px 15px;
        min-width: 240px;
    }
    .contact-icon {
        width: 20px;
        height: 20px;
    }
    h1{font-size:2.5rem}
    h2 { font-size: 1.8rem; margin-bottom: 25px; } /* Adjust section headers */
    .nav-links{display:none}
    .hamburger{display:block}
    section{padding:20px}
    #hero { padding-top: 20px; min-height: auto; }
    #scrollTop { bottom: 180px; right: 20px; }
    .mob-lang-switch { margin-top: 30px; }
    .fab-chat { bottom: 50px; right: 20px; padding: 8px 14px; }
    .footer-content { flex-direction: column; align-items: flex-start; }
    .footer-copy { text-align: left; margin-left: 0; }
}
