body {
    overflow-x: hidden;
    background-color: #FAFAFA;
    margin: 0;
}

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

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

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

.animate-gradient {
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

/* --- Header Styles --- */
.glass-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform, background-color, width;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header-ghost-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.title-mask {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
}

/* --- Neural Grid Canvas --- */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Hero Section (Light Mode) --- */
#hero {
    position: relative;
    min-height: 100vh;
    background: transparent;
    z-index: 2;
}

/* --- Message Card on the LEFT Side ------------------------------ */
#scroll-message {
    position: fixed;
    left: 4%;
    top: 75%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    border-radius: 14px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 240px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    font-size: 13px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Arrow connector from message */
#message-arrow {
    position: absolute;
    right: -130px;
    top: 75%;
    transform: translateY(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.9), rgba(99, 102, 241, 0.4));
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: arrowPulse 2s ease-in-out infinite;
}

#message-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(99, 102, 241, 0.4);
}

@keyframes arrowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8));
    }
}

@media (max-width: 1200px) {
    #scroll-message {
        left: 2%;
        max-width: 220px;
        font-size: 12px;
    }

    #message-arrow {
        width: 80px;
        right: -90px;
    }
}

@media (max-width: 768px) {
    #scroll-message {
        display: none !important;
        /* Hide floating message on small screens as it overlaps with hero content */
    }

    #message-arrow {
        display: none;
    }
}

/* --- AI Flow Section ------------------------------------------ */
#ai-flow-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: transparent;
    z-index: 2;
}

@media (max-width: 768px) {
    #ai-flow-section {
        padding: 5px 16px;
        justify-content: flex-start;
    }
}

/* Pipeline Container */
.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .pipeline-container {
        margin: 5px 0 !important;
    }
}

/* Stage Colors */
:root {
    --intent-color: #6366F1;
    /* Indigo */
    --analysis-color: #EC4899;
    /* Pink */
    --reply-color: #10B981;
    /* Emerald */
    --current-color: #6366F1;
}

/* Pipeline Stage */
.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 40px;
    position: relative;
    opacity: 0.25;
    transform: scale(0.85);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-stage.active {
    opacity: 1;
    transform: scale(1);
}

.pipeline-stage.complete {
    opacity: 0.6;
    transform: scale(0.9);
}

/* Stage Indicator */
.stage-indicator {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.05);
    border: 3px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.6s ease;
    overflow: hidden;
}

/* Progressive Reveal Clip */
.stage-reveal {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--stage-color);
    opacity: 0.15;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.5s ease-out;
}

.pipeline-stage.active .stage-reveal {
    clip-path: inset(0 0 0 0);
}

.pipeline-stage.active .stage-indicator {
    border-color: var(--stage-color);
    box-shadow: 0 0 50px color-mix(in srgb, var(--stage-color) 40%, transparent),
        0 0 100px color-mix(in srgb, var(--stage-color) 20%, transparent);
}

.pipeline-stage.complete .stage-indicator {
    border-color: var(--stage-color);
    background: color-mix(in srgb, var(--stage-color) 10%, white);
}

/* Stage Icon */
.stage-icon {
    width: 40px;
    height: 40px;
    color: rgba(99, 102, 241, 0.3);
    transition: color 0.6s ease;
    z-index: 2;
    position: relative;
}

@media (max-width: 768px) {
    .stage-icon {
        width: 18px;
        height: 18px;
    }
}

.pipeline-stage.active .stage-icon {
    color: var(--stage-color);
}

.pipeline-stage.complete .stage-icon {
    color: var(--stage-color);
}

/* Skeleton Loader - MODERN */
.skeleton-loader {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 4px solid rgba(99, 102, 241, 0.1);
    opacity: 0;
    overflow: hidden;
}

.skeleton-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.pipeline-stage.active .skeleton-loader {
    opacity: 1;
    border-color: var(--stage-color);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Stage Labels */
.stage-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.6s ease;
}

.pipeline-stage.active .stage-label {
    color: var(--stage-color);
}

.pipeline-stage.complete .stage-label {
    color: var(--stage-color);
}

.stage-result {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    height: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.complete-check {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pipeline-stage.complete .stage-result {
    opacity: 1;
    transform: translateY(0);
    color: var(--stage-color);
}

.pipeline-stage.complete .complete-check {
    opacity: 1;
    transform: scale(1);
}

/* Connection Lines */
.pipeline-connector {
    width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.connector-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--from-color), var(--to-color));
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

.pipeline-connector.active .connector-fill {
    width: 100%;
}

/* --- Enhanced AI Response Card --- */
#ai-response-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 28px 32px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
    max-width: 520px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

#ai-response-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10B981, #14B8A6, #06B6D4);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#ai-response-card.visible::before {
    opacity: 1;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 20px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.6);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Response Content */
.response-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#ai-response-card.loaded .typing-indicator {
    display: none;
}

#ai-response-card.loaded .response-content {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}






/* --- Features Styles ------------------------------------------ */
#features-pin-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 20;
    background-color: transparent;
}

#features-card {
    width: 100%;
    height: 100%;
    background-color: #050505;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform, border-radius;
}

.feature-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 0 24px;
}








/* Responsive Design Enhancements ============-=-=-=-=-=-=-=-=-=-=-=-= */
@media (max-width: 1200px) {
    .pipeline-stage {
        padding: 25px 30px;
    }

    .stage-indicator {
        width: 90px;
        height: 90px;
    }

    #ai-response-card {
        max-width: 480px;
        padding: 24px 28px;
    }
}

@media (max-width: 768px) {
    .pipeline-container {
        flex-direction: column;
        gap: 24px;
        margin: 40px 0;
    }

    .pipeline-connector {
        width: 4px;
        height: 6px;
    }

    .connector-fill {
        width: 100% !important;
        height: 0%;
    }

    .pipeline-connector.active .connector-fill {
        height: 100%;
        width: 100%;
    }

    .stage-indicator {
        width: 35px;
        height: 35px;
    }

    .stage-icon {
        width: 35px;
        height: 35px;
    }

    .pipeline-stage {
        padding: 0px;
        gap: 0px;
    }

    .stage-label {
        font-size: 8px;
        margin-top: -4px;
    }

    .stage-result {
        display: none !important;
        /* Hide results on small mobile to save vertical space */
    }

    #ai-response-card {
        max-width: 100%;
        margin-top: 6px;
        padding: 10px;
    }

    #ai-response-card p {
        font-size: 12px;
        line-height: 1.3;
    }

    #ai-response-card .bg-gradient-to-br {
        padding: 6px !important;
        margin-top: 4px;
    }

    .complete-check {
        width: 14px;
        height: 14px;
    }

    #header-pill {
        padding: 12px 16px;
        width: 95%;
        border-radius: 20px;
    }

    #logo-text {
        font-size: 16px;
    }

    #header-cta {
        padding: 8px 16px;
        font-size: 12px;
    }

    #hero h1 {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .pipeline-stage {
        padding: 20px;
        width: 100%;
        max-width: 300px;
    }

    .feature-slide h2 {
        font-size: 3rem;
    }

    .feature-slide p {
        font-size: 1rem;
    }

    .feature-slide svg {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.8rem;
    }

    .feature-slide h2 {
        font-size: 2.5rem;
    }
}