:root {
    --bg: #000000;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #B46BFF;
    --accent-dim: rgba(180, 107, 255, 0.12);
    --accent-border: rgba(180, 107, 255, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
}

.automation-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.automation-page a.nav-main-site {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 1rem;
}

.automation-page a.nav-main-site:hover {
    color: var(--text);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 56px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-cta {
    font-size: 0.78rem !important;
    font-weight: 600;
    color: var(--bg) !important;
    background: linear-gradient(135deg, #B46BFF, #4B0082);
    padding: 6px 16px;
    border-radius: 100px;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.nav-overlay-links li a {
    display: block;
    padding: 16px 48px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
}

.nav-overlay-links li a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.nav-overlay-links li a.nav-overlay-cta {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #B46BFF, #4B0082);
    border-radius: 100px;
    padding: 12px 32px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    padding: 64px 48px 32px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.6);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-col .footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand-col .footer-logo span {
    color: var(--accent);
}

.footer-brand-col p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-copy {
    font-size: 0.75rem;
    color: #444;
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: #444;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .site-footer {
        padding: 48px 24px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
