/* Mobile Drawer Header (Internal) */
.mobile-drawer-header {
    display: none;
    /* Hidden on Desktop */
}

@media (max-width: 768px) {
    .mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .drawer-logo {
        height: 32px;
        width: auto;
    }

    .drawer-close {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-muted);
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s;
    }

    .drawer-close:hover {
        color: var(--accent-color);
    }

    /* Hide the original external toggle when menu is active to avoid dual buttons */
    .nav-toggle.active {
        opacity: 0;
        pointer-events: none;
    }
}

:root {
    /* Premium Color Palette */
    --primary-color: #0f172a;
    /* Deep Navy */
    --primary-light: #1e293b;
    --accent-color: #3b82f6;
    /* Trust Blue */
    --accent-dark: #2563eb;
    --accent-light: #60a5fa;
    --success-color: #10b981;
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* 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 10px 10px -5px rgb(0 0 0 / 0.04);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background-color: #0f172a;
    /* Match footer color to hide overscroll white space */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.7);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.bg-light {
    background-color: #f1f5f9;
}

.bg-white {
    background-color: var(--surface-color);
}

/* Utilities */
.text-white {
    color: #ffffff !important;
}

.text-dark {
    color: var(--primary-color) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.p-4 {
    padding: 1.5rem;
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.inline-block {
    display: inline-block;
}

/* Warning / Alert Styles */
.bg-warning-light {
    background-color: #fffbeb;
}

.text-warning {
    color: #b45309;
}

.border-warning {
    border: 1px solid #fcd34d;
}

.bg-dark {
    background-color: var(--primary-color);
}

/* Missing Utility Classes (used in HTML) */
.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}


/* Monitoring Timeline Visual */
.monitoring-visual {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

.mon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.badge-status {
    background: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
}

.timeline-item.done {
    opacity: 0.6;
}

.tl-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 60px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 2px;
}

.tl-content {
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.timeline-item.active .tl-content {
    border-left-color: var(--accent-color);
}

.timeline-item.done .tl-content {
    border-left-color: var(--success-color);
}

.tl-content strong {
    font-size: 0.9rem;
    display: block;
}

.tl-content small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tl-action {
    margin-top: 0.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    cursor: pointer;
}

header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-toggle {
    display: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header CTA Button — Hover Gradient Focus */
.btn-header-cta {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #3b82f6, #6366f1, #2dd4bf, #3b82f6) !important;
    background-size: 300% 300% !important;
    background-position: 0% 50% !important;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.45) !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: background-position 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease !important;
}

.btn-header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-header-cta:hover {
    background-position: 50% 50% !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.5) !important;
}

.btn-header-cta:hover::before {
    left: 100%;
}

.btn-text {
    font-weight: 600;
    color: var(--primary-color);
}

.btn-text:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: #eff6ff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-new {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #eff6ff;
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid #dbeafe;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    left: -20%;
    top: -20%;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

.hero-img-main {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-image-wrapper:hover .hero-img-main {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

/* Logo Cloud */
.logos-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    box-shadow: var(--glass-shadow);
}

.feature-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.bg-blue {
    background: #3b82f6;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.bg-green {
    background: #10b981;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.bg-purple {
    background: #8b5cf6;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

/* Content Sections */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.subheading {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.check-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 8px solid white;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-desc {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero,
    .two-column-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-img-main {
        transform: none;
    }

    .check-list {
        text-align: left;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .trust-badge {
        justify-content: center;
    }

    .logos-grid {
        gap: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile Drawer Menu */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        /* Start off-screen */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--surface-color);
        padding: 1.5rem 2rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        gap: 0.25rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        /* Above header */
        overflow-y: auto;

        /* Ensure items align left */
        align-items: flex-start;
        text-align: left;
    }

    .nav-links li {
        width: 100%;
        /* Full width for clickable area */
    }

    .nav-links a {
        display: block;
        /* Make links block level */
        width: 100%;
        padding: 0.5rem 0;
        /* Add touch target size */
    }

    /* Hide arrow on mobile or rotate it */
    .dropdown-item.active .arrow-down {
        transform: rotate(180deg);
        display: inline-block;
    }

    .nav-links.active {
        left: 0;
        /* Slide in */
    }

    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(4px);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Adjust Header Actions for Mobile Drawer */
    /* Ensure Toggle Button is on the Left (App-bar style) */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 1002;
        /* Topmost */
        order: -1;
        margin-left: 0;
        margin-right: 0.5rem;
    }

    /* Push Header Actions to the far right by making Logo grow or using auto margin */
    /* Note: We target the logo wrapper anchor tag */
    .nav-container .logo {
        margin-right: auto;
        display: flex;
        /* Ensure it behaves well in flex */
        align-items: center;
    }

    /* Important: We need to hide the header-actions inside the drawer if duplicated,
       but here in the header bar we want the FIRST one visible? 
       Wait, header.js has .header-actions OUTSIDE nav.
       On mobile, .header-actions is visible on valid screen width if not hidden.
       In previous step we set .header-actions { display: flex; flex-direction: column; width: 100%; } 
       THIS IS WRONG for the header bar button. That style was likely for inside the drawer.
       Let's fix .header-actions to be just the button on the right. */

    .header-actions {
        display: block;
        /* Back to normal for header button */
        width: auto;
    }

    /* Mobile: Ultra-compact header CTA */
    .btn-header-cta {
        padding: 0.35rem 0.9rem !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        letter-spacing: 0.02em;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    /* Toggle Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .monitoring-visual,
    .audit-visual {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--primary-color);
}

.comparison-table .highlight-col {
    background: #eff6ff;
    border-left: 2px solid #3b82f6;
    border-right: 2px solid #3b82f6;
    color: var(--primary-color);
    font-weight: 600;
}

.comparison-table th.highlight-col {
    background: #dbeafe;
    color: var(--accent-color);
    border-top: 4px solid var(--accent-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
}

.bento-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.bento-large {
    grid-column: span 8;
    grid-row: span 2;
    background: radial-gradient(circle at top right, #f1f5f9 0%, white 40%);
}

.bento-medium {
    grid-column: span 4;
    grid-row: span 1;
}

.feature-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Risk Score Visual */
.risk-visual {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.risk-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid #eaeaea;
    border-top-color: var(--success-color);
    border-right-color: var(--success-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.score-label {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
}

/* Mobile Responsive for Bento */
@media (max-width: 900px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-large,
    .bento-medium {
        width: 100%;
        min-height: 300px;
    }
}

/* Executive Assurance Section */
.bg-gradient-dark {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
}

.text-accent-light {
    color: var(--accent-light);
}

.text-light-gray {
    color: #94a3b8;
}

.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.75rem;
}

.assurance-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.assurance-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.assurance-item .icon-box {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audit-visual {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 400px;
    margin: 0 auto;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.audit-visual:hover {
    transform: rotate(0deg) scale(1.02);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.check-row .w-4 {
    width: 20px;
    height: 20px;
}

/* Tech Search Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.border-l-accent {
    border-left: 5px solid var(--accent-color);
}

.border-l-success {
    border-left: 5px solid var(--success-color);
}

.border-l-primary {
    border-left: 5px solid var(--primary-color);
}

.border-l-purple {
    border-left: 5px solid #8b5cf6;
}

.tech-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1rem;
}

.lists-check {
    list-style: none;
    margin-top: 1rem;
}

.lists-check li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.lists-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.speed-meter {
    margin-top: 1.5rem;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}


/* Scan Visual Animation */
.scan-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-color);
    animation: scanAnimation 3s infinite linear;
    z-index: 10;
}

@keyframes scanAnimation {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.verification-badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.verified-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.25rem;
}

.text-success {
    color: var(--success-color);
}

.font-mono {
    font-family: monospace;
}

.grayscale-img {
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.scan-visual:hover .grayscale-img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .order-1-mobile {
        order: 1;
    }

    .order-2-mobile {
        order: 2;
    }

    .verification-badge {
        right: 1rem;
        bottom: 1rem;
    }
}

/* EBR Section & Dashboard */
.ebr-dashboard {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 0 auto;
}

.ebr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.score-badge.badge-low {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.ebr-radar-container {
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* Simplified Radar Chart Visual */
.radar-graph {
    width: 200px;
    height: 200px;
    position: relative;
    background: radial-gradient(circle, transparent 0%, transparent 20%, #e2e8f0 21%, transparent 22%, transparent 40%, #e2e8f0 41%, transparent 42%, transparent 60%, #e2e8f0 61%, transparent 62%, transparent 80%, #e2e8f0 81%, transparent 82%);
    border-radius: 50%;
}

.radar-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: rgba(16, 185, 129, 0.3);
    border: 2px solid var(--success-color);
    transform: translate(-50%, -50%) rotate(45deg);
    /* Diamond shape simulation */
}

.radar-graph span {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
}

.label-top {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.label-bottom {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.label-left {
    left: -90px;
    top: 50%;
    transform: translateY(-50%);
}

.label-right {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.recommendations-box {
    background: #eff6ff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dbeafe;
}

.rec-title {
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-list {
    list-style: none;
    font-size: 0.9rem;
}

.rec-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.rec-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-ai-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.factor-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .factors-grid {
        grid-template-columns: 1fr;
    }

    .label-left {
        left: -70px;
    }

    .label-right {
        right: -50px;
    }
}

/* Fines Warning Section */
.bg-warning-light {
    background-color: #fffbeb;
}

.border-warning {
    border: 1px solid #fcd34d;
}


/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.ind-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.industry-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}


/* Integration Section */
.integration-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.int-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.int-icon {
    font-size: 1.5rem;
    background: #e0e7ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-snippet-mockup {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.code-snippet-mockup::before {
    content: "● ● ●";
    color: #64748b;
    font-size: 0.8rem;
    letter-spacing: 2px;
    position: absolute;
    top: 10px;
    left: 15px;
}

.code-snippet-mockup pre {
    margin: 0;
    margin-top: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #a5b4fc;
    overflow-x: auto;
}

.border-y {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Carousel / Gallery Styles added by Antigravity */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border: 12px solid white;
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .carousel-container {
        border-width: 4px;
        /* Thinner frame on mobile */
        border-radius: 16px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.8);
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.feature-list-highlighted li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-list-highlighted strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* End of file */

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* =========================================
   Enterprise / API Section Styles
   ========================================= */

.icon-box-dark {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.check-list-dark {
    list-style: none;
    padding: 0;
}

.check-list-dark li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.check-list-dark li::before {
    content: "•";
    color: var(--accent-light);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

/* Code Window Editor */
.code-window {
    background: #1e293b;
    /* Slate 800 */
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    position: relative;
    margin-top: 1rem;
}

.code-header {
    background: #0f172a;
    /* Slate 900 */
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #22c55e;
}

.tab-label {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #334155;
    font-family: sans-serif;
}

.code-body {
    padding: 24px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    max-width: 100%;
}

/* Syntax Highlighting Mock */
.c-keyword {
    color: #c084fc;
    font-weight: bold;
}

/* Purple */
.c-func {
    color: #60a5fa;
}

/* Blue */
.c-string {
    color: #4ade80;
}

/* Green */
.c-val {
    color: #f472b6;
}

/* Pink */
.c-prop {
    color: #e2e8f0;
}

/* White/Grey */
.c-key {
    color: #93c5fd;
}

/* Light Blue */
.c-comment {
    color: #64748b;
    font-style: italic;
}

.c-bool {
    color: #f59e0b;
}

/* Orange */
.c-console {
    color: #22d3ee;
}

/* Cyan */

/* Tech Tags overrides for dark bg */
.tech-tag.bg-transparent {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.tech-tag.bg-transparent:hover {
    color: white;
    border-color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Enterprise Button Style */
.btn-outline-white {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =========================================
   Enterprise Technical Diagrams CSS
   ========================================= */

.diagram-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Diagram 1: Mirror System */
.mirror-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
}

.node {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.client-node {
    background: #1e293b;
    border: 1px solid #475569;
    color: #94a3b8;
    width: 30%;
}

.server-node {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    width: 30%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.flow-arrows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.arrow-line {
    width: 100%;
    height: 1px;
    background: #475569;
    position: relative;
    display: flex;
    justify-content: center;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #475569;
    border-right: 1px solid #475569;
    transform: rotate(45deg);
}

.arrow-line.reverse::after {
    right: auto;
    left: 0;
    transform: rotate(-135deg);
    border-color: var(--success-color);
    /* Green return arrow */
}

.arrow-line.reverse {
    background: var(--success-color);
    /* Green line */
    opacity: 0.7;
}

.arrow-label {
    font-size: 0.65rem;
    color: #94a3b8;
    position: absolute;
    top: -14px;
    background: #0f172a;
    padding: 0 4px;
}

/* Diagram 2: Hybrid Options */
.hybrid-options {
    display: flex;
    gap: 1rem;
}

.option-box {
    flex: 1;
    background: #1e293b;
    border: 1px dashed #475569;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.option-box.active {
    border: 1px solid #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

.option-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: block;
}

/* Diagram 3: Algo Layers */
.algo-layers {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: white;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.layer-step {
    background: #1e293b;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    white-space: nowrap;
}

.layer-arrow {
    color: #475569;
}

/* =========================================
   Integration Flowchart (PayPal Model)
   ========================================= */

.integration-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.flow-step {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.flow-branches {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Branch Lines Visualization via Pseudo-elements */
.flow-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 20px;
    border-top: 1px solid #475569;
    border-right: 1px solid #475569;
    border-top-right-radius: 12px;
}

.flow-branches::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 20px;
    border-top: 1px solid #475569;
    border-left: 1px solid #475569;
    border-top-left-radius: 12px;
}

.branch-col {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Connecting lines down from branches */
.branch-col::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background: #475569;
}

/* Connecting lines converging at bottom */
.flow-converge {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: -10px;
    /* Pull next item up */
}

.flow-converge::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    /* Connect from left branch center roughly */
    right: 25%;
    /* Connect from right branch center roughly */
    height: 10px;
    border-bottom: 1px solid #475569;
    border-left: 1px solid #475569;
    border-right: 1px solid #475569;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.flow-converge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    height: 10px;
    width: 1px;
    background: #475569;
}

/* The Branch Cards */
.branch-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    transition: transform 0.3s;
}

.branch-card:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.05);
}

.branch-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.branch-title {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.branch-desc {
    color: #94a3b8;
    font-size: 0.65rem;
    line-height: 1.3;
}

.result-box {
    margin-top: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.arch-visual {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    font-size: 0.75rem;
    padding: 1rem 0;
}

.arch-domain {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
}

.domain-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
}

/* Client Domain */
.domain-client {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
}

.system-box {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    color: #cbd5e1;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Core Domain */
.domain-core {
    flex: 2;
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.core-stack {
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.stack-layer {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.7rem;
}

.stack-layer.db {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Connectors */
.arch-connector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    min-width: 60px;
    position: relative;
}

.conn-line {
    height: 1px;
    background: #475569;
    position: relative;
    width: 100%;
}

.conn-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #475569;
    border-right: 1px solid #475569;
    transform: rotate(45deg);
}

.conn-line.reverse::after {
    left: 0;
    right: auto;
    transform: rotate(-135deg);
    border-color: var(--success-color);
}

.conn-line.reverse {
    background: var(--success-color);
}

.conn-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #94a3b8;
    white-space: nowrap;
    background: #0f172a;
    padding: 0 4px;
}

.secure-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f172a;
    color: #fbbf24;
    border: 1px solid #334155;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 10;
}

/* =========================================
   Algorithm Performance Diagram
   ========================================= */
.algo-performance {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem;
}

.perf-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: #cbd5e1;
}

.metric-label {
    width: 30%;
    text-align: right;
    font-weight: 600;
}

.metric-bar-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.metric-bar {
    height: 100%;
    border-radius: 4px;
    position: relative;
}

/* Animations for bars */
.bar-scan {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    animation: pulseWidth 2s infinite;
}

.bar-process {
    width: 60%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.bar-speed {
    width: 95%;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.metric-value {
    width: 50px;
    font-family: monospace;
    text-align: right;
    font-weight: 700;
}

.text-speed {
    color: #34d399;
}

.algo-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    text-align: center;
}

.sum-val {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.sum-lbl {
    font-size: 0.6rem;
    color: #64748b;
    text-transform: uppercase;
}

@keyframes pulseWidth {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

/* =========================================
   Mobile Responsiveness for Diagrams
   ========================================= */

@media (max-width: 768px) {

    /* Architecture Diagram -> Stack Vertical */
    .diagram-container {
        padding: 0.8rem;
        overflow-x: auto;
    }

    .arch-visual {
        flex-direction: column;
        gap: 1.5rem;
    }

    .arch-domain {
        width: 100%;
        padding: 0.8rem;
    }

    .arch-connector {
        flex-direction: row;
        /* Keep horizontal orientation but tighter */
        width: 100%;
        min-height: auto;
        padding: 10px 0;
    }

    .conn-label {
        font-size: 0.5rem;
        top: -14px;
    }

    .conn-line {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .system-box,
    .stack-layer {
        font-size: 0.65rem;
        padding: 6px;
    }

    /* Integration Flow -> Squeeze branches */
    .integration-flow {
        padding: 0.5rem;
    }

    .flow-branches {
        gap: 0.5rem;
    }

    .branch-col {
        width: auto;
        flex: 1;
    }

    .branch-card {
        padding: 8px;
    }

    .branch-title {
        font-size: 0.65rem;
    }

    .branch-desc {
        display: none;
        /* Hide detailed text on small mobile */
    }

    /* Algorithm Dashboard -> Compact */
    .metric-label {
        width: 25%;
        font-size: 0.6rem;
    }

    .metric-value {
        width: 40px;
        font-size: 0.65rem;
    }

    .algo-summary {
        margin-top: 0.8rem;
    }

    .sum-val {
        font-size: 0.85rem;
    }

    .sum-lbl {
        font-size: 0.55rem;
    }

    /* ===== MOBILE OVERFLOW FIX: Enterprise Section ===== */
    /* Constrain the code window on small screens */
    .code-window {
        max-width: 100%;
    }

    .code-body {
        padding: 12px;
        font-size: 0.7rem;
    }

    .code-body pre {
        white-space: pre-wrap;
        word-break: break-all;
    }

    .tab-label {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    /* Ensure tech tags wrap properly */
    .integration-badges .tech-tag {
        margin-bottom: 0.5rem;
    }
}

/* ================================================
   IMPLEMENTATION SECTION STYLES
   ================================================ */

/* Path Selector Tabs */
.impl-path-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.impl-path-tab {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.impl-path-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.impl-path-tab:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.impl-path-tab.active {
    border-color: var(--accent-color);
    background: #eff6ff;
    box-shadow: 0 4px 20px -4px rgba(59, 130, 246, 0.25);
}

.impl-path-tab.active::before {
    background: var(--gradient-primary);
}

.impl-path-tab.active-green {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 4px 20px -4px rgba(16, 185, 129, 0.25);
}

.impl-path-tab.active-green::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.impl-tab-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.impl-tab-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.impl-tab-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Path Content Panels */
.impl-path-content {
    display: none;
    animation: implFadeIn 0.5s ease;
}

.impl-path-content.active {
    display: block;
}

@keyframes implFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flow Diagram */
.impl-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.impl-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem;
    max-width: 180px;
    position: relative;
}

.impl-flow-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.15);
}

.impl-flow-step-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.impl-flow-step-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.impl-flow-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin: 0 0.25rem;
    font-weight: 800;
}

/* Implementation Comparison Table */
.impl-comparison {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.impl-comparison table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.impl-comparison th,
.impl-comparison td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.impl-comparison thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impl-comparison thead th:first-child {
    border-radius: 0;
}

.impl-comparison thead th.col-pyme {
    background: #059669;
}

.impl-comparison thead th.col-enterprise {
    background: var(--accent-dark);
}

.impl-comparison tbody tr:hover {
    background: #f8fafc;
}

.impl-comparison tbody td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.impl-comparison .badge-inline {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-instant {
    background: #d1fae5;
    color: #065f46;
}

.badge-custom {
    background: #dbeafe;
    color: #1e40af;
}

/* Timeline */
.impl-timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.impl-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), #10b981);
    border-radius: 2px;
}

.impl-timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.impl-timeline-item:last-child {
    padding-bottom: 0;
}

.impl-timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-color);
    z-index: 1;
}

.impl-timeline-item.done .impl-timeline-dot {
    background: #10b981;
    border-color: #10b981;
}

.impl-timeline-item.active .impl-timeline-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.impl-timeline-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.impl-timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.impl-timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* PLD Obligations */
.pld-obligations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pld-obligation-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pld-obligation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.pld-obligation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pld-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pld-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pld-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.pld-card-law {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.pld-card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.pld-card-solution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

/* FAQ Accordion */
.faq-grid {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-light);
}

.faq-item.open {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    gap: 1rem;
    user-select: none;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.faq-item.open .faq-toggle {
    background: var(--accent-color);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.faq-answer ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.faq-answer ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Section Divider */
.impl-section-divider {
    text-align: center;
    margin: 3.5rem 0 2.5rem;
    position: relative;
}

.impl-section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.impl-section-divider span {
    background: #f1f5f9;
    padding: 0 1.5rem;
    position: relative;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Responsive for Implementation Section */
@media (max-width: 768px) {
    .impl-path-selector {
        flex-direction: column;
        align-items: center;
    }

    .impl-path-tab {
        min-width: 100%;
        max-width: 400px;
    }

    .impl-flow {
        flex-direction: column;
        gap: 0;
    }

    .impl-flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .impl-flow-step {
        max-width: 100%;
    }

    .impl-comparison {
        overflow-x: auto;
    }

    .impl-comparison table {
        min-width: 500px;
    }

    .pld-obligations-grid {
        grid-template-columns: 1fr;
    }

    .faq-question h4 {
        font-size: 0.9rem;
    }
}