:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Accent colors */
    --accent-primary: #ff6b6b;
    --accent-green: #22c55e;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --accent-red: #ef4444;

    /* Borders & shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --nav-height: 64px;
    --section-padding: 120px;

    /* Cube */
    --cube-size: 320px;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-toggle:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-btn {
    background: var(--accent-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 40px;
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.title-line.accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ========================================
   Scroll Indicator
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ========================================
   Scroll-Driven Cube Section
   ======================================== */
.cube-section {
    position: relative;
}

.cube-scroll-container {
    position: relative;
}

.cube-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    gap: 40px;
}

/* Firefox fix - use fixed positioning */
.firefox .cube-viewport {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.firefox .cube-viewport.visible {
    opacity: 1;
    pointer-events: auto;
}

.firefox .cube-scroll-container {
    min-height: 400vh;
}


.cube-area {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    /* Prevent children from stretching in Firefox */
    align-self: center;
    min-width: 0;
    min-height: 0;
}

/* Progress Indicator */
.cube-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.progress-track {
    width: 2px;
    height: 200px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.progress-dots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* 3D Cube */
.cube-container {
    width: var(--cube-size);
    height: var(--cube-size);
    position: relative;
    perspective: 1000px;
}

/* Cube in hero state */
.cube-container.in-hero {
    position: fixed;
    z-index: 100;
    pointer-events: none;
}

.cube-container.in-hero .cube {
    transform: rotateX(-15deg) rotateY(-20deg);
}

.cube-container.in-hero .cube-face {
    opacity: 0.7;
}

.cube-container.in-hero .cube-face.active {
    opacity: 1;
}

.cube {
    width: var(--cube-size);
    height: var(--cube-size);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(0deg);
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.cube-face {
    position: absolute;
    width: var(--cube-size);
    height: var(--cube-size);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: visible;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 10, 15, 0.85);
    opacity: 0.5;
    transition: opacity 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    will-change: transform, opacity;
}

/* Firefox fix for blurry 3D transform edges and aspect ratio */
@-moz-document url-prefix() {
    .cube-face {
        outline: 1px solid transparent;
        filter: blur(0);
    }

    /* Prevent cube stretching in Firefox */
    .cube-container {
        width: var(--cube-size) !important;
        height: var(--cube-size) !important;
        min-width: var(--cube-size) !important;
        min-height: var(--cube-size) !important;
        max-width: var(--cube-size) !important;
        max-height: var(--cube-size) !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .cube {
        width: var(--cube-size) !important;
        height: var(--cube-size) !important;
        min-width: var(--cube-size) !important;
        min-height: var(--cube-size) !important;
        max-width: var(--cube-size) !important;
        max-height: var(--cube-size) !important;
    }

    .cube-face {
        width: var(--cube-size) !important;
        height: var(--cube-size) !important;
        min-width: var(--cube-size) !important;
        min-height: var(--cube-size) !important;
        max-width: var(--cube-size) !important;
        max-height: var(--cube-size) !important;
    }

    .cube-area {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto !important;
        flex-grow: 0 !important;
        align-self: center !important;
    }

    /* Ensure viewport doesn't stretch cube */
    .cube-viewport {
        align-items: center;
        align-content: center;
    }
}

.cube-face.active {
    opacity: 1;
    border: 2px solid;
}

.cube-face .face-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.cube-face.active .face-content {
    color: inherit;
}

.cube-face .face-content svg {
    width: 64px;
    height: 64px;
}

.cube-face .face-content span {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Cube face positioning */
.cube-face.front {
    transform: translateZ(calc(var(--cube-size) / 2));
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

/* Face color variations - only visible when active */
.cube-face.front.active {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-color: var(--accent-primary);
}

.cube-face.front .face-content {
    color: var(--accent-primary);
}

.cube-face.back.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: var(--accent-green);
}

.cube-face.back .face-content {
    color: var(--accent-green);
}

.cube-face.right.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-color: var(--accent-cyan);
}

.cube-face.right .face-content {
    color: var(--accent-cyan);
}

.cube-face.left.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: var(--accent-purple);
}

.cube-face.left .face-content {
    color: var(--accent-purple);
}

.cube-face.top.active {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-color: var(--accent-orange);
}

.cube-face.top .face-content {
    color: var(--accent-orange);
}

.cube-face.bottom.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: var(--accent-red);
}

.cube-face.bottom .face-content {
    color: var(--accent-red);
}

/* Info Panels */
.info-panels {
    position: relative;
    width: 100%;
    max-width: 450px;
    min-height: 500px;
    z-index: 10;
}

.info-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.info-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.panel-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -20px;
}

.panel-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-primary);
}

.panel-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.panel-features {
    list-style: none;
}

.panel-features li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.panel-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.6;
}

/* Scroll Triggers */
.scroll-triggers {
    position: relative;
}

.scroll-trigger {
    height: 60vh;
}

/* ========================================
   Lightbox Modal
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Make showcase images clickable */
.showcase-gallery .gallery-slide img,
.showcase-image img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.showcase-gallery .gallery-slide img:hover,
.showcase-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* ========================================
   Section Divider
   ======================================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 24px;
    background: var(--bg-primary);
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.divider-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.divider-icon svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   AI Adoption Section
   ======================================== */
.ai-adoption {
    padding: 120px 24px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.ai-adoption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ai-adoption-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ai-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    opacity: 0;
}

.ai-adoption-text h2,
.ai-lead,
.ai-point {
    opacity: 0;
}

.ai-adoption-visual {
    opacity: 0;
}

.ai-adoption-text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.ai-adoption-text h2 .accent {
    color: var(--accent-primary);
}

.ai-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 540px;
}

.ai-points {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ai-point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ai-point-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.ai-point-icon svg {
    width: 24px;
    height: 24px;
}

.ai-point-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ai-point-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ai-adoption-visual {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ai-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.ai-stat:hover {
    border-color: var(--border-hover);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-primary);
    min-width: 90px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-quote {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 107, 107, 0.02) 100%);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 28px 32px;
    position: relative;
}

.ai-quote::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 64px;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.3;
    line-height: 1;
    font-family: Georgia, serif;
}

.ai-quote p {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
    font-style: italic;
    padding-left: 24px;
}

/* AI Adoption Responsive */
@media (max-width: 1024px) {
    .ai-adoption-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ai-adoption-text h2 {
        font-size: 40px;
    }

    .ai-lead {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ai-adoption {
        padding: 80px 24px;
    }

    .ai-adoption-text h2 {
        font-size: 32px;
    }

    .ai-lead {
        font-size: 16px;
    }

    .ai-point {
        flex-direction: column;
        gap: 12px;
    }

    .ai-stat {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stat-number {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ai-adoption-text h2 {
        font-size: 28px;
    }

    .ai-quote {
        padding: 24px 20px;
    }

    .ai-quote::before {
        font-size: 48px;
        left: 12px;
    }

    .ai-quote p {
        padding-left: 16px;
        font-size: 15px;
    }
}

/* ========================================
   Product Showcase Section
   ======================================== */
.product-showcase {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.product-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
}

.showcase-header {
    text-align: center;
    margin-bottom: 100px;
    padding: 0 24px;
}

.showcase-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.showcase-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
}

.showcase-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

/* Showcase Item */
.showcase-item {
    padding: 160px 5%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item:nth-child(even) {
    background: var(--bg-secondary);
}

.showcase-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 100px;
    align-items: center;
    width: 100%;
}

.showcase-item.reverse .showcase-content {
    grid-template-columns: 1.6fr 1fr;
}

/* Smaller images for reports section */
.showcase-item[data-showcase="8"] .showcase-content {
    max-width: 1400px;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.showcase-item[data-showcase="8"].reverse .showcase-content {
    grid-template-columns: 1.2fr 1fr;
}

.showcase-item.reverse .showcase-text {
    order: 2;
}

.showcase-item.reverse .showcase-visual {
    order: 1;
}

/* Showcase Text */
.showcase-text {
    position: relative;
}

.showcase-number {
    font-size: 120px;
    font-weight: 800;
    color: var(--accent-primary);
    opacity: 0.08;
    position: absolute;
    top: -60px;
    left: -20px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.showcase-text h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    position: relative;
}

.showcase-text p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.showcase-features {
    list-style: none;
    display: grid;
    gap: 12px;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.showcase-features li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.showcase-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Showcase Visual */
.showcase-visual {
    position: relative;
}

/* Single Image */
.showcase-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.image-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

/* Image Gallery */
.showcase-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.gallery-track {
    position: relative;
    width: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.gallery-slide:first-child {
    position: relative;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Auto-play indicator */
.showcase-gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-primary);
    width: 0%;
    transition: width 4s linear;
}

.showcase-gallery.playing::after {
    width: 100%;
}

/* Responsive Showcase */
@media (max-width: 1200px) {
    .showcase-content {
        gap: 60px;
        grid-template-columns: 1fr 1.4fr;
    }

    .showcase-item.reverse .showcase-content {
        grid-template-columns: 1.4fr 1fr;
    }

    .showcase-item[data-showcase="8"] .showcase-content,
    .showcase-item[data-showcase="8"].reverse .showcase-content {
        grid-template-columns: 1fr 1.2fr;
    }

    .showcase-item[data-showcase="8"].reverse .showcase-content {
        grid-template-columns: 1.2fr 1fr;
    }

    .showcase-text h3 {
        font-size: 32px;
    }

    .showcase-number {
        font-size: 100px;
    }
}

@media (max-width: 1024px) {

    .showcase-content,
    .showcase-item.reverse .showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-item.reverse .showcase-text,
    .showcase-item.reverse .showcase-visual {
        order: unset;
    }

    .showcase-text {
        text-align: center;
    }

    .showcase-number {
        left: 50%;
        transform: translateX(-50%);
    }

    .showcase-features {
        max-width: 500px;
        margin: 0 auto;
    }

    .showcase-features li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 80px 0;
    }

    .showcase-header {
        margin-bottom: 60px;
    }

    .showcase-title {
        font-size: 36px;
    }

    .showcase-item {
        padding: 80px 5%;
        min-height: auto;
    }

    .showcase-text h3 {
        font-size: 28px;
    }

    .showcase-number {
        font-size: 80px;
        top: -40px;
    }

    .showcase-features li {
        padding: 10px 14px;
        font-size: 14px;
    }

    .gallery-dots {
        bottom: 12px;
        padding: 6px 12px;
    }

    .gallery-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .showcase-title {
        font-size: 28px;
    }

    .showcase-text h3 {
        font-size: 24px;
    }

    .showcase-number {
        font-size: 60px;
        top: -30px;
    }
}

/* ========================================
   Installation Section
   ======================================== */
.installation {
    padding: var(--section-padding) 24px;
    background: var(--bg-primary);
}

.installation .section-header {
    margin-bottom: 60px;
}

.installation-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.installation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.installation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.installation-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.installation-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.installation-badge.badge-primary {
    background: var(--accent-primary);
}

.installation-badge.badge-cyan {
    background: var(--accent-cyan);
}

.installation-visual {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.installation-diagram {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.installation-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.installation-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.installation-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.installation-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.installation-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-green);
}

/* Responsive Installation */
@media (max-width: 1024px) {
    .installation-grid {
        gap: 32px;
    }

    .installation-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .installation-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .installation-card {
        padding: 32px 24px;
    }

    .installation-visual {
        min-height: 280px;
    }

    .installation-diagram {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .installation-details h3 {
        font-size: 20px;
    }

    .installation-visual {
        min-height: 200px;
    }

    .installation-diagram {
        max-width: 320px;
    }
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.pricing .section-header {
    margin-bottom: 60px;
}

.pricing-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.pricing-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.02) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.pricing-card.featured:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.15);
}

.pricing-badge-card {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-card.featured .price-amount {
    color: var(--accent-primary);
}

.price-period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-description {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pricing-features li.included svg {
    color: var(--accent-green);
}

.pricing-features li.included.highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-card.featured .pricing-features li.included svg {
    color: var(--accent-primary);
}

.pricing-card.featured .pricing-features li {
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-features li.included.highlight svg {
    color: var(--accent-primary);
}

.pricing-features li.excluded {
    color: var(--text-muted);
    opacity: 0.6;
}

.pricing-features li.excluded svg {
    color: var(--text-muted);
}

.pricing-footer {
    text-align: center;
    margin-top: auto;
}

.pricing-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-card.featured {
        order: -1;
    }
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding) 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-icon.accent-cyan {
    color: var(--accent-cyan);
}

.feature-icon.accent-purple {
    color: var(--accent-purple);
}

.feature-icon.accent-orange {
    color: var(--accent-orange);
}

.feature-icon.accent-red {
    color: var(--accent-red);
}

.feature-icon.accent-green {
    color: var(--accent-green);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Architecture Section
   ======================================== */
.architecture {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.arch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.arch-visual {
    position: relative;
    height: 400px;
}

.arch-node {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.arch-node svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.arch-node.central {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-color: rgba(255, 107, 107, 0.3);
    font-weight: 600;
}

.arch-node.node-1 {
    left: 10%;
    top: 10%;
}

.arch-node.node-2 {
    right: 10%;
    top: 10%;
}

.arch-node.node-3 {
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
}

.connection-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.conn-line {
    stroke: var(--accent-primary);
    stroke-width: 1;
    stroke-dasharray: 8 4;
    opacity: 0.3;
}

.arch-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.arch-card:hover {
    border-color: var(--border-hover);
}

.arch-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.arch-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Agentic Workflow Section
   ======================================== */
.agentic-workflow {
    padding: var(--section-padding) 24px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.agentic-workflow::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.workflow-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.workflow-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

/* Workflow Diagram */
.workflow-diagram {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr 1fr 0.8fr;
    gap: 24px;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.workflow-phase {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.phase-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 8px;
}

/* Workflow Nodes */
.workflow-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.workflow-node:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.workflow-node svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.workflow-node span {
    white-space: nowrap;
}

/* Central Nodes (Planner, Supervisor & Agent) */
.workflow-node.central {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    min-width: 200px;
}

.workflow-node.central .node-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-node.central .node-icon svg {
    width: 100%;
    height: 100%;
}

.workflow-node.central .node-details {
    text-align: center;
}

.workflow-node.central .node-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.workflow-node.central .node-tasks {
    list-style: none;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workflow-node.central .node-tasks li {
    padding: 4px 0;
    position: relative;
}

.workflow-node.central .node-tasks li::before {
    content: '→';
    margin-right: 8px;
    opacity: 0.5;
}

/* Node Color Variations */
.node-start {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.node-start svg {
    color: var(--accent-green);
}

.node-crawl,
.node-scan {
    border-color: rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.node-crawl svg,
.node-scan svg {
    color: var(--accent-cyan);
}

.node-src,
.node-vdb {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.02) 100%);
}

.node-src svg,
.node-vdb svg {
    color: var(--accent-purple);
}

.node-supervisor {
    border-color: rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.03) 100%);
}

.node-supervisor .node-icon svg {
    color: var(--accent-primary);
}

/* Planner Node - works with Supervisor per phase */
.node-planner {
    border-color: rgba(234, 179, 8, 0.4);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.03) 100%);
}

.node-planner .node-icon svg {
    color: #eab308;
}

.orchestration-nodes {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.orchestration-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
}

.orchestration-connector svg {
    width: 40px;
    height: 24px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Planner card icon style for workflow info cards */
.workflow-card-icon.planner-icon {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.node-agent {
    border-color: rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.node-agent .node-icon svg {
    color: var(--accent-orange);
}

.node-batch,
.node-hitl,
.node-report,
.node-cve,
.node-summary {
    font-size: 12px;
    padding: 12px 16px;
    min-width: auto;
}

.node-batch svg,
.node-summary svg {
    color: var(--accent-cyan);
}

.node-hitl svg {
    color: var(--accent-purple);
}

.node-report svg {
    color: var(--accent-green);
}

.node-cve svg {
    color: var(--accent-orange);
}

.node-end {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.03) 100%);
}

.node-end svg {
    color: var(--accent-green);
}

/* Entry Phase Layout */
.phase-entry {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-branches {
    display: flex;
    gap: 12px;
}

/* Subworkflows Grid */
.subworkflow-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Workflow Connections (Hidden on smaller screens) */
.workflow-connections {
    display: none;
}

/* Workflow Info Cards */
.workflow-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.workflow-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.workflow-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
}

.workflow-card-icon svg {
    width: 24px;
    height: 24px;
}

.workflow-card-icon.supervisor-icon {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.2);
    color: var(--accent-primary);
}

.workflow-card-icon.agent-icon {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

.workflow-card-icon.hitl-icon {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

.workflow-card-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.workflow-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive Workflow */
@media (max-width: 1200px) {
    .workflow-diagram {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .phase-entry {
        grid-column: 1;
    }

    .phase-supervisor {
        grid-column: 2;
    }

    .phase-agent {
        grid-column: 3;
    }

    .phase-subworkflows {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
    }

    .phase-complete {
        grid-column: 1 / -1;
    }

    .subworkflow-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .workflow-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .workflow-diagram {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .phase-entry {
        grid-column: 1;
        grid-row: 1;
    }

    .phase-supervisor {
        grid-column: 2;
        grid-row: 1;
    }

    .phase-agent {
        grid-column: 1;
        grid-row: 2;
    }

    .phase-subworkflows {
        grid-column: 2;
        grid-row: 2;
    }

    .phase-complete {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .workflow-content {
        gap: 60px;
    }

    .workflow-node.central {
        min-width: 160px;
        padding: 20px;
    }

    .workflow-node.central .node-title {
        font-size: 15px;
    }

    .workflow-node.central .node-tasks {
        font-size: 11px;
    }

    .orchestration-nodes {
        gap: 12px;
    }

    .orchestration-connector {
        width: 30px;
    }
}

@media (max-width: 768px) {
    .agentic-workflow {
        padding: 80px 16px;
    }

    .workflow-content {
        gap: 48px;
    }

    .workflow-diagram {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .phase-entry,
    .phase-supervisor,
    .phase-agent,
    .phase-subworkflows,
    .phase-complete {
        grid-column: 1;
        grid-row: auto;
        align-items: center;
        width: 100%;
    }

    .entry-branches {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .subworkflow-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .workflow-node {
        min-width: auto;
        flex: 1 1 auto;
        max-width: 180px;
    }

    .workflow-node.central {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .orchestration-nodes {
        flex-direction: column;
        gap: 8px;
    }

    .orchestration-connector {
        transform: rotate(90deg);
        width: 30px;
        height: 20px;
    }

    .workflow-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .workflow-card {
        padding: 24px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .workflow-card-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .workflow-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .workflow-card-content h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .workflow-card-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .phase-label {
        font-size: 10px;
        padding: 5px 10px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .agentic-workflow {
        padding: 60px 12px;
    }

    .workflow-badge {
        font-size: 10px;
        padding: 6px 12px;
        letter-spacing: 1.5px;
    }

    .agentic-workflow .section-title {
        font-size: 26px;
    }

    .agentic-workflow .section-subtitle {
        font-size: 14px;
    }

    .workflow-diagram {
        gap: 20px;
    }

    .phase-label {
        font-size: 9px;
        padding: 4px 8px;
    }

    .entry-branches {
        flex-direction: column;
        align-items: center;
    }

    .workflow-node {
        font-size: 11px;
        padding: 10px 14px;
        max-width: 160px;
        width: 100%;
    }

    .workflow-node svg {
        width: 18px;
        height: 18px;
    }

    .workflow-node.central {
        padding: 18px;
        max-width: 260px;
    }

    .workflow-node.central .node-icon {
        width: 40px;
        height: 40px;
    }

    .workflow-node.central .node-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .workflow-node.central .node-tasks {
        font-size: 10px;
        gap: 4px;
    }

    .workflow-node.central .node-tasks li::before {
        margin-right: 6px;
    }

    .subworkflow-grid {
        gap: 6px;
    }

    .orchestration-connector {
        width: 24px;
        height: 16px;
    }

    .node-batch,
    .node-hitl,
    .node-report,
    .node-cve,
    .node-summary {
        padding: 10px 12px;
        font-size: 10px;
    }

    .node-batch svg,
    .node-hitl svg,
    .node-report svg,
    .node-cve svg,
    .node-summary svg {
        width: 16px;
        height: 16px;
    }

    .workflow-card {
        padding: 20px 16px;
        gap: 14px;
    }

    .workflow-card-icon {
        width: 40px;
        height: 40px;
    }

    .workflow-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .workflow-card-content h4 {
        font-size: 15px;
    }

    .workflow-card-content p {
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .agentic-workflow {
        padding: 50px 10px;
    }

    .agentic-workflow .section-title {
        font-size: 22px;
    }

    .workflow-node {
        padding: 8px 12px;
        font-size: 10px;
        max-width: 140px;
    }

    .workflow-node.central {
        padding: 16px;
        max-width: 220px;
    }

    .workflow-node.central .node-title {
        font-size: 13px;
    }

    .workflow-node.central .node-tasks {
        font-size: 9px;
    }

    .workflow-card {
        flex-direction: column;
        text-align: center;
        padding: 18px 14px;
    }

    .workflow-card-content h4 {
        font-size: 14px;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: var(--section-padding) 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-logo {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 24px;
    display: inline-block;
}

.cta-code code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.8;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .info-panels {
        right: 5%;
        width: 350px;
    }

    .cube-progress {
        left: 20px;
    }
}

@media (max-width: 1024px) {
    :root {
        --cube-size: 260px;
    }

    .hero-title {
        font-size: 48px;
    }

    .cube-viewport {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 20px;
        gap: 30px;
    }

    .cube-area {
        justify-content: center;
        min-height: auto;
        height: auto;
        padding: 20px 0;
    }

    /* Ensure cube maintains aspect ratio */
    .cube-container {
        width: var(--cube-size);
        height: var(--cube-size);
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }

    .cube,
    .cube-face {
        width: var(--cube-size);
        height: var(--cube-size);
    }

    .info-panels {
        width: 100%;
        max-width: 500px;
        text-align: center;
        position: relative;
        min-height: 300px;
    }

    .cube-progress {
        display: none;
    }

    .panel-number {
        font-size: 48px;
    }

    .panel-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .arch-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .arch-visual {
        order: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --cube-size: 200px;
    }

    /* Show hamburger menu button */
    .nav-toggle {
        display: flex;
    }

    /* Mobile navigation menu */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        transition: background 0.2s ease;
    }

    .nav-links .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-links .nav-btn {
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Cube viewport fixes for mobile - keep sticky for scroll animation */
    .cube-viewport {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 40px 16px;
        gap: 20px;
        overflow: visible;
    }

    .cube-scroll-container {
        min-height: 300vh;
    }

    .cube-area {
        padding: 20px 0;
        height: auto;
    }

    /* Ensure cube doesn't stretch */
    .cube-container {
        width: var(--cube-size);
        height: var(--cube-size);
        flex-shrink: 0;
    }

    .cube,
    .cube-face {
        width: var(--cube-size);
        height: var(--cube-size);
    }

    /* Info panels positioning for mobile */
    .info-panels {
        position: relative;
        min-height: 280px;
        max-width: 100%;
    }

    .info-panel {
        padding: 0 16px;
    }

    .panel-number {
        font-size: 40px;
        margin-bottom: -10px;
    }

    .panel-title {
        font-size: 28px;
    }

    .panel-description {
        font-size: 14px;
    }

    .panel-features li {
        text-align: left;
    }

    .cta h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --cube-size: 160px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .feature-card {
        padding: 24px;
    }

    /* Cube fixes for small screens */
    .cube-viewport {
        padding: 30px 12px;
    }

    .cube-container {
        width: var(--cube-size);
        height: var(--cube-size);
    }

    .cube,
    .cube-face {
        width: var(--cube-size);
        height: var(--cube-size);
    }

    .cube-face .face-content svg {
        width: 40px;
        height: 40px;
    }

    .cube-face .face-content span {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Info panels */
    .info-panels {
        min-height: 250px;
    }

    .panel-number {
        font-size: 32px;
    }

    .panel-title {
        font-size: 22px;
    }

    .panel-description {
        font-size: 13px;
    }

    .panel-features li {
        font-size: 12px;
        padding: 6px 0;
        padding-left: 20px;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .cube {
        transition: none;
    }
}