/* ReflectPilot AI-Human Safety Lab Onboarding Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    font-size: 28px;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-title:hover {
    opacity: 0.8;
}

.nav-subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

/* Layout */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 20px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 140px 0 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.cta-btn.secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #e2e8f0;
}

.cta-btn.secondary:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.cta-btn.large {
    padding: 20px 40px;
    font-size: 18px;
}

.cta-btn.xl {
    padding: 24px 48px;
    font-size: 20px;
}

.cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 20px;
}

/* Hero Visual */
.pilot-graphic {
    position: relative;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.ai-node {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    position: relative;
    z-index: 2;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ai-node:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.ai-node.reflection {
    border-color: #f59e0b;
}

.ai-node.insight {
    border-color: #10b981;
}

.ai-node.knowledge {
    border-color: #8b5cf6;
}

.ai-node.safety {
    border-color: #ef4444;
}

.node-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.node-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Value Pillars */
.pillars-section {
    background: white;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.pillar-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.pillar-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.pillar-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.pillar-description {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.pillar-features {
    list-style: none;
    text-align: left;
}

.pillar-features li {
    padding: 8px 0;
    color: #475569;
    position: relative;
    padding-left: 20px;
}

.pillar-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Consent Section */
.consent-section {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
}

.trust-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.trust-icon {
    font-size: 64px;
    text-align: center;
}

.trust-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.trust-statement {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.consent-checkbox {
    margin-bottom: 32px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
}

.consent-text {
    color: rgba(255, 255, 255, 0.9);
}

.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Tour Section */
.tour-section {
    background: #f8fafc;
}

.tour-timeline {
    display: grid;
    gap: 60px;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.step-description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.step-visual {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e2e8f0;
}

.demo-bubble {
    padding: 16px 20px;
    border-radius: 20px;
    font-style: italic;
    margin-bottom: 16px;
}

.demo-bubble.user {
    background: #f1f5f9;
    color: #1e293b;
    border-left: 4px solid #3b82f6;
}

.agent-response {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.agent-response.reflection-agent {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.agent-response.insight-agent {
    background: #d1fae5;
    border-left: 4px solid #10b981;
}

.agent-response.knowledge-agent {
    background: #e9d5ff;
    border-left: 4px solid #8b5cf6;
}

.agent-response.safety-system {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.agent-label {
    font-weight: 700;
    color: #1e293b;
}

/* Demo Section */
.demo-section {
    background: white;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-chat {
    background: #f8fafc;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 2px solid #e2e8f0;
}

.chat-message {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #dbeafe;
}

.ai-message .message-avatar {
    background: #dcfce7;
}

.message-content {
    flex: 1;
}

.message-text {
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
}

.message-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.agent-analysis {
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #bfdbfe;
}

.analysis-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.agent-tag {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 100px;
    text-align: center;
}

.agent-tag.reflection {
    background: #f59e0b;
}

.agent-tag.insight {
    background: #10b981;
}

.agent-tag.knowledge {
    background: #8b5cf6;
}

.agent-tag.safety {
    background: #ef4444;
}

.analysis-text {
    color: #475569;
    flex: 1;
}

.demo-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.demo-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.demo-btn.secondary {
    background: #f8fafc;
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.cta-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.safety-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.metric {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    font-size: 32px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #3b82f6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section .section-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .trust-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .safety-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 12px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .timeline-step {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .trust-container {
        padding: 40px 24px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .safety-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .pillar-card, .trust-container {
        padding: 24px;
    }
    
    .cta-btn.large, .cta-btn.xl {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .safety-metrics {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
