/* === RESET & BASE (PREMIUM TECH STYLE) === */
:root {
    /* Light Theme (Vercel/Linear style) */
    --bg: #f4f5f7; /* Мягкий серый фон для контраста с карточками */
    --text-main: #111827; /* Более глубокий черный для читаемости */
    --text-muted: #4b5563; /* Более заметный серый текст */
    --border: #545454; /* Более выразительные границы (не сливаются) */
    --border-hover: #000000;
    --primary: #000000;
    --primary-text: #ffffff;
    --primary-hover: #333333;
    --card-bg: #ffffff; /* Белые карточки на сером фоне создают объем */
    --header-bg: rgba(244, 245, 247, 0.9);
    --grid-color: rgba(0, 0, 0, 0.07); /* Чуть более заметная сетка */
    --radius: 0px;
    --footer-bg: rgba(244, 245, 247, 0.9);
    --nav-height: 70px;
    
    --accent-1: #4f46e5;
    --accent-2: #9333ea;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --accent-glow: rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] {
    --bg: #0f1011;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: #333333;
    --border-hover: #ffffff;
    --primary: #ffffff;
    --primary-text: #000000;
    --primary-hover: #cccccc;
    --card-bg: #0f1011;
    --header-bg: #0f1011;
    --footer-bg: rgba(0, 0, 0, 0.67);
    --grid-color: rgba(255, 255, 255, 0.05);
    
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.2);
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* === TYPOGRAPHY === */
h1, h2, h3 { line-height: 1.1; font-weight: 600; letter-spacing: -0.04em; }
h1 { font-size: clamp(2rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 2rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 500; letter-spacing: -0.02em; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1rem; font-weight: 400; }

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.15em;
}

/* === LAYOUT & UTILS === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding-top: 8rem; padding-bottom: 8rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.mt-8 { margin-top: 2rem; }
.pt-0 { padding-top: 0 !important; }

/* === UTILITIES === */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-24 { padding-top: 6rem; }
.pb-32 { padding-bottom: 8rem; }
.p-10 { padding: 2.5rem; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.border-none { border: none; }
.border-top { border-top: 1px solid var(--border); }
.max-w-300 { max-width: 300px; }
.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex-col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.inline-block { display: inline-block; }
.p-8-4 { padding: 4rem 2rem; }
.p-12 { padding: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.support-icon { width: 48px; height: 48px; }
.api-row { padding: 1rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.single-col-grid { grid-template-columns: 1fr; gap: 2rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.5rem; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; font-weight: 500; font-size: 0.95rem; 
    letter-spacing: -0.01em; transition: all 0.2s ease;
    border-radius: var(--radius);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { font-size: 1rem; padding: 1rem 2.5rem; }
.btn-primary {
    background: var(--accent-gradient); color: #ffffff !important;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}
.btn-primary:hover { 
    opacity: 0.9;
    box-shadow: 0 6px 20px 0 var(--accent-glow);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: transparent; color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-secondary:hover { 
    border-color: var(--border-hover); 
    background-color: var(--card-bg);
}

/* === HEADER === */
header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
    background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); z-index: 100;
    display: flex; align-items: center;
}
.nav-brand { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.03em; }
.nav-brand svg { width: 20px; height: 20px; stroke: var(--text-main); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.theme-toggle { padding: 0.5rem; color: var(--text-muted); border-radius: 0; display: flex; border: 1px solid transparent; transition: all 0.2s; }
.theme-toggle:hover { color: var(--text-main); border-color: var(--border); }

.mobile-menu-btn { display: none; padding: 0.5rem; border: 1px solid transparent; }
.mobile-menu-btn:hover { border-color: var(--border); }

/* === HERO SECTION === */
.hero { 
    padding: 12rem 0 8rem; 
    position: relative; 
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero p { font-size: 1.15rem; margin-bottom: 2.5rem; color: var(--text-muted); }
.hero-btns { display: flex; gap: 1rem; }

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}
.hero-badge:hover {
    color: var(--text-main);
    border-color: var(--accent-1);
    background: var(--card-bg);
}
.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent-1);
}

/* Bot Demo Block */
.bot-demo {
    width: 340px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
[data-theme="dark"] .bot-demo {
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 340px;
}
.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    animation: msg .4s forwards;
    color: var(--text-main);
}
.message.bot {
    background: rgba(128, 128, 128, 0.1);
    align-self: flex-start;
}
.message.user {
    background: var(--accent-1);
    color: #ffffff;
    align-self: flex-end;
}
@keyframes msg {
    to { opacity: 1; transform: none; }
}
.keyboard {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.key {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}
.key.active {
    background: var(--accent-1);
    color: #ffffff;
}

/* === CARDS GRID === */
.features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.features-grid.grid-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
    background: var(--card-bg); 
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.card-sm {
    padding: 1.5rem;
}
.card-sm h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.card-sm p {
    font-size: 0.9rem;
    margin-bottom: 0;
}
.card-sm .card-icon {
    margin-bottom: 1rem;
}
.card:hover { 
    border-color: var(--accent-1); 
    background-color: var(--card-bg);
    box-shadow: 0 0 20px var(--accent-glow);
}
.card-icon {
    width: 40px; height: 40px; 
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main); 
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
}
.card:hover .card-icon {
    border-color: var(--accent-1);
    color: var(--accent-1);
}
.card-icon svg { width: 20px; height: 20px; stroke-width: 1.5px; }

/* === HOW IT WORKS (STEPS) === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--border); }
.step { 
    text-align: left; position: relative; padding: 2.5rem;
    border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden;
    background-color: var(--card-bg);
}
.step:last-child { border-right: none; }
.step h3, .step p {
    position: relative;
    z-index: 2;
}
.step-num {
    position: absolute;
    bottom: -1.5rem;
    right: -0.5rem;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-2);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    margin: 0;
}

/* === SECURITY CARDS === */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px dashed var(--border);
}
.security-card {
    position: relative;
    padding: 1.5rem 1.5rem;
    border-right: 1px dashed var(--border);
    overflow: hidden;
    background-color: var(--card-bg);
    transition: background-color 0.2s;
}
.security-card:last-child {
    border-right: none;
}
.security-card:hover {
    background-color: rgba(128, 128, 128, 0.02);
}
.security-card h3 {
    position: relative;
    z-index: 2;
    margin-top: 2.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}
.security-card p {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 0;
}
.security-icon {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    color: var(--text-main);
    opacity: 0.8;
}
.security-card-bg {
    position: absolute;
    top: 0;
    right: -70%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    z-index: 1;
}

.security-card-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--grid-color); /* Fills the radial area with a subtle tint */
    background-image: 
        /* Random filled squares to match the React effect */
        linear-gradient(rgba(128, 128, 128, 0.15), rgba(128, 128, 128, 0.15)),
        linear-gradient(rgba(128, 128, 128, 0.15), rgba(128, 128, 128, 0.15)),
        linear-gradient(rgba(128, 128, 128, 0.15), rgba(128, 128, 128, 0.15)),
        /* The grid lines */
        linear-gradient(rgba(128, 128, 128, 0.15) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(128, 128, 128, 0.15) 1px, transparent 1px);
    background-size: 
        19px 19px, 19px 19px, 19px 19px,
        20px 20px, 20px 20px;
    background-position: 
        89px 45px, 129px 85px, 169px 65px,
        -12px 4px, -12px 4px;
    background-repeat: 
        no-repeat, no-repeat, no-repeat,
        repeat, repeat;
    -webkit-mask-image: radial-gradient(farthest-side at 50% 0%, black 20%, transparent 100%);
    mask-image: radial-gradient(farthest-side at 50% 0%, black 20%, transparent 100%);
}

@media (max-width: 1024px) {
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .security-card:nth-child(2n) {
        border-right: none;
    }
    .security-card:nth-child(n+3) {
        border-top: 1px dashed var(--border);
    }
}
@media (max-width: 640px) {
    .security-grid {
        grid-template-columns: 1fr;
    }
    .security-card {
        border-right: none;
    }
    .security-card:nth-child(n+2) {
        border-top: 1px dashed var(--border);
    }
}

/* === FAQ ACCORDION === */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-bottom: none; }
.faq-item { border-bottom: 1px solid var(--border); background: var(--card-bg); overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; padding: 1.5rem; font-weight: 500; font-size: 1.05rem;
    display: flex; justify-content: space-between; align-items: center; color: var(--text-main);
    letter-spacing: -0.01em;
}
.faq-question:hover { background: rgba(128, 128, 128, 0.05); }
.faq-question svg { transition: transform 0.2s ease; width: 20px; height: 20px; stroke-width: 1.5px; }
.faq-item.active .faq-question { color: var(--accent-1); }
.faq-item.active .faq-question svg { transform: rotate(180deg); stroke: var(--accent-1); }
.faq-answer {
    max-height: 0; padding: 0 1.5rem; opacity: 0; transition: all 0.2s ease;
    color: var(--text-muted);
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.5rem 1.5rem; opacity: 1; }
.faq-answer p { padding-top: 0.5rem; }

/* === PRICING TABLE === */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem 2rem; background: var(--card-bg); transition: border-color 0.2s, box-shadow 0.2s; }
.price-card:hover { border-color: var(--accent-1); box-shadow: 0 0 20px var(--accent-glow); }
.price-card.popular { border-color: var(--accent-1); position: relative; background: var(--card-bg); box-shadow: 0 0 30px var(--accent-glow); }
.price-badge { position: absolute; top: -1px; left: -1px; background: var(--accent-gradient); color: #ffffff; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 0; }
.price { font-size: 3rem; font-weight: 600; color: var(--text-main); margin: 1rem 0 2rem; letter-spacing: -0.05em; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.price-card p.text-muted { margin-top: 0.5rem; }
.price-list { list-style: none; text-align: left; }
.price-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); }
.price-list li:last-child { border-bottom: none; }
.price-list svg { color: var(--text-main); width: 16px; height: 16px; stroke-width: 2px; }

/* === API BLOCK === */
.api-preview { background: #000; border-radius: var(--radius); padding: 1.5rem; overflow-x: auto; color: #ededed; font-family: "JetBrains Mono", monospace; font-size: 0.9rem; line-height: 1.6; border: 1px solid #333; }
.api-preview .keyword { color: #888; }
.api-preview .string { color: #fff; }
.api-section-card { max-width: 800px; margin: 0 auto; padding: 3rem; }
.api-section-title { margin: 0; font-size: 1.5rem; }

/* === FOOTER === */
footer { border-top: 1px solid var(--border); padding: 5rem 0 2rem; background: var(--footer-bg); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--text-main); font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-main); }
.brand-col { grid-column: span 2; }
.brand-col .nav-brand { margin-bottom: 1.5rem; }
.brand-col p { font-size: 0.9rem; max-width: 300px; }
.footer-bottom { text-align: left; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; display: flex; justify-content: space-between; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section { padding-top: 5rem; padding-bottom: 3rem; }
    .section h1 { margin-top: 1rem; }
    .hero { padding-top: 7rem; padding-bottom: 3rem; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero p { margin: 0 auto 2rem; font-size: 1rem; }
    .hero h1 { margin-bottom: 1rem; margin-top: 2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-badges { justify-content: center; }
    .bot-demo { margin: 0 auto; width: 100%; max-width: 340px; }

    .nav-links {
        position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg);
        flex-direction: column; padding: 2rem; border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav-links.show { display: flex; }
    .mobile-menu-btn { display: block; color: var(--text-main); }
    .hero-btns .btn { width: 100%; }
    .steps { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: 1px solid var(--border); }
    .step:last-child { border-bottom: none; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    .pt-24 { padding-top: 3rem; }
    .pb-32 { padding-bottom: 4rem; }
    .mt-16 { margin-top: 2rem; }
    .mb-12 { margin-bottom: 1.5rem; }
    .mb-16 { margin-bottom: 2rem; }
    .mb-6 { margin-bottom: 1rem; }
    .mt-6 { margin-top: 1rem; }
    
    .section p.text-center.mb-16 { margin-bottom: 3rem; }
    
    .p-12 { padding: 1.5rem; }
    .py-16 { padding-top: 2rem; padding-bottom: 2rem; }

    .section > .flex.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* === FINAL CTA === */
.cta-section {
    position: relative;
    overflow: hidden;
    margin: 4rem 0 8rem;
}

.cta-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem 6rem;
    text-align: center;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-container {
        padding: 6rem 2rem;
        gap: 2rem;
    }
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
}

.cta-container h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0;
    border: none;
    color: var(--text-main);
}

.cta-container p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
    max-width: 600px;
}

.cta-glow {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 -16px 128px 0 rgba(99, 102, 241, 0.58) inset, 0 -16px 32px 0 rgba(99, 102, 241, 0.58) inset;
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 1) 8rem);
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 1) 8rem);
}

/* CTA Animations */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up { opacity: 0; }
.animate-scale-in { opacity: 0; }

.is-visible .animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}
.is-visible .animate-scale-in {
    animation: scale-in 0.5s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

/* === ANIMATED GRID BACKGROUND === */
#animated-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

#grid-pattern path {
    stroke: var(--grid-color);
}

.grid-squares {
    overflow: visible;
}

.grid-square {
    opacity: 0;
    transition: opacity 3000ms ease-in-out;
}

.grid-square.active {
    opacity: 0.08;
}