/* --- Root Variables and General Styling --- */
:root {
    --primary-color: #2563EB; /* Modern Blue */
    --primary-color-light: #3B82F6; /* Lighter Blue */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-success: #67C23A;
    --bg-success-hover: #F8F9FA;
    --text-dark: #0D1117;
    --text-medium: #495057;
    --text-light: #6C757D;
    --border-color: rgba(13, 17, 23, 0.1);
    --font-family: 'Poppins', sans-serif;
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2); /* Blue Glow */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--bg-primary);
    color: var(--text-medium);
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Aurora Background Glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.1;
}

body::before {
    background: radial-gradient(circle, var(--primary-color), transparent 60%);
    top: -200px;
    left: -200px;
}

body::after {
    background: radial-gradient(circle, #4A90E2, transparent 60%);
    bottom: -200px;
    right: -200px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.3;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin-bottom: 1.25rem; }
a { color: var(--primary-color); text-decoration: none; }
.text-center { text-align: center; }

.eyebrow {
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

/* --- Header --- */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}
.logo-img { border-radius: 8px; }
.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(90deg, #2563EB, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.nav-main ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-medium);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--text-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Dropdown Menu */
.dropdown { position: static; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    min-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, top 0.3s;
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    gap: 30px;
}
.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
    top: 100%;
}
.dropdown-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.dropdown-column a {
    color: var(--text-medium);
    padding: 8px 0;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}
.dropdown-column a:hover {
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background: var(--primary-color-light);
    border-color: var(--primary-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-medium);
}
.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--bg-primary);
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* --- Main Sections & Spacing --- */
main > section {
    padding: 60px 0;
}

/* --- CORRECTED HERO SECTION (Gradient + Animation Layout) --- */
.hero {
    padding: 120px 0;
    padding-top: 201px; /* 120px + 81px for the fixed header */
    position: relative;
    overflow: hidden; /* Ensures the gradient doesn't bleed */

    /* The multi-color gradient background */
    background: linear-gradient(45deg,
        #E8F2FF 0%,
        #B9D9FF 25%,
        #A3B4FF 50%,
        #B4A1FF 75%,
        #C98FFF 100%
    );
    background-blend-mode: multiply;

}

.hero .container {
    display: grid;
    grid-template-columns: 0.5fr 1fr; /* Left column is smaller, right is larger for text */
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-headline {
    font-size: 3.2rem;
    color: var(--text-dark); /* Using dark text for light background */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: none;
}
.hero-subheadline {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.hero-cta {
    display: flex;
    gap: 20px;
}

/* --- Animation Component Styles --- */
#hero-animation-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 450px;
}
.canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr; /* Stack to a single column */
    }
    .hero-text {
        grid-column-start: 1; /* Reset to the first column */
        text-align: center; /* Center the text on mobile */
    }
    .hero-cta {
        justify-content: center; /* Center the buttons on mobile */
    }
}

/* --- CORRECTED CLIENTS SECTION --- */
.clients-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}
.clients-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.clients-logos {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
}
.clients-logos-slider {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.clients-logos img {
    height: 40px;
    width: auto;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.clients-logos:hover .clients-logos-slider {
    animation-play-state: paused;
}
.clients-logos .clients-logos-slider img:hover {
    filter: grayscale(0);
    opacity: 1;
}
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Video Showcase --- */
/* --- Video Showcase Section Styles --- */
.video-showcase {
    /* This gives the section its vertical spacing */
    padding: 0px 0;
    margin-top: -80px;
    padding-bottom: 60px;
}

.video-placeholder {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden; /* Keeps the zooming image contained */
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.video-placeholder img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease; /* Smooth zoom effect */
}

.video-placeholder:hover img {
    transform: scale(1.03);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    font-size: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
    color: var(--bg-primary);
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* The modal starts hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* This class is added by JavaScript to make the modal visible */
.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content {
    transform: scale(1);
}

.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-modal-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-modal-btn:hover {
    opacity: 1;
}

/* --- Features Section --- */
.section-header { margin-bottom: 5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-item {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.feature-item h3 { margin-bottom: 1rem; }
.learn-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
}
.learn-more i { margin-left: 5px; transition: transform 0.3s; }
.learn-more:hover i { transform: translateX(5px); }

/* --- Agentic Platform Section --- */
.agentic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.agentic-text h2 { margin-bottom: 1.5rem; }
.agentic-visual {
    position: relative;
    padding-top: 70px; /* Space for the scroller */
}
.agentic-visual img {
    width: 100%;
    border-radius: 12px;
}

/* --- Final CTA Section --- */
.final-cta {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* --- Footer --- */
.footer {
    background: #1E293B; /* UPDATED: Faded dark blue */
    color: #94A3B8; /* Lighter text for dark blue bg */
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 {
    color: var(--bg-primary);
    margin-bottom: 15px;
    font-weight: 600;
}
.footer-col p { color: #94A3B8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94A3B8; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 15px; }
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #334155;
    color: #94A3B8;
    border-radius: 50%;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #334155;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
.nav-toggle { display: none; }

@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .agentic-grid { grid-template-columns: 1fr; }
    .agentic-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .nav-main, .header-actions { display: none; }
    .nav-toggle { display: block; }
    h1 { font-size: 2.2rem; }
    .hero { padding: 120px 0 80px; }
    main > section { padding: 80px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; }
    .dropdown-content { min-width: 90vw; flex-direction: column; }
}

/* --- Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tooltip Styles for Compliance Images --- */

/* This is the container for each image and its tooltip text.
   It needs a relative position to act as an anchor for the tooltip. */
.compliance-images span[data-tooltip] {
    position: relative;
    cursor: pointer;
}

/* This is the actual tooltip bubble. It's a pseudo-element
   that is hidden by default and appears on hover. */
.compliance-images span[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #0D1117;
    color: #E6EDF3;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* This makes the tooltip visible when you hover over the span */
.compliance-images span[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Optional: Style the compliance images themselves */
.compliance-images img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.compliance-images img:hover {
    opacity: 1;
}


/* --- Agentic Platform Scroller --- */
/* --- Agentic Platform Scroller --- */
.use-case-scroller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* ADDED: This makes the container span the full width */
    height: 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 0px solid var(--border-color); /* Corrected from 0px to 1px to match style */
    border-radius: 8px;
    padding: 0 20px;
}
.scroller-inner {
    animation: vertical-scroll 16s linear infinite;
}
.scroller-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-dark);
}
.scroller-item i {
    color: var(--bg-success);
    margin-right: 12px;
    font-size: 1.1rem;
}
@keyframes vertical-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* --- Consent Banner Styles --- */
.consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%); /* Start off-screen */
    width: auto;
    max-width: 90%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease-in-out;
}
.consent-banner.show {
    transform: translateX(-50%) translateY(0); /* Slide into view */
}
.consent-banner p {
    margin: 0;
    color: var(--text-medium);
}
.consent-buttons {
    display: flex;
    gap: 10px;
}
.consent-buttons .btn {
    width: auto; /* Override full-width button style */
    padding: 8px 16px;
}
