/* Enhanced Gradients and Hover Effects */

/* Improved button gradients with animation */
.btn--primary {
    background: linear-gradient(135deg, #5b8aff 0%, #9b6bff 50%, #5b8aff 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn--primary:hover::before {
    left: 100%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced card hover effects */
.benefit-card,
.analysis-feature-card,
.force-card,
.pricing-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.benefit-card::after,
.analysis-feature-card::after,
.force-card::after,
.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(91, 138, 255, 0.1), rgba(155, 107, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.benefit-card:hover::after,
.analysis-feature-card:hover::after,
.force-card:hover::after,
.pricing-card:hover::after {
    opacity: 1;
}

.benefit-card:hover,
.analysis-feature-card:hover,
.force-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(91, 138, 255, 0.3);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(91, 138, 255, 0.4);
}

/* Gradient text effects */
.hero-highlight,
.hybrid-stat {
    background: linear-gradient(135deg, #fff 0%, #5b8aff 50%, #9b6bff 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

/* Enhanced navigation hover */
.global-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5b8aff, #9b6bff);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.global-nav a:hover::after {
    width: 80%;
}

/* Responsive improvements */

/* Tablet landscape and smaller desktops */
@media (max-width: 1200px) {
    .hero__layout {
        width: 92vw;
    }

    .hybrid-rotator__title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
    }

    .focus-mode {
        gap: 40px;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {

    section,
    header,
    footer {
        padding: clamp(50px, 10vw, 80px) clamp(20px, 5vw, 40px);
    }

    .hero {
        padding-top: clamp(100px, 15vh, 140px);
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 3.5rem) !important;
        line-height: 1.15;
    }

    .hero__subtitle {
        font-size: 1.05rem !important;
        max-width: 500px !important;
    }

    .product-demo__container {
        margin: 30px auto 40px !important;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .hybrid-card {
        padding: 35px 25px !important;
        min-height: 220px !important;
    }

    .hybrid-stat {
        font-size: clamp(2.8rem, 8vw, 4.5rem) !important;
    }

    .hybrid-context {
        font-size: 1.15rem !important;
    }

    .hybrid-desc {
        font-size: 1rem !important;
    }

    .focus-mode {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }

    .focus-mode__visual {
        order: -1;
    }

    .forces__grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .key-metrics__layout {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .analysis-features-grid {
        grid-template-columns: 1fr !important;
    }

    .thierry {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 60px 20px;
    }

    .custom-program__cards {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 7vw, 3rem) !important;
    }

    .hero__subtitle {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .hybrid-rotator {
        margin: 30px 0 15px;
    }

    .hybrid-rotator__title {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .hybrid-card {
        padding: 30px 20px !important;
        min-height: 200px !important;
    }

    .hybrid-stat {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        margin-bottom: 8px;
    }

    .hybrid-context {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }

    .hybrid-desc {
        font-size: 0.95rem !important;
    }

    .hybrid-nav {
        margin-top: 25px;
        gap: 15px;
    }

    .hybrid-nav__btn {
        width: 36px;
        height: 36px;
    }

    .hybrid-nav__dot {
        width: 7px;
        height: 7px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    .btn--large {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .macbook-window {
        border-radius: 12px;
    }

    .macbook-header {
        padding: 8px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .global-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }

    .brand img {
        height: 36px;
    }

    .global-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .global-nav a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 15px;
    }

    .hero__eyebrow {
        font-size: 0.7rem;
    }

    .hero__subtitle {
        font-size: 0.95rem !important;
        max-width: 100% !important;
        padding: 0 5px;
    }

    .hero__content {
        padding: 20px 15px;
    }

    .product-demo__container {
        margin: 25px auto 35px !important;
    }

    .hybrid-rotator__title {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .hybrid-card {
        padding: 25px 18px !important;
        min-height: 180px !important;
    }

    .hybrid-stat {
        font-size: clamp(2.2rem, 12vw, 3.5rem) !important;
    }

    .hybrid-context {
        font-size: 1rem !important;
    }

    .hybrid-desc {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }

    .floating-demo {
        bottom: 15px !important;
        right: 15px !important;
        max-width: 75px !important;
        height: 46px !important;
        padding: 10px 16px !important;
    }

    .floating-demo:hover {
        max-width: 180px !important;
    }

    .floating-demo__short {
        font-size: 0.9rem;
    }

    .floating-demo__long {
        font-size: 0.85rem;
    }

    .focus-title {
        font-size: 1.3rem;
    }

    .focus-text {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 11px 20px;
    }

    .btn--large {
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    .benefit-card,
    .force-card,
    .analysis-feature-card {
        padding: 20px 18px;
    }

    .benefit-card h3,
    .force-card h3 {
        font-size: 1.1rem;
    }

    .science__stat {
        font-size: 1.3rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem !important;
    }

    .hero__subtitle {
        font-size: 0.85rem !important;
    }

    .hybrid-stat {
        font-size: 2rem !important;
    }

    .hybrid-context {
        font-size: 0.95rem !important;
    }

    .hybrid-desc {
        font-size: 0.85rem !important;
    }

    .btn {
        font-size: 0.8rem;
        padding: 10px 18px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation enhancement */
@keyframes loader {

    0%,
    100% {
        transform: scaleY(0.3);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(91, 138, 255, 0.5);
    }
}

/* Enhanced focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5b8aff;
    outline-offset: 2px;
}

/* --- ULTRA MODERN CARDS DESIGN --- */
.analysis-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glow effect moving behind */
.analysis-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(91, 138, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.analysis-feature-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.analysis-feature-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.analysis-feature-list {
    position: relative;
    z-index: 1;
}

.analysis-feature-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(91, 138, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(91, 138, 255, 0.1);
}

/* Dynamic list items */
.analysis-feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.analysis-feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #5b8aff;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.analysis-feature-card:hover .analysis-feature-list li:hover {
    transform: translateX(5px);
    color: #fff;
}

/* --- DUAL VIDEO SHOWCASE --- */
.dual-video-showcase {
    padding: 60px 40px;
    /* Full width section */
    position: relative;
    z-index: 10;
}

.dual-video__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    /* Center the grid but allow full width */
}

.dual-video__card {
    background: rgba(13, 16, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 450px;
    /* Define frame height for video to fill */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dual-video__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(91, 138, 255, 0.2);
    border-color: rgba(91, 138, 255, 0.3);
}

.dual-video__header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.dual-video__dots {
    display: flex;
    gap: 6px;
}

.dual-video__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dual-video__dots span:nth-child(1) {
    background: #ff5f56;
}

.dual-video__dots span:nth-child(2) {
    background: #ffbd2e;
}

.dual-video__dots span:nth-child(3) {
    background: #27c93f;
}

.dual-video__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dual-video__media {
    width: 100%;
    flex: 1;
    /* Take all available space in flex container */
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    /* Match card border radius */
}

.dual-video__media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover will crop parts of video to fill frame - no gray bands */
}

/* Placeholder UI styling */
.placeholder-ui {
    width: 100%;
    height: 100%;
    background: #0f1220;
    padding: 20px;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: 40px 1fr;
    gap: 15px;
    box-sizing: border-box;
}

.ui-sidebar {
    grid-row: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ui-header {
    grid-column: 2;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 60%;
}

.ui-content-grid {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(40px, auto);
    gap: 10px;
}

.ui-box {
    background: rgba(91, 138, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(91, 138, 255, 0.1);
}

.ui-box.wide {
    grid-column: 1 / -1;
    background: rgba(91, 138, 255, 0.05);
    height: 100%;
}

.ui-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 9, 16, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(91, 138, 255, 0.3);
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    z-index: 5;
}

@media (max-width: 768px) {
    .dual-video__container {
        grid-template-columns: 1fr;
    }
}

.analysis-feature-card:hover .analysis-feature-list li:hover::before {
    transform: translateX(3px);
    color: #9b6bff;
}

/* --- STANDARDIZED CARD CTA --- */
.card-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    /* Ensure enough height for 2 lines and uniformity */
    margin-top: auto;
    width: 100%;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    text-align: center;
    line-height: 1.3;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.card-cta.btn {
    /* Override specific btn styles if needed, but min-height does the job */
    height: auto !important;
}

/* Fix for Disabled Buttons in Light Theme */
.card-cta--disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: default;
}

.bg-white-theme .card-cta--disabled {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5) !important;
}

/* --- RESPONSIVE NAVIGATION & DROPDOWN --- */

/* Hamburger Button (Desktop: Hidden, Mobile: Visible) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
    pointer-events: auto;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation when Active */
.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown Container */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    /* Ensure hover works well */
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8em;
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 16, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    /* Override hidden native if needed */
    flex-direction: column;
    gap: 5px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    display: block;
    text-align: left;
}

.dropdown-menu a:hover {
    background: rgba(91, 138, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

/* --- MOBILE STYLES --- */
@media (max-width: 900px) {
    .hamburger-btn {
        display: block;
        position: absolute;
        /* Force positioning to avoid flex centering if any */
        right: 20px;
        /* Moved to right side as per user request */
        top: 24px;
        /* Adjust based on header height vertical align */
        z-index: 1002;
        /* Ensure above menu overlay */
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #0f172a;
        /* Solid dark color */
        display: flex !important;
        /* Start items from top to prevent pushing them off-screen when dropdown expands */
        justify-content: flex-start;
        flex-direction: column;
        /* Center items horizontally */
        align-items: center;
        gap: 0;
        /* Add top padding to clear the hamburger button and header area */
        padding: 100px 20px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        pointer-events: auto;
        visibility: visible !important;
        overflow-y: auto;

        /* Reset Desktop Styles */
        border-radius: 0 !important;
        border: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .global-nav.is-open {
        transform: translateX(0) !important;
    }

    /* Hide floating demo when menu is open */
    body.mobile-menu-open .floating-demo {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    /* Mobile Menu Items - Big & Bold */
    .global-nav a:not(.dropdown-item),
    .dropdown-toggle {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: #fff;
        text-decoration: none;
        position: relative;
        padding: 15px 0;
        /* Consistent padding */
        margin: 0;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separators */
    }

    .nav-item.dropdown>.dropdown-toggle {
        border-bottom: none;
        /* No border for the toggle itself if it has a menu */
    }

    /* Mobile Dropdown Styling */
    .nav-item.dropdown {
        width: 100%;
        height: auto !important;
        /* Fix desktop override */
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        /* Reset margins */
    }

    .dropdown-menu {
        position: static;
        /* Override desktop absolute positioning */
        transform: none;
        /* Remove desktop transforms */
        margin-top: 0;
        padding: 0;
        display: none;
        /* Hidden by default */
        text-align: center;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        /* Darker background for nested items */
        opacity: 1;
        /* Override desktop opacity */
        visibility: visible;
        /* Override desktop visibility */
        box-shadow: none;
        /* Remove desktop shadow */
        border: none;
        /* Remove desktop border */
        border-radius: 0;
        /* Remove desktop border-radius */
        backdrop-filter: none;
        /* Remove desktop backdrop filter */
    }

    /* Open state for mobile dropdown */
    .nav-item.dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu a {
        font-family: var(--font-body);
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.6);
        padding: 15px 0;
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Disable desktop hover effects on mobile */
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        transform: none;
        /* Disable the translateX shift on mobile */
    }
}


/* --- SPACING OPTIMIZATION --- */
section,
.focus-section,
.science,
.guide-section,
.forces,
.pricing {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.why-goodspeak {
    padding-top: 10px !important;
    /* Drastically reduced from 60px */
    padding-bottom: 60px !important;
}

.hero {
    padding-top: 120px !important;
}

/* --- CONVERSATION FLOW VISUAL --- */
.conversation-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(76, 217, 100, 0.05), rgba(7, 9, 18, 0.4));
    border: 1px solid rgba(76, 217, 100, 0.2);
    border-radius: 20px;
    height: 100%;
    min-height: 300px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.flow-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.flow-bubble.user {
    align-self: flex-end;
    background: rgba(91, 138, 255, 0.2);
    border-bottom-right-radius: 4px;
    color: #fff;
    border: 1px solid rgba(91, 138, 255, 0.1);
    animation-delay: 0.2s;
}

.flow-bubble.ai {
    align-self: flex-start;
    background: rgba(76, 217, 100, 0.15);
    border-bottom-left-radius: 4px;
    color: #fff;
    border: 1px solid rgba(76, 217, 100, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation-delay: 1.5s;
    /* Delay for AI response */
}

.flow-bubble.delayed {
    animation-delay: 3s;
}

.ai-avatar {
    width: 24px;
    height: 24px;
    background: #4cd964;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: #000;
    flex-shrink: 0;
}

.flow-status {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4cd964;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(76, 217, 100, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 217, 100, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 217, 100, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 217, 100, 0);
    }
}

/* Alternating Background Themes */

/* Navy Theme (Dark Blue) */
.bg-navy-theme {
    background: #0f172a !important;
    /* Slate 900 */
    color: #f8fafc !important;
    position: relative;
    z-index: 5;
}

.bg-navy-theme .benefit-card,
.bg-navy-theme .hybrid-card,
.bg-navy-theme .force-card,
.bg-navy-theme .custom-program__card {
    background: rgba(30, 41, 59, 0.5) !important;
    /* Slate 800 with opacity */
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

/* Ensure hybrid-stat is cyan in navy theme */
.bg-navy-theme .hybrid-stat {
    color: #5b8aff !important;
    background: none !important;
    -webkit-text-fill-color: #5b8aff !important;
    text-shadow: 0 0 30px rgba(91, 138, 255, 0.5) !important;
}


/* White Theme - Solid & Sharp */
.bg-white-theme {
    background: #f8fafc !important;
    /* Solid Slate 50 */
    color: #0f172a !important;
    position: relative;
    z-index: 5;
}

/* Rounded Transition Utility */
/* Gradient Fade Utilities */

/* Fade into Navy Section (from White/Light) */
/* Fade into Navy Section (from White/Light) */
.fade-to-navy {
    position: relative;
    margin-top: 0;
    padding-top: 80px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Optional sharp divider */
}

.fade-to-navy::before {
    display: none;
}

/* Fade into White Section (from Navy) */
.fade-to-white {
    position: relative;
    margin-top: 0;
    padding-top: 80px !important;
}

.fade-to-white::before {
    display: none;
}

.bg-white-theme h2,
.bg-white-theme h3,
.bg-white-theme h4,
.bg-white-theme strong,
.bg-white-theme .benefits-title,
.bg-white-theme .hybrid-rotator__title,
.bg-white-theme .focus-title,
.bg-white-theme .hybrid-context,
.bg-white-theme .science__stats h3,
.bg-white-theme .guide-content h2,
.bg-white-theme .guide-content h3,
.bg-white-theme .custom-program__text h2 {
    color: #0f172a !important;
}

.bg-white-theme p,
.bg-white-theme li,
.bg-white-theme .focus-text,
.bg-white-theme .hybrid-desc,
.bg-white-theme .science__stat,
.bg-white-theme .science__sub {
    color: #334155 !important;
    /* Slate 700 */
}

/* Override card styles for white theme */
.bg-white-theme .benefit-card,
.bg-white-theme .hybrid-card,
.bg-white-theme .force-card,
.bg-white-theme .analysis-feature-card,
.bg-white-theme .custom-program__card,
.bg-white-theme .guide-card,
.bg-white-theme .science-testimonial {
    background: #ffffff !important;
    /* Clean white for cards */
    color: #0f172a !important;
    /* Slate 50 */
    border: 1px solid #e2e8f0 !important;
    /* Slate 200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.bg-white-theme .custom-program__card {
    color: #0f172a !important;
    font-weight: 600;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

/* Fix visibility for Hybrid Rotator in White Theme */
.bg-white-theme .hybrid-rotator {
    background: rgba(15, 23, 42, 0.95) !important;
    /* Dark navy background to match title block */
    border: 1px solid rgba(52, 216, 255, 0.2) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.bg-white-theme .hybrid-rotator__title {
    color: #34d8ff !important;
    /* Keep cyan on white background */
}

.bg-white-theme .hybrid-stat {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
}

/* Exception: hybrid-rotator cards are WHITE on blue background */
.bg-white-theme .hybrid-rotator .hybrid-card {
    background: #ffffff !important;
    /* Pure white cards */
    border: 1px solid rgba(91, 138, 255, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Keep navy stats in hybrid-rotator on white cards */
.bg-white-theme .hybrid-rotator .hybrid-stat {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    /* No glow on white background */
}

.bg-white-theme .hybrid-rotator .hybrid-context {
    color: #0f172a !important;
    /* Dark text on white card */
}

.bg-white-theme .hybrid-rotator .hybrid-desc {
    color: #64748b !important;
    /* Gray text on white card */
}


.bg-white-theme .hybrid-context {
    color: #0f172a !important;
}

.bg-white-theme .hybrid-desc {
    color: #475569 !important;
}

.bg-white-theme .hybrid-nav__btn {
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

.bg-white-theme .hybrid-nav__btn:hover {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: #eff6ff !important;
}

.bg-white-theme .hybrid-nav__dot {
    background: #cbd5e1 !important;
}

.bg-white-theme .hybrid-nav__dot.is-active {
    background: #3b82f6 !important;
}

.bg-white-theme .benefit-card h3,
.bg-white-theme .hybrid-card .hybrid-context,
.bg-white-theme .force-card h3 {
    color: #0f172a !important;
}

.bg-white-theme .benefit-card p,
.bg-white-theme .hybrid-card p,
.bg-white-theme .force-card p {
    color: #475569 !important;
}

.bg-white-theme .hybrid-stat {
    /* Keep gradient or adjust? Gradient on white looks okay */
    text-shadow: none !important;
}

/* Buttons in white theme */
.bg-white-theme .btn--ghost {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background: transparent !important;
}

.bg-white-theme .btn--ghost:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* Special handling for Force Badges in white theme */
.bg-white-theme .force-badge {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* Fix lists in white theme */


.bg-white-theme .focus-list li {
    color: #334155 !important;
}

/* GLOBAL LIST ALIGNMENT - DEFINITIVE FIX */
.focus-list li,
.force-card ul li,
.analysis-feature-list li {
    display: flex !important;
    align-items: baseline !important;
    /* Use baseline for perfect alignment */
    gap: 12px !important;
    line-height: 1.6 !important;
}

.focus-list li::before {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: var(--color-accent) !important;
    margin-top: 0.45em !important;
    /* Fine-tuned for perfect alignment */
    flex-shrink: 0 !important;
    display: inline-block !important;
    position: relative !important;
    top: -0.1em !important;
    /* Micro-adjustment */
}

/* Ensure strong tags don't break alignment */
.focus-list li strong {
    display: inline;
    line-height: inherit;
}

/* Analysis feature lists */
.analysis-feature-list li::before {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: var(--color-accent) !important;
    margin-top: 0.45em !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    position: relative !important;
    top: -0.1em !important;
}

/* Force card lists alignment */
.force-card ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.force-card ul li {
    position: relative;
    padding-left: 24px !important;
    margin-bottom: 12px;
}

.force-card ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* Fix testimonial visibility in white theme */
.bg-white-theme .science-testimonial__author strong {
    color: #0f172a !important;
}

.bg-white-theme .science-testimonial__author span {
    color: #64748b !important;
}

/* Adjust Macbook/Visuals in white theme backgrounds */
.bg-white-theme .focus-mode__visual video {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Custom Horizontal Program Card */
.pricing-card.is-custom {
    grid-column: 1 / -1;
    /* Span full width on desktop */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    background: rgba(91, 138, 255, 0.05);
    border: 1px solid rgba(91, 138, 255, 0.2);
    text-align: left;
    max-width: 100%;
}

.pricing-card.is-custom .pricing-card__include {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    justify-content: flex-start;
}

.pricing-card.is-custom h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
}

@media (max-width: 900px) {
    .pricing-card.is-custom {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }
}

/* Mobile Pricing Carousel */
@media (max-width: 900px) {
    .pricing__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        justify-content: flex-start !important;
        gap: 20px;
        padding-bottom: 30px;
        /* Space for scroll and touch */
        width: 100%;
        /* Ensure it takes full available width */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    /* Hide scrollbar for cleaner look */
    .pricing__grid::-webkit-scrollbar {
        height: 6px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .pricing__grid::-webkit-scrollbar-thumb {
        background: rgba(91, 138, 255, 0.3);
        border-radius: 4px;
    }

    .pricing-card {
        flex: 0 0 88vw !important;
        /* Slightly less than full width to show peek of next card */
        width: 88vw !important;
        max-width: 400px !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
    }

    /* Optional: Center the snap points better if there's padding on the container */
    .pricing__grid::after {
        content: '';
        flex: 0 0 20px;
        /* Spacer at the end */
    }
}