/* Base styling */
body {
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    background-color: #000000;
    color: #F3F4F6; /* Light gray */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.bg-near-black {
    background-color: #0a0a0a;
}
.bg-dark-charcoal {
    background-color: #111111;
}

/* --- UPGRADE: Animated Gradient Blobs (Smoother) --- */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -12;
    pointer-events: none;
}
.bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
    border-radius: 9999px;
    filter: blur(150px);
    opacity: 0.5;
    will-change: transform, opacity;
    /* NEW: Smoother transition for JS-driven color change */
    transition: background 1s ease-in-out;
}
.blob-1 {
    top: 10%;
    left: 10%;
    animation: blob-move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.blob-2 {
    bottom: 10%;
    right: 10%;
    animation: blob-move 25s infinite alternate cubic-bezier(0.45, 0, 0.55, 1) -10s;
}
.blob-3 {
    top: 50%;
    left: 50%;
    animation: blob-move 30s infinite alternate cubic-bezier(0.45, 0, 0.55, 1) -5s;
}
@keyframes blob-move {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3) translate(100px, -50px);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }
}


/* --- Mouse Follow Glow --- */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(500px circle at var(--x) var(--y), rgba(59, 130, 246, 0.08), transparent 70%);
    z-index: -5;
    transition: background 0.1s linear;
}

/* Constellation & Particle Canvases */
#constellation-canvas,
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#constellation-canvas {
    z-index: -11;
    opacity: 0.3;
}
#particle-canvas {
    z-index: -10;
    opacity: 0.5;
}

/* Header scroll effect */
.header-scrolled {
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(60, 60, 60, 0.5);
}

/* --- NEW: Magic Line Nav Hover Effect --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover::after {
    transform: scaleX(1);
}
/* Don't apply to buttons */
.btn-premium.nav-link::after,
.btn-secondary.nav-link::after {
    display: none;
}


/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s;
}
#mobile-menu.is-open {
    max-height: 300px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Premium button styling */
.btn-premium {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #fff;
    position: relative;
    overflow: hidden;
    /* NEW: For magnetic hover */
    will-change: transform;
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
}
.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px -5px rgba(255, 255, 255, 0.3);
}
.btn-premium:hover::before { left: 100%; }

/* --- NEW: Form Button Loading State --- */
.btn-premium.is-loading {
    color: transparent;
    pointer-events: none;
}
.btn-premium.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Secondary button styling */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #4B5563;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}
.btn-secondary:hover {
    color: #000000;
    border-color: #ffffff;
    transform: scale(1.05);
}
.btn-secondary:hover::before { transform: scaleX(1); }

/* Hero product "float" animation */
.hero-float { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #ffffff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Animated Border */
.hero-border {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 2px;
    z-index: -1;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.3), rgba(255, 255, 255, 0.1), rgba(59, 130, 246, 0.3));
    background-size: 200% 200%;
    animation: gradient-breathe 8s ease-in-out infinite;
}
@keyframes gradient-breathe {
    0% { background-position: 0% 50%; opacity: 0.5; }
    50% { background-position: 100% 50%; opacity: 1; }
    100% { background-position: 0% 50%; opacity: 0.5; }
}

/* --- Scroll Animations --- */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-parallax {
    will-change: transform;
}
.animate-fade-in-up {
    transform: translateY(30px);
}
.animate-fade-in-left {
    transform: translateX(-30px);
}
.animate-fade-in-right {
    transform: translateX(30px);
}
/* UPGRADED: More dramatic pop-in */
.animate-scale-in-up {
    opacity: 0;
    transform: scale(0.9) translateY(50px); /* Was 0.95, 30px */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* NEW rule for staggered children */
[data-stagger-children].is-visible .scroll-animate {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Word-by-word text animation */
.split-text-words.is-split {
    opacity: 1;
    transform: none;
}
.split-text-words .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(3deg);
    transition: all 0.6s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.scroll-animate.is-visible .word {
    opacity: 1;
    transform: translateY(0) rotate(0);
}
.word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
}

/* Custom form input */
.form-input {
    background-color: #111111;
    border: 1px solid #374151;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* === REBUILT: AI Orb Animation === */
.ai-orb-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 9999px;
    animation: pulse-bg 5s infinite ease-in-out;
    /* NEW: For 3D rings */
    perspective: 1000px;
}
@keyframes pulse-bg {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* REMOVED .ai-orb and .ai-orb::before */

/* --- NEW: Animated AI Core Styles --- */
.orb-core {
    position: absolute;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(59, 130, 246, 0.5) 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7), 0 0 40px rgba(255, 255, 255, 0.5);
    /* NEW: JS will control these */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease-in-out;
    /* NEW: Base pulse animation */
    animation: pulse-core-anim 2.5s infinite alternate ease-in-out;
}
@keyframes pulse-core-anim {
    from { 
        /* transform: scale(0.9); Combined with JS transform */
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.7), 0 0 40px rgba(255, 255, 255, 0.5); 
    }
    to { 
        /* transform: scale(1.0); Combined with JS transform */
        box-shadow: 0 0 30px rgba(59, 130, 246, 1), 0 0 50px rgba(255, 255, 255, 0.7); 
    }
}

.orb-ring-bg {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulse-bg 3s infinite alternate ease-in-out;
}

/* NEW: Shockwave Element */
.orb-shockwave {
    position: absolute;
    width: 40%;
    height: 40%;
    background-color: transparent;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.5);
    transform: scale(0);
    opacity: 0;
    /* JS will control play state by setting animation */
}

@keyframes shockwave-anim {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5); /* Expands beyond the container */
        opacity: 0;
        border-width: 1px;
    }
}
/* --- End Shockwave --- */


.orb-ring {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform-style: preserve-3d;
    /* NEW: JS will control play state */
    transition: animation-play-state 0.5s ease;
}
#orb-ring-1 {
    width: 60%;
    height: 60%;
    border-color: rgba(255, 255, 255, 0.3);
    animation: rotate-3d-1 10s infinite linear;
}
#orb-ring-2 {
    width: 80%;
    height: 80%;
    border-color: rgba(59, 130, 246, 0.4);
    border-style: dashed;
    animation: rotate-3d-2 15s infinite linear;
}
#orb-ring-3 {
    width: 100%;
    height: 100%;
    border-color: rgba(255, 255, 255, 0.1);
    animation: rotate-3d-3 20s infinite linear;
}

@keyframes rotate-3d-1 {
    from { transform: rotate3d(1, 1, 0, 0deg); }
    to { transform: rotate3d(1, 1, 0, 360deg); }
}
@keyframes rotate-3d-2 {
    from { transform: rotate3d(0, 1, 1, 0deg); }
    to { transform: rotate3d(0, 1, 1, 360deg); }
}
@keyframes rotate-3d-3 {
    from { transform: rotate3d(1, 0, 1, 360deg); }
    to { transform: rotate3d(1, 0, 1, 0deg); }
}

.orb-icon {
    position: absolute;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease-in-out, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Size is set via Tailwind in HTML (w-10 h-10) */
}
.orb-icon.is-active {
    opacity: 1;
    transform: scale(1);
}

/* --- NEW: Satellite Styles --- */
.orb-satellites {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-style: preserve-3d;
    animation: rotate-3d-satellites 12s infinite linear;
     /* JS will control play state */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), animation-play-state 0.5s ease;
}

@keyframes rotate-3d-satellites {
    from { transform: rotate3d(1, -1, 0, 0deg); }
    to { transform: rotate3d(1, -1, 0, 360deg); }
}

.orb-satellite {
    position: absolute;
    width: 8px; /* small dots */
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

/* Position satellites */
.orb-satellite:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}
.orb-satellite:nth-child(2) {
    bottom: 15%;
    left: 15%;
    transform: translate(-50%, 50%);
}
.orb-satellite:nth-child(3) {
    bottom: 15%;
    right: 15%;
    transform: translate(50%, 50%);
}
/* --- End Satellite Styles --- */
/* --- End Animated AI Core Styles --- */


/* --- UPGRADED: Premium Glow Hover (Spotlight) --- */
.glow-card {
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid #27272a;
    overflow: hidden; /* Important for the new effect */
}

/* NEW: Spotlight pseudo-element */
.glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), 
                                rgba(255, 255, 255, 0.1), 
                                transparent 200px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through */
}

.glow-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: #374151; /* Slightly lighter border on hover */
}

.glow-card:hover::after {
    opacity: 1;
}

.card-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s, background-color 0.3s;
}
.glow-card:hover .card-icon.icon-circle {
    transform: rotate(-15deg) scale(1.2);
    background-color: #3b82f6;
    color: #ffffff;
}
.glow-card:hover .card-icon.icon-simple {
    transform: scale(1.1) translateY(-5px);
    color: #3b82f6;
}

/* Hero Parallax containers */
#hero-content, #hero-image {
    will-change: transform, opacity;
}

/* Spec List Styling */
.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}
.spec-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #111111;
    border: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    /* NEW: Enhanced hover transition */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* --- NEW: Spec Icon Hover --- */
.spec-item:hover .spec-icon {
    transform: scale(1.1) rotate(-10deg);
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* --- NEW: Image Reveal Animation --- */
.image-clip-wrapper {
    clip-path: inset(15% 10% 15% 10%);
    transition: clip-path 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s;
    border-radius: 1.5rem; /* 24px */
    overflow: hidden;
    opacity: 0; /* Add opacity to scroll-animate transition */
}
.image-clip-wrapper > img {
    transform: scale(1.15);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-clip-wrapper.is-visible {
    clip-path: inset(0% 0% 0% 0%);
    opacity: 1;
}
.image-clip-wrapper.is-visible > img {
    transform: scale(1);
}

/* --- NEW: Sticky Scroll Section --- */
.sticky-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.sticky-scroll-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
}
.sticky-image-container {
    position: sticky;
    top: 6rem;
    height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 50%;
}
.sticky-image-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}
.scrolling-content-container {
    flex-basis: 50%;
    padding: 2rem 0;
    /* NEW: For content fading */
    display: flex;
    flex-direction: column;
    gap: 5rem; /* Space out content blocks */
    padding-top: 25vh;
    padding-bottom: 5vh;
}
@media (min-width: 1024px) {
    .sticky-scroll-wrapper {
        flex-direction: row;
    }
    .sticky-scroll-item {
        flex-direction: row;
        align-items: flex-start;
    }
    .scrolling-content-container {
        padding: 6rem 0;
        padding-top: 25vh;
        padding-bottom: 25vh;
    }
}
/* NEW: Sticky content block styling */
.sticky-content-block {
    opacity: 0.3;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: scale(0.98);
}
.sticky-content-block.is-active {
    opacity: 1;
    transform: scale(1);
}


/* --- UPGRADE: 3D Tilt Testimonial Cards --- */
.testimonial-card {
    border: 1px solid #27272a;
    padding: 24px;
    border-radius: 24px;
    /* NEW: For 3D effect */
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}

/* Idle Animations */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 20px -5px rgba(255, 255, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px -5px rgba(255, 255, 255, 0.4); }
}
.idle-pulse { animation: pulse-subtle 4s infinite ease-in-out; }
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
.idle-breathe { animation: breathe 5s infinite ease-in-out; }
@keyframes float-subtle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.idle-float { animation: float-subtle 4s infinite ease-in-out; }
@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.idle-rotate-slow { animation: rotate-slow 25s infinite linear; }
@keyframes tilt-subtle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-0.5deg); }
    75% { transform: rotate(0.5deg); }
}
.idle-tilt { animation: tilt-subtle 7s infinite ease-in-out; }

/* Video Poster Shimmer */
@keyframes shimmer-video {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}
.video-poster-shimmer {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 1.5rem;
}
.video-poster-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0.8;
    animation: shimmer-video 5s infinite linear;
    animation-delay: 2s;
}

/* --- UPGRADE: FAQ Accordion --- */
.faq-item {
    border-bottom: 1px solid #27272a;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* NEW: Bouncier transition */
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 24px;
}
.faq-answer > p { padding-bottom: 16px; }
.faq-icon { transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.faq-item.active .faq-icon { transform: rotate(45deg); }