/* PREMIUM ENTERPRISE THEME (2026) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --brand-primary: #3b82f6; /* Electric Blue */
    --brand-dark: #0f172a;    /* Deep Navy */
    --brand-darker: #020617;  /* Void */
    --brand-accent: #10b981;  /* Emerald */
    
    /* UI Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    
    /* Spacing & Layout */
    --max-width: 1280px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #2563eb; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
    color: var(--brand-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.25rem; margin-top: 3rem; }
h3 { font-size: 1.5rem; margin-top: 2rem; }
p { margin-bottom: 1.5rem; color: #334155; font-size: 1.125rem; }

.lead { font-size: 1.35rem; color: var(--text-muted); font-weight: 300; max-width: 70ch; }

/* --- LAYOUT --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HEADER / NAV --- */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.03em;
}
.logo span { color: var(--brand-primary); }

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--brand-primary);
}

/* Tools Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    flex-direction: column !important;
    gap: 0 !important;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}
.dropdown-menu li a:hover {
    background-color: #eff6ff;
}

/* CTA Button in Nav */
.cta-button {
    background-color: var(--brand-dark);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease;
}
.cta-button:hover {
    transform: translateY(-1px);
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
}

/* --- HERO SECTION --- */
.hero {
    background: radial-gradient(circle at top right, #1e293b, var(--brand-darker));
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Abstract background shape */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    color: white;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.5rem;
    color: #cbd5e1;
    max-width: 650px;
    margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* --- CARDS & GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }

.feature-card, .preview-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover, .preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: #bfdbfe;
}

.feature-card h3 { color: var(--brand-dark); font-size: 1.25rem; }
.feature-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 0; }

.preview-card h3 { color: var(--brand-primary); display: flex; align-items: center; gap: 0.5rem; }
.preview-card p { color: #475569; }

/* --- CONTENT AREA --- */
.article-content {
    padding: 4rem 0;
    max-width: 800px; /* Reading width */
    margin: 0 auto;
}

.article-content article h1 { margin-bottom: 2rem; }
.article-content hr { margin: 3rem 0; border: 0; border-top: 1px solid #e2e8f0; }

.callout-box {
    background: #f0f9ff;
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}
.callout-box h4 { color: var(--brand-primary); margin-bottom: 0.5rem; font-size: 1.1rem; }
.callout-box p { margin-bottom: 0; font-size: 1rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
th { background: var(--brand-dark); color: white; text-align: left; padding: 1rem; }
td { padding: 1rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* --- FOOTER --- */
.site-footer {
    background: var(--brand-darker);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- MOBILE --- */
.mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
    .main-nav { display: none; } /* JS will toggle this */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--brand-dark);
    }
    
    .hero h1 { font-size: 2.75rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    
    .container { padding: 0 1.25rem; }
    
    /* Mobile Nav State */
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-xl);
        border-bottom: 1px solid #e2e8f0;
    }
    .main-nav.active ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav.active ul li {
        border-bottom: 1px solid #f1f5f9;
    }
    .main-nav.active ul li:last-child {
        border-bottom: none;
    }
    .main-nav.active ul li a {
        display: block;
        padding: 0.75rem 0;
    }

    /* Mobile Dropdowns — hidden by default, toggle via .open */
    .dropdown .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border: none;
        padding: 0;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
        background: #f8fafc;
        border-radius: 0;
        margin: 0;
    }
    .dropdown:hover .dropdown-menu {
        /* Disable hover on mobile — only .open triggers it */
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }
    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 0.25rem 0 0.25rem 1rem;
    }
    .dropdown.open > a::after {
        content: ' ▴';
    }
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* CTA button full-width on mobile */
    .main-nav.active .cta-button {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }

    .site-footer .container { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-col:first-child { grid-column: 1 / -1; }
}
