/* ================================================
   EXABEE LANDING PAGE - EXTERNAL STYLESHEET
   Updated: January 30, 2026
   ================================================ */

/* ================================================
   CSS VARIABLES & ROOT CONFIGURATION
   ================================================ */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #252525;
    --bg-card-hover: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --accent-red: #d94848;
    --accent-purple: #9b5de5;
    --accent-teal: #00bfa5;
    --accent-blue: #4d7aff;
    --border-color: rgba(255, 255, 255, 0.05);
    --auto-slide-interval: 5500; /* 5.5 seconds */
}

/* ================================================
   GLOBAL RESET & BASE STYLES
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Share Tech Mono", monospace;
    font-weight: 400;
    font-style: normal;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ================================================
   ACCESSIBILITY - REDUCED MOTION SUPPORT
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Logo Styling */
.logo-container {
    position: relative;
    display: inline-block;
    padding: 0px;
}

.logo-inner {
    background: var(--bg-primary);
    padding: 4px;
    display: flex;
    align-items: center;
}

.logo-container img {
    display: block;
    height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(217, 72, 72, 0.3);
    color: white;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

/* Vanta.js Background Container */
#vanta-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Loading Indicator for Vanta.js */
#vanta-background::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

#vanta-background.loaded::before {
    display: none;
}

@keyframes spin {
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

/* Dark Overlay for Text Readability */
.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(15, 15, 15, 0.4) 0%,
        rgba(15, 15, 15, 0.7) 50%,
        rgba(15, 15, 15, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Gradient Accents */
.hero-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(217, 72, 72, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155, 93, 229, 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 3rem;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.1));
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-content .btn {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero-content .btn-primary-custom {
    box-shadow: 
        0 8px 20px rgba(217, 72, 72, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary-custom:hover {
    box-shadow: 
        0 12px 30px rgba(217, 72, 72, 0.5),
        0 6px 15px rgba(0, 0, 0, 0.4);
}

/* ================================================
   INTERACTIVE TABS SECTION
   ================================================ */
.tabs-section {
    padding: 8rem 0;
    position: relative;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: all 0.3s;
}

/* Progress Bar Animation for Active Tab */
.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-red);
    transition: none;
}

.tab-button.active::after {
    width: 100%;
    transition: width 5s linear;
}

.tab-button:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab-button.active {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.tab-button.active.red::before {
    background: linear-gradient(90deg, var(--accent-blue), #ff6b6b);
}

.tab-button.active.red::after {
    background: linear-gradient(90deg, var(--accent-blue), #ff6b6b);
}

.tab-button.active.research::before {
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
}

.tab-button.active.research::after {
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
}

.tab-button.active.explore::before {
    background: linear-gradient(90deg, var(--accent-purple), #c77dff);
}

.tab-button.active.explore::after {
    background: linear-gradient(90deg, var(--accent-purple), #c77dff);
}

.tab-button.active.disrupt::before {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.tab-button.active.disrupt::after {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.tab-title strong {
    font-weight: 700;
}

.tab-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-icon {
    font-size: 0.9rem;
}

/* ================================================
   TAB CONTENT AREA
   ================================================ */
.tab-content-area {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
    touch-action: pan-y pinch-zoom;
}

.tab-content-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.tab-content-wrapper.active {
    display: block;
    animation: fadeInContent 0.5s ease-in-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.workflow-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}

.workflow-image-container:hover::before {
    opacity: 0.5;
}

.workflow-image, .workflow-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.workflow-image-container:hover .workflow-image,
.workflow-image-container:hover .workflow-video {
    transform: scale(1.05);
}

.workflow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.workflow-tooltip {
    position: absolute;
    background: rgba(50, 50, 50, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 200px;
    text-align: center;
    bottom: 2rem;
    right: 2rem;
}

.workflow-image-container:hover .workflow-tooltip {
    opacity: 1;
}

.workflow-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 3;
}

.workflow-image-container:hover .workflow-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Auto-Play Indicator */
.auto-play-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Video Error State */
.video-error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 2rem;
    text-align: center;
}

/* ================================================
   UNITS SECTION
   ================================================ */
.units-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.unit-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transition: all 0.3s;
}

.unit-card.red::before {
    background: linear-gradient(90deg, var(--accent-blue), #ff6b6b);
}

.unit-card.red:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(77, 122, 255, 0.3);
}

.unit-card.research::before {
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
}

.unit-card.research:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(217, 72, 72, 0.3);
}

.unit-card.explore::before {
    background: linear-gradient(90deg, var(--accent-purple), #c77dff);
}

.unit-card.explore:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(155, 93, 229, 0.3);
}

.unit-card.disrupt::before {
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
}

.unit-card.disrupt:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 191, 165, 0.3);
}

.unit-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.1;
    line-height: 1;
    margin-bottom: 1rem;
}

.unit-card.red .unit-number {
    color: var(--accent-blue);
}

.unit-card.research .unit-number {
    color: var(--accent-red);
}

.unit-card.explore .unit-number {
    color: var(--accent-purple);
}

.unit-card.disrupt .unit-number {
    color: var(--accent-teal);
}

.unit-mini-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.unit-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.unit-description-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.unit-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unit-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unit-features li::before {
    content: '→';
    font-weight: bold;
}

.unit-card.red .unit-features li::before {
    color: var(--accent-blue);
}

.unit-card.research .unit-features li::before {
    color: var(--accent-red);
}

.unit-card.explore .unit-features li::before {
    color: var(--accent-purple);
}

.unit-card.disrupt .unit-features li::before {
    color: var(--accent-teal);
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================================================
   ANIMATIONS
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tab-button {
        max-width: 100%;
    }

    .cta-title {
        font-size: 2rem;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .workflow-tooltip {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
        bottom: 1rem;
        right: 1rem;
    }

    .auto-play-indicator {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        bottom: 1rem;
        left: 1rem;
    }

    .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .tab-button {
        padding: 1rem 1.5rem;
    }

    .unit-card {
        padding: 2rem 1.5rem;
    }

    .btn-primary-custom {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-gradient-red {
    background: linear-gradient(135deg, var(--accent-red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent-purple), #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-teal {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn-primary-custom {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-title,
    .unit-title-main {
        color: black;
    }
}