:root {
    --bg-base: #0b0c10;
    --bg-surface: rgba(26, 28, 35, 0.6);
    --text-main: #f8f9fa;
    --text-muted: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-stack: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f111a, #0b0c10, #1a1c23, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
   Splash Screen (Attract Mode)
   ========================================= */
#splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f111a 0%, #050508 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#splash-screen.active {
    opacity: 1;
    pointer-events: all;
}

.splash-content {
    text-align: center;
    z-index: 2;
}

.logo-glow {
    font-size: 5rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    animation: float 4s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
}

#splash-screen h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

#splash-screen p {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
}

.pulse-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.5);
    animation: pulse 2s infinite;
}

/* Splash Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: drift linear infinite;
}

/* =========================================
   Main App Layout
   ========================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 5rem; /* offset for sticky header */
    transition: filter 0.4s ease;
}

body.modal-open main {
    filter: blur(8px);
}

/* =========================================
   Sticky Header
   ========================================= */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand i {
    color: var(--accent-blue);
}

.header-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.nav-link.nav-cta {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.nav-link.nav-cta:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
    }
    .header-nav.open {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-link.nav-cta {
        margin-left: 0;
        justify-content: center;
    }
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--text-main);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.breadcrumb.hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.9rem;
}

.btn-back:hover {
    background: rgba(255,255,255,0.1);
}

.breadcrumb .path {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Funnel Views */
.funnel-view {
    display: none;
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.funnel-view.active {
    display: block;
}

/* Hero Section */
.hero-text {
    text-align: center;
    margin-bottom: 4rem;
    animation: viewIn 0.8s ease-out;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-text h2 span {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.manifesto-wrapper {
    max-width: 850px;
    margin: 2rem auto 0;
    padding: 2.5rem 1rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border-radius: 20px;
}

.manifesto-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #e2e8f0;
    font-weight: 300;
    letter-spacing: 0.02em;
    font-style: italic;
    margin-bottom: 1.5rem !important; /* override outer p */
    position: relative;
    z-index: 1;
}

.manifesto-text::before, .manifesto-text::after {
    content: '"';
    position: absolute;
    font-size: 6rem;
    color: rgba(255,255,255,0.03);
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1;
    z-index: 0;
}

.manifesto-text::before {
    top: -2rem;
    left: -2rem;
}

.manifesto-text::after {
    bottom: -4rem;
    right: -1rem;
}

.manifesto-brand {
    font-size: 1.6rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.05em;
    font-style: normal;
    text-transform: uppercase;
}

.manifesto-brand span {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* =========================================
   Animated Scenario Layout (Windows Pre/Post Login)
   ========================================= */
.scenario-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.scenario-anchor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
}

.anchor-orb {
    width: 80px;
    height: 80px;
    background: rgba(11, 12, 16, 0.95);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(255,255,255,0.1), inset 0 0 20px rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 2;
}

.anchor-orb::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.3);
    animation: rotateSweep 10s linear infinite;
}

.anchor-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    white-space: nowrap;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

@media (min-width: 900px) {
    .scenario-layout {
        flex-direction: row;
        align-items: stretch;
        position: relative;
    }
    
    .scenario-layout::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 20%;
        right: 20%;
        height: 2px;
        background: rgba(255,255,255,0.1);
        z-index: 0;
        transform: translateY(-50%);
    }
}

.scenario-card {
    flex: 1;
    background: rgba(11, 12, 16, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scenario-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(59, 130, 246, 0.05);
}

.scenario-card:hover .scenario-visual {
    background: rgba(255,255,255,0.05);
}

.scenario-visual {
    height: 180px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.02);
}

/* Badger Gate Visual - Lock & Phone Ping */
.visual-lock {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon {
    font-size: 3rem;
    color: #60a5fa;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.5));
}

.phone-icon {
    position: absolute;
    right: -60px;
    bottom: -20px;
    font-size: 2rem;
    color: #c084fc;
    z-index: 3;
    animation: floatPhone 3s ease-in-out infinite;
}

.ping-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #60a5fa;
    border-radius: 50%;
    opacity: 0;
    right: -40px;
    bottom: -10px;
    animation: sonarPing 2.5s infinite cubic-bezier(0, 0, 0.2, 1);
}

.ping-circle.delay {
    animation-delay: 1.25s;
}

/* Badger Guard Visual - Desktop Radar */
.visual-radar {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px dashed rgba(52, 211, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    font-size: 3rem;
    color: #34d399;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.5));
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(52, 211, 153, 0.4) 100%);
    animation: rotateSweep 4s linear infinite;
}

.data-particles i {
    position: absolute;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.4);
    animation: pulseParticle 2s infinite alternate;
}

.p-1 { top: 20px; left: 10px; animation-delay: 0s !important; }
.p-2 { bottom: 20px; right: 10px; animation-delay: 0.5s !important; }
.p-3 { top: 30px; right: 20px; animation-delay: 1s !important; }

/* Content Styles */
.scenario-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.scenario-badge.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.scenario-badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.scenario-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.scenario-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.scenario-card .play-indicator {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-card:hover .play-indicator i {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes sonarPing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

@keyframes rotateSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseParticle {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.8; color: #fff; }
}

.card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 45px rgba(59, 130, 246, 0.2);
    border-color: rgba(255,255,255,0.3);
}

.card:hover::before {
    left: 150%;
}

/* Coming Soon Cards */
.card[data-target="coming-soon"] {
    filter: grayscale(100%);
    cursor: default;
}

.card[data-target="coming-soon"]:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--glass-border);
}

.card[data-target="coming-soon"]:hover::before {
    left: -100%; /* disable shine effect */
}

.card[data-target="coming-soon"] h3,
.card[data-target="coming-soon"] p,
.card[data-target="coming-soon"] .play-indicator {
    opacity: 0.5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.card-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.card-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.card-icon.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.card:nth-child(2) h3 { color: #10b981; }
.card[data-target="view-demos-guardian"] h3,
.card[data-target="coming-soon"] h3,
.card[data-target*="guardian"] h3 { 
    color: var(--accent-purple); 
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.play-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.card:hover .play-indicator {
    opacity: 1;
    transform: translateX(5px);
}

/* =========================================
   Terminal Landing Pages (New Funnel View)
   ========================================= */
.landing-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s ease-out;
}

.landing-hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.landing-hero h2 span {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 900px) {
    .landing-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.landing-video {
    position: relative;
    z-index: 10;
    width: 100%;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.landing-video:hover {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.2);
    z-index: 50;
    border-color: rgba(59, 130, 246, 0.4);
}

.landing-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.landing-copy {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.feature-row {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.6; /* default slightly dimmed until active */
    transform: scale(0.98);
}

.feature-row:hover {
    transform: translateX(8px) scale(1.0);
    border-color: rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Real-time sync active state from main.js */
.feature-row.active {
    opacity: 1;
    transform: translateX(12px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.5); /* blue glow */
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2), inset 0 0 16px rgba(59, 130, 246, 0.1);
}

/* Fallback for sections not using the video sync script (like SSO/ZTNA with 'Coming Soon' videos) */
.landing-view:not(#gate-push):not(#gate-qr):not(#guardian-push):not(#guardian-qr) .feature-row {
    opacity: 1;
    transform: none;
}
.landing-view:not(#gate-push):not(#gate-qr):not(#guardian-push):not(#guardian-qr) .feature-row:hover {
    transform: translateX(8px);
}

.feature-row i {
    font-size: 1.75rem;
    margin-top: 0.25rem;
    transition: transform 0.4s ease;
}

.feature-row.active i {
    transform: scale(1.2) rotate(5deg);
}

.text-blue { color: #60a5fa; }
.text-green { color: #34d399; }
.text-purple { color: #c084fc; }
.text-red { color: #f87171; }

.feature-row h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.feature-row.active h4 {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* =========================================
   Rich Informational Modal
   ========================================= */
.rich-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.rich-modal.active {
    opacity: 1;
    pointer-events: all;
}

.rich-modal .modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rich-modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    z-index: 2;
    background: rgba(26, 28, 35, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rich-modal.active .rich-modal-content {
    transform: scale(1) translateY(0);
}

.rich-modal-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: float 4s ease-in-out infinite;
}

.rich-modal-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.rich-modal-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.close-rich-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-rich-modal:hover {
    color: #fff;
}

/* =========================================
   Virtual Assistant / Chat Bot
   ========================================= */
#assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 8000;
}

#assistant-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#assistant-toggle:hover {
    transform: scale(1.1);
}

#assistant-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: rgba(26, 28, 35, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#assistant-chat.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    padding: 1.25rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-weight: 600;
}

#close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

#close-chat:hover {
    color: #fff;
}

.chat-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
}

.message.system {
    background: rgba(59, 130, 246, 0.15);
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: var(--accent-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

#send-msg {
    background: var(--accent-blue);
    border: none;
    color: #fff;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#send-msg:hover {
    background: #2563eb;
}

/* =========================================
   Animations
   ========================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); }
    100% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8)); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes drift {
    from { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { transform: translateY(-10vh); opacity: 0; }
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* =========================================
   Video Context Sync Overlays
   ========================================= */

.video-overlay {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(20, 22, 30, 0.98);
    color: #fff;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-overlay.active {
    opacity: 1;
}

.feature-row {
    position: relative;
    overflow: hidden;
}

.feature-row.active {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transform: translateX(12px);
}

.feature-row.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #c084fc);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* =========================================
   Social Proof Bar (#6)
   ========================================= */
.social-proof {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.05); /* very subtle */
    border-radius: 16px;
    opacity: 1;
}

.proof-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 600;
}

.proof-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.proof-value {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.proof-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #93c5fd;
    background: linear-gradient(135deg, #93c5fd, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proof-suffix {
    font-size: 3.5rem;
    font-weight: 900;
    color: #c084fc;
    background: linear-gradient(135deg, #d8b4fe, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proof-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.proof-divider {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .proof-stats { gap: 2rem; }
    .proof-number, .proof-suffix { font-size: 2.5rem; }
    .proof-divider { display: none; }
    .proof-stat { gap: 1rem; }
}

/* =========================================
   CTA Buttons (#2 / #4)
   ========================================= */
.landing-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    animation: fadeUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.landing-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* =========================================
   Placeholder Visuals (#8)
   ========================================= */
.placeholder-hero {
    min-height: 300px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4) !important;
    border-radius: 16px;
    cursor: default;
}

.placeholder-hero:hover {
    transform: none;
}

.placeholder-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 30px currentColor);
    animation: float 4s ease-in-out infinite;
}

.placeholder-orbit {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.placeholder-orbit i {
    opacity: 0.4;
    animation: pulse 3s infinite;
}

.placeholder-orbit i:nth-child(1) { animation-delay: 0s; }
.placeholder-orbit i:nth-child(2) { animation-delay: 0.5s; }
.placeholder-orbit i:nth-child(3) { animation-delay: 1s; }
.placeholder-orbit i:nth-child(4) { animation-delay: 1.5s; }

.placeholder-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* =========================================
   Footer (#2)
   ========================================= */
#site-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-brand .brand {
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-brand p a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-brand p a:hover {
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-col h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--accent-blue);
}

/* =========================================
   Mobile Breadcrumb Truncation (#7)
   ========================================= */
@media (max-width: 768px) {
    .breadcrumb .path {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.75rem;
    }
    main {
        padding-top: 4.5rem;
    }
    .hero-text h2, .landing-hero h2 {
        font-size: 2rem;
    }
    .landing-cta { flex-direction: column; align-items: stretch; }
    .landing-cta a { text-align: center; justify-content: center; }
}

/* =========================================
   Scroll Reveal Animation (#5)
   ========================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Demo Form Modal
   ========================================= */
.demo-modal {
    max-width: 500px;
    padding: 3rem 2rem;
    background: rgba(11, 12, 16, 0.95);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 40px rgba(59, 130, 246, 0.1);
}

.demo-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Freaking Sweet Demo Form */
.floating-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.floating-group input {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59,130,246,0.05);
    background: rgba(10, 15, 30, 0.7);
}

.floating-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label {
    top: 0.6rem;
    font-size: 0.7rem;
    color: #93c5fd;
    transform: translateY(0);
}

.floating-group input:focus ~ label i,
.floating-group input:not(:placeholder-shown) ~ label i {
    font-size: 0.8rem;
}

.sweet-submit-btn {
    position: relative;
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    z-index: 1;
}

.sweet-submit-btn span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sweet-submit-btn .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.sweet-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.sweet-submit-btn:hover .btn-glow {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sweet-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success State */
#demo-success-state {
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}

#demo-success-state h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0 0.5rem;
    color: #fff;
}

#demo-success-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-icon-wrapper i {
    font-size: 4rem;
    color: #34d399;
    filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.4));
}

.hidden {
    display: none !important;
}

.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
