/* ==========================================================================
   TradeFlow AI - Features Page Styles
   ========================================================================== */

/* Page Header */
.page-header {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.page-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Feature Navigation */
.feature-nav {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}

.feature-nav-items {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
}

.feature-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.feature-nav-item:hover,
.feature-nav-item.active {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-700);
}

.feature-nav-item i {
    font-size: 16px;
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
}

.feature-section.alt-bg {
    background: var(--gray-50);
}

.feature-section.ai-features {
    background: var(--gradient-hero);
    color: white;
}

.feature-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 32px;
    margin: 0 auto 24px;
}

.ai-features .feature-icon-large {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.ai-features .feature-section-header h2 {
    color: white;
}

.feature-section-header p {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
}

.ai-features .feature-section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ai-features .feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.ai-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-item-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    border-radius: var(--radius-md);
    color: var(--primary-600);
    font-size: 22px;
    flex-shrink: 0;
}

.ai-features .feature-item-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.feature-item-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.ai-features .feature-item-content h3 {
    color: white;
}

.feature-item-content > p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-features .feature-item-content > p {
    color: rgba(255, 255, 255, 0.7);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 14px;
    color: var(--gray-700);
    padding-left: 24px;
    position: relative;
}

.ai-features .feature-list li {
    color: rgba(255, 255, 255, 0.8);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-500);
    font-weight: 600;
}

/* Workflow Showcase */
.workflow-showcase {
    margin-bottom: 60px;
}

.workflow-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.workflow-phase {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.phase-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
}

.phase-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.phase-stages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stage {
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-600);
}

/* AI Showcase */
.ai-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.ai-showcase-item.reverse {
    direction: rtl;
}

.ai-showcase-item.reverse > * {
    direction: ltr;
}

.ai-demo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.ai-demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
}

.ai-demo-content {
    padding: 24px;
}

/* AI Conversation Demo */
.ai-conversation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    max-width: 90%;
}

.ai-message.caller {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

.ai-message.ai {
    background: var(--primary-600);
    align-self: flex-end;
}

.message-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.ai-message p {
    font-size: 14px;
    line-height: 1.5;
}

/* Photo Quote Demo */
.photo-quote-demo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.photo-area {
    width: 120px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.photo-area i {
    font-size: 28px;
}

.arrow-right {
    font-size: 20px;
    color: var(--accent-400);
}

.quote-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quote-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.quote-line.total {
    background: var(--accent-500);
    font-weight: 600;
}

/* AI Showcase Content */
.ai-showcase-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.ai-showcase-content > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ai-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.ai-benefit-list i {
    color: var(--accent-400);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-visual {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-showcase-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-showcase-item.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .feature-nav-items {
        justify-content: flex-start;
    }
    
    .workflow-visual {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Navigation active state styles */
.nav-links a.active {
    color: var(--primary-600);
    font-weight: 600;
}
