/* Feature Section Styles - Light Theme */

#features {
    position: relative;
}

/* Section wrapper - Light theme */
.dark-section-wrapper {
    background: var(--bg-secondary) !important;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.dark-section-wrapper > section {
    background: transparent !important;
}

/* Apply consistent background to sections */
.py-8.relative,
#features,
#how-it-works,
#use-cases,
footer {
    background: var(--bg-secondary) !important;
}

/* Feature Section Layout */
.feature-section {
    min-height: auto;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.feature-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    align-items: center;
}

/* Feature Text */
.feature-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-text h3 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-description {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-highlight {
    font-size: 1.25rem !important;
    font-weight: 500;
    color: var(--accent-primary) !important;
    line-height: 1.4 !important;
    margin: 0;
    letter-spacing: -0.01em;
}

.feature-details {
    font-size: 1.0625rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.7 !important;
    margin: 0;
    font-weight: 400;
}

/* Feature Mockup */
.feature-mockup {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    position: relative;
    overflow: visible;
}

/* When section is in view */
.feature-section.in-view .feature-text {
    opacity: 1;
    transform: translateX(0);
}

.feature-section.in-view .feature-mockup {
    opacity: 1;
    transform: translateX(0);
}

/* Mockup Window - Light theme */
.mockup-window {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.window-header {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.window-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-content {
    padding: 20px;
    min-height: 300px;
    background: var(--bg-elevated);
}

/* Glass content - Light theme */
.dark-section-wrapper .glass,
.dark-section-wrapper .glass-content,
#features .glass,
#features .glass-content,
#how-it-works .glass,
#how-it-works .glass-content {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-default) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 8px !important;
}

/* Ensure feature sections flow seamlessly */
#features {
    padding: 0 !important;
}

#features .feature-section:first-child {
    padding-top: 3rem;
}

#features .feature-section:last-child {
    padding-bottom: 3rem;
}

/* Section spacing */
@media (min-width: 769px) {
    #how-it-works {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Feature Animation Container */
#feature-animation-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    /* Allow shadows to render outside the container */
    overflow: visible;
    margin: 0 auto;
}

.feature-animation-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-animation-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.feature-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.feature-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Loading Screen Background */
#feature-loading-screen {
    background: var(--bg-elevated);
}

/* Persona Grid Layout */
.feature-loading-persona-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin-bottom: 4rem;
}

/* Avatar Base Styles - Updated colors */
.feature-participant-avatar .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hoverPulse 2s ease-in-out infinite;
}

.feature-participant-avatar .avatar svg {
    width: 28px;
    height: 28px;
    z-index: 1;
}

/* Spinner Container */
#feature-spinner-container {
    width: 8rem;
    height: 8rem;
    aspect-ratio: 1 / 1;
}

#feature-progress-container {
    position: relative;
}

.feature-progress-bar {
    transition: width 4s ease-out;
    background: linear-gradient(90deg, var(--accent-primary), #6366F1);
}

/* Avatar State - Use new accent colors */
.feature-participant-avatar.thinking .avatar {
    background: var(--accent-primary);
}

.feature-participant-avatar.viewing .avatar {
    background: #6366f1;
}

.feature-participant-avatar.reviewing .avatar {
    background: #8b5cf6;
}

.feature-participant-avatar.completing .avatar {
    background: var(--accent-secondary);
}

.feature-participant-avatar.analyzing .avatar {
    background: var(--accent-tertiary);
}

.feature-participant-avatar.exploring .avatar {
    background: #06b6d4;
}

.feature-participant-avatar.evaluating .avatar {
    background: #6366f1;
}

.feature-participant-avatar.responding .avatar {
    background: var(--accent-error);
}

/* Results Screen */
#feature-results-screen {
    transform: translateY(10px);
    overflow-y: auto;
}

.feature-results-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.08);
}

.feature-results-scroll::-webkit-scrollbar {
    width: 10px;
}

.feature-results-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
}

.feature-results-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 9999px;
}

#feature-progress-labels .feature-progress-step {
    opacity: 0.55;
    transition: color 0.3s ease, opacity 0.3s ease;
    color: var(--text-muted);
}

#feature-progress-labels .feature-progress-step.is-active {
    color: var(--text-primary);
    opacity: 1;
}

/* Feature Product Cards - Light Theme */
.feature-product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.feature-winner-card {
    position: relative;
}

.feature-winner-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(99, 102, 241, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-winner-card:hover::before {
    opacity: 1;
}

.feature-winner-card:hover {
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

/* Key Insight Box */
.feature-key-insight {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.feature-key-insight:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.25);
}

/* Appeal bar glow effect */
.feature-product-card .h-1\.5 {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Loading screen enhancements */
#feature-loading-screen .feature-loading-persona-grid {
    gap: 20px;
}

#feature-loading-screen .feature-participant-avatar .avatar {
    box-shadow: var(--shadow-md);
}

/* Responsive - Mobile */
@media (max-width: 1024px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-text h3 {
        font-size: 2.25rem;
    }
}
