/* VedaSEO Master Enterprise Agency Design System */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.95);
    --bg-card-hover: rgba(30, 41, 59, 0.95);
    --primary: #3b82f6;
    --secondary: #6366f1;
    --success: #10b981;
    --info: #06b6d4;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.12);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

/* Global Text Legibility Fixes for Dark Mode */
.text-muted, small.text-muted {
    color: #94a3b8 !important;
}
.bg-light, .bg-white {
    background-color: #111827 !important;
    color: #f8fafc !important;
}
.text-dark {
    color: #0b0f19 !important;
}

/* Form Inputs, Selects & Textareas Dark Mode */
.form-control, .form-select, textarea {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 10px 16px;
}
.form-control:focus, .form-select:focus, textarea:focus {
    background-color: #0f172a !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
}
.form-control::placeholder, textarea::placeholder {
    color: #64748b !important;
}
.form-label {
    color: #cbd5e1 !important;
    font-weight: 600;
}

/* Accordion Component Dark Mode */
.accordion-item {
    background-color: #111827 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 12px;
}
.accordion-button {
    background-color: #1e293b !important;
    color: #ffffff !important;
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    color: #38bdf8 !important;
    background-color: #0f172a !important;
    box-shadow: none !important;
}
.accordion-button::after {
    filter: invert(1);
}
.accordion-body {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}

/* List Groups & Tables */
.list-group-item {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

/* Gradient Text Utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15) 0%, rgba(11, 15, 25, 1) 70%);
    color: var(--text-main);
    padding: 90px 0 60px;
}

/* Responsive Glassmorphism Cards */
.card, .tool-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: var(--text-main);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Navbar Styling */
.premium-nav {
    background: rgba(11, 15, 25, 0.92) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.premium-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.premium-nav .nav-link:hover, .premium-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn-signup {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000 !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.nav-btn-signup:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Tool Tab Buttons & Tool Containers (Merged from tools.css) */
.tool-tabs .tool-tab {
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tool-tabs .tool-tab:hover, .tool-tabs .tool-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.analysis-result {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.seo-score {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

.score-excellent { color: #10b981; }
.score-good { color: #3b82f6; }
.score-poor { color: #ef4444; }

.keyword-list {
    max-height: 320px;
    overflow-y: auto;
}

.keyword-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.keyword-item:last-child { border-bottom: none; }

.volume-badge { font-size: 0.8rem; }

.rank-display { margin: 20px 0; }
.rank-number {
    font-size: 4rem;
    font-weight: 800;
    color: #3b82f6;
    display: block;
}

/* Premium Auth & Button Utilities */
.btn-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0f19 !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    transition: all 0.3s ease;
}
.btn-gradient-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    transition: all 0.3s ease;
}
.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.5);
}

/* Mobile Responsiveness Rules */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 50px 0 40px;
        text-align: center;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    .premium-nav .navbar-collapse {
        background: #0f172a;
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        margin-top: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }
}

/* ==========================================================================
   Hero Analytics Banner & Redesign (Matching Exact High-Tech Mockup)
   ========================================================================== */
.hero-analytics-banner {
    position: relative;
    background-color: #030712;
    background-image: 
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.90) 32%, rgba(3, 7, 18, 0.48) 55%, rgba(3, 7, 18, 0.05) 75%),
        url('../img/bg-analytics-dashboard.png');
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 55px;
    padding-bottom: 55px;
}

@media (max-width: 991.98px) {
    .hero-analytics-banner {
        background-image: 
            linear-gradient(180deg, rgba(3, 7, 18, 0.98) 0%, rgba(3, 7, 18, 0.92) 100%),
            url('../img/bg-analytics-dashboard.png');
        background-position: center center;
        min-height: auto;
        padding-top: 45px;
        padding-bottom: 45px;
    }
}

.hero-badge-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffc107;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    box-shadow: 0 0 16px rgba(255, 193, 7, 0.18);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.3rem, 3.8vw, 3.45rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.text-gradient-marketing {
    background: linear-gradient(90deg, #38bdf8 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 535px;
    font-weight: 400;
}

.hero-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    max-width: 580px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.hero-chip:hover {
    background: rgba(16, 185, 129, 0.20);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.btn-hero-primary {
    background: #ffc107 !important;
    color: #000000 !important;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50px;
    padding: 13px 28px;
    border: none;
    box-shadow: 0 4px 22px rgba(255, 193, 7, 0.42);
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    background: #ffb300 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 193, 7, 0.6);
}

.btn-hero-secondary {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    padding: 13px 26px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    transform: translateY(-2px);
}

.hero-perks-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    max-width: 600px;
}

.hero-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.perk-icon {
    font-size: 1.35rem;
}

.text-cyan {
    color: #06b6d4 !important;
}

.text-teal {
    color: #14b8a6 !important;
}

.perk-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.perk-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.2;
}

/* Social Proof Stats Bar */
.hero-stats-bar {
    background-color: #050a15;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    padding: 8px 16px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
}

.stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Nav Link Pill for Home */
.nav-pill-active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    color: #ffffff !important;
}

.nav-btn-signin {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn-signin:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}