:root {
    /* Colors */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #111827;
    --secondary-hover: #1F2937;

    --bg-white: #ffffff;
    --bg-alt: #F9FAFB;
    --bg-surface: #ffffff;

    --text-main: #111827;
    --text-muted: #4B5563;
    /* Darkened from #6B7280 for better contrast */
    --text-light: #6B7280;
    /* Darkened from #9CA3AF for better contrast */

    --border: #E5E7EB;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 12px;
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Accessibility Focus States */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-alt);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-light {
    background-color: white;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.04);
}

.nav-link.active {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.08);
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-btn.open span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Nav Styles */
.nav.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    /* Header height */
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease-out forwards;
}

.nav.mobile-active .nav-link {
    font-size: 1.1rem;
    padding: 12px;
    border-bottom: 1px solid var(--bg-alt);
    width: 100%;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.hero-trust p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.logos {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-weight: 600;
    opacity: 0.6;
}

/* Mockup */
.dashboard-mockup {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: var(--bg-alt);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.mockup-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    margin-right: 6px;
}

.mockup-search {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 60px;
    border-right: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    width: 100%;
    height: 24px;
    background: var(--bg-alt);
    border-radius: 4px;
}

.sidebar-item.active {
    background: var(--primary);
    opacity: 0.1;
}

.mockup-content {
    flex: 1;
    padding: 24px;
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr 0.8fr;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr 0.8fr;
    font-size: 0.8rem;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-alt);
}

.email-blur {
    filter: blur(3px);
    opacity: 0.5;
    user-select: none;
}

.status-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #DCFCE7;
    color: #166534;
}

.warning {
    background: #FEF3C7;
    color: #92400E;
}

.skeleton-row {
    height: 24px;
    background: var(--bg-alt);
    margin: 8px 0;
    border-radius: 4px;
    width: 100%;
}

/* Values */
.values {
    padding: 80px 0;
    background: white;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 16px;
    background: var(--bg-alt);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Scraper Sections */
.scraper-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.alt-bg {
    background: var(--bg-alt);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-layout.reverse .content-side {
    order: 2;
}

.feature-list {
    list-style: none;
    margin: 24px 0 32px 0;
}

.feature-list li {
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    gap: 8px;
}

/* Interactive Scraper Card */
.scraper-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    /* overflow: hidden; Removed to allow dropdowns to spill over */
    position: relative;
    z-index: 5;
}

.card-header {
    background: var(--bg-alt);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
}

.card-body {
    padding: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input,
.input-row input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.input-row {
    display: flex;
    gap: 12px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filters select {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* Demo Results */
.demo-results {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    background: var(--bg-alt);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-table .r-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #E5E7EB;
}

.results-table .header {
    font-weight: 600;
    color: var(--text-muted);
}

.blur {
    filter: blur(4px);
    user-select: none;
    opacity: 0.6;
}

.btn-success {
    background-color: #16A34A;
    color: white;
    margin-top: 12px;
}

/* Comparison */
.comparison {
    padding: 100px 0;
}

.section-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.c-col {
    padding: 32px;
}

.c-col.highlight {
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    position: relative;
}

.c-col.highlight::before {
    content: "Recommended";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 0 0 8px 8px;
}

.c-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.c-row {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.c-row:last-child {
    border: none;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.t-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.t-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* CTA & Footer */
.cta-section {
    padding: 100px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-box h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-caption {
    font-size: 0.875rem;
    margin-top: 16px;
    opacity: 0.8;
}

.footer {
    padding: 80px 0 24px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-desc {
    max-width: 320px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 8px;
}

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}


/* Page Hero */
.hero-page {
    padding: 80px 0 40px 0;
    position: relative;
    /* overflow: hidden; Removed to fix dropdown clipping */
    background: radial-gradient(circle at 50% -20%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

.hero-page h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero-page .hero-sub {
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* Demo Wrapper */
.demo-wrapper {
    max-width: 800px;
    margin: 48px auto 0 auto;
    position: relative;
    z-index: 2;
}

/* Feature Grid (Sub-pages) */
.features-grid-section {
    padding: 40px 0 80px 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.f-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.f-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.f-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.f-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 48px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

/* Small CTA Page */
.cta-section-small {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
}

.cta-section-small h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 32px;
    font-weight: 800;
}

.cta-section-small .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 16px 32px;
    font-size: 1.125rem;
    box-shadow: var(--shadow-lg);
}

.cta-section-small .btn:hover {
    background: var(--bg-surface);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.4rem !important;
        line-height: 1.2;
    }

    .hero-page h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .hero {
        padding: 48px 0;
    }

    .header-container {
        padding: 0 16px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }

    .logos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Mockup horizontal scrolling */
    .hero-visual {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-mockup {
        transform: none !important;
        min-width: 600px;
        margin: 0 auto;
    }

    /* Demo forms */
    .input-row {
        flex-direction: column;
        gap: 16px;
    }

    .input-row input {
        margin-bottom: 0;
    }

    .scraper-card {
        margin: 0 -16px;
        /* Break out of padding */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-layout.reverse .content-side {
        order: 1;
    }

    /* Swipeable Comparison Table */
    .comparison-table {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        border: none;
        border-radius: 0;
        margin: 0 -24px;
        padding: 0 24px 24px 24px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .c-col {
        flex: 0 0 260px;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius);
        margin-right: 16px;
        padding: 24px;
        scroll-snap-align: center;
    }

    .c-col:last-child {
        margin-right: 0;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .t-card {
        padding: 24px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .nav,
    .header-actions {
        display: none;
        /* Mobile menu hidden for now */
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 64px 0;
}

.p-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.p-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.p-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0;
}

.p-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.p-features {
    list-style: none;
    margin: 32px 0;
    text-align: left;
}

.p-features li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.p-features li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 800;
}

/* Autofill Dropdown */
.autofill-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    /* Increased z-index */
    max-height: 300px;
    /* Increased max-height */
    overflow-y: auto;
    margin-top: 4px;
}

.autofill-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-alt);
}

.autofill-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.autofill-item:last-child {
    border-bottom: none;
}

/* Form Utilities (Mini-Bootstrap) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 12px;
    padding-left: 12px;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.text-muted {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
}

.text-end {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    display: inline-block;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
    position: relative;
    font-size: 0.95rem;
}

.form-check-input {
    position: absolute;
    margin-top: 0.25rem;
    margin-left: -1.5rem;
    width: 1em;
    height: 1em;
    border: 1px solid var(--border);
    border-radius: 0.25em;
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-alt);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

/* Mobile Responsiveness for Grid */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- Professional SEO Blog Styles --- */

/* Hero Sections */
.professional-hero {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8rem 0 6rem;
}

.hero-inner {
    max-width: 800px;
}

/* Category Filters */
.blog-filters {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    background: white;
    z-index: 90;
}

.filter-bar {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-bar::-webkit-scrollbar {
    height: 4px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.filter-btn:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    margin-bottom: 80px;
    align-items: center;
}

.featured-img-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.category-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 16px;
}

.featured-post-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.featured-post-content h2 a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.2s;
}

.featured-post-content h2 a:hover {
    color: var(--primary);
}

.featured-post-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Grid Layout */
.blog-professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 64px 40px;
}

.prof-blog-card {
    display: flex;
    flex-direction: column;
}

.card-img-link {
    display: block;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 12px;
}

.card-img-link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prof-blog-card:hover .card-img-link img {
    transform: scale(1.05);
}

.prof-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.prof-card-body h3 a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.2s;
}

.prof-card-body h3 a:hover {
    color: var(--primary);
}

.prof-card-body p {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Post Meta */
.post-meta-footer {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.dot {
    font-size: 1.25rem;
    line-height: 1;
}

/* Single Post Layout */
.professional-post {
    background: #fff;
    padding-bottom: 8rem;
}

.post-hero-section {
    border-bottom: 1px solid var(--border);
    padding-top: 32px;
    margin-bottom: 64px;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 48px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

.post-hero-inner {
    max-width: 800px;
    margin-bottom: 64px;
}

.category-pill {
    display: inline-block;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.post-hero-inner h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.post-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-left: 3px solid var(--border);
    padding-left: 24px;
}

/* Author Meta */
.author-meta {
    display: flex;
    align-items: center;
    margin-top: 48px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 16px;
    font-size: 1.1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    margin-right: 32px;
}

.author-info .name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary);
}

.author-info .role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-featured-img {
    position: relative;
    z-index: 10;
    margin-bottom: -100px;
}

.post-featured-img img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

/* Post Content Layout */
.post-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    padding-top: 140px;
    align-items: start;
}

.post-sidebar {
    position: sticky;
    top: 120px;
}

.sticky-toc-wrapper h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.toc-nav a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.toc-nav a:hover {
    color: var(--primary);
}

.toc-nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    background: rgba(79, 70, 229, 0.02);
}

.post-main-content {
    max-width: 760px;
}

/* Content Typography */
.content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1f2937;
}

.content-body h2 {
    font-size: 2.25rem;
    margin: 4rem 0 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--secondary);
}

.content-body h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* SaaS CTA Banner */
.post-cta-banner {
    background: linear-gradient(135deg, #F8F9FF 0%, #F0F4FF 100%);
    border: 1px solid #E0E7FF;
    border-radius: 20px;
    padding: 64px 48px;
    margin: 80px 0;
    text-align: center;
}

.post-cta-banner h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.post-cta-banner p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.post-faq-section {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    padding-top: 64px;
}

.post-faq-section h2 {
    margin-bottom: 40px;
}

.faq-accordion .faq-card {
    margin-bottom: 40px;
}

.faq-accordion h3 {
    font-size: 1.375rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.faq-accordion p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Compliance Box */
.compliance-box {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #92400E;
    margin: 64px 0;
}

/* Author Bio Footer */
.author-bio-footer {
    display: flex;
    gap: 32px;
    padding: 48px;
    background: var(--bg-alt);
    border-radius: 24px;
    align-items: center;
    margin-top: 80px;
}

.author-avatar-large {
    width: 96px;
    height: 96px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bio-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.bio-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-layout-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 80px;
    }

    .post-sidebar {
        display: none;
    }

    .post-hero-inner h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .professional-hero {
        padding: 6rem 0 4rem;
    }

    .hero-inner h1 {
        font-size: 2.5rem;
    }

    .post-hero-inner h1 {
        font-size: 2.25rem;
    }

    .post-featured-img img {
        height: 320px;
    }
}

/* --- SEO Pillar Page Styles --- */

/* Content Typography */
.section-content {
    line-height: 1.8;
    color: var(--text-main);
}

.section-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-content p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.section-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.section-content li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

/* SEO Feature Boxes */
.seo-box {
    background: #EFF6FF !important;
    /* Blue-50 */
    border: 1px solid #DBEAFE !important;
    /* Blue-100 */
    border-radius: 12px !important;
    padding: 32px !important;
    margin: 48px auto !important;
    max-width: 800px;
    text-align: left;
}

.seo-box h3 {
    color: #1E40AF !important;
    /* Blue-800 */
    margin-top: 0 !important;
    font-size: 1.25rem !important;
}

.takeaways-box {
    background: #F9FAFB !important;
    /* Gray-50 */
    border: 1px solid var(--border) !important;
    border-left: 4px solid var(--primary) !important;
    padding: 32px !important;
    margin: 48px auto !important;
    max-width: 800px;
    border-radius: 4px 12px 12px 4px !important;
    box-shadow: var(--shadow-sm) !important;
}

.takeaways-box h3 {
    margin-top: 0 !important;
    font-size: 1.25rem !important;
}

/* Semantic Data Tables */
.table-responsive {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
}

.table th,
.table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #F9FAFB;
}

/* Blur Lock */
/* Blur Lock */
.blur-lock-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* max-height: 650px; Remove max-height so full form is visible behind blur */
}

.blur-lock-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.blur-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* Ensure visible */
    opacity: 1;
    pointer-events: auto;
}

.blur-lock-overlay .text-center {
    background: rgba(255, 255, 255, 0.9);
    padding: 32px 48px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}