/* Atticus Professional v17.0 - Complete Professional Styling */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --secondary: #2563eb;
    --accent: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #16a34a;
    --bg-dark: #0f172a;
    --bg-main: #1e293b;
    --bg-card: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-main) 50%, var(--primary-light) 100%);
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--text-primary);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    height: 48px;
    width: auto;
    margin-right: 16px;
}

.header-info h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.header-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.platform-status {
    display: flex;
    gap: 24px;
    align-items: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-item .label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.status-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-item .value.live {
    color: var(--success);
    position: relative;
}

.status-item .value.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Navigation */
.demo-nav {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.nav-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.nav-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.nav-step.active {
    opacity: 1;
    background: rgba(37, 99, 235, 0.2);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
}

.demo-section {
    display: none;
    padding: 48px 0;
    min-height: 80vh;
}

.demo-section.active {
    display: block;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header .subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Challenge Section */
.challenge-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card.danger {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.05);
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 14px;
}

.problem-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.problem-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--danger);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Solution Section */
.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.5);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.pricing-transparency {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
    backdrop-filter: blur(10px);
}

.pricing-transparency h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.pricing-item .label {
    color: var(--text-light);
}

.pricing-item .value {
    font-weight: 600;
    color: var(--success);
}

/* Demo Section */
.market-data-bar {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.market-item {
    text-align: center;
}

.market-item .label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.market-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

/* Workflow Steps */
.demo-workflow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.workflow-step {
    display: none;
}

.workflow-step.active {
    display: block;
}

.workflow-step h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-white);
    text-align: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 16px;
}

/* Portfolio Selection */
.portfolio-selection {
    display: grid;
    grid-template-columns: 2fr auto 1fr;
    gap: 32px;
    align-items: start;
}

.portfolio-options h4,
.custom-position h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portfolio-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.1);
}

.portfolio-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.portfolio-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portfolio-metrics span {
    font-size: 12px;
    color: var(--text-light);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.custom-inputs {
    display: grid;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 14px;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

.unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
}

/* Buttons */
.cta-btn,
.action-btn,
.secondary-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.cta-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #1d4ed8 100%);
    color: white;
    margin: 32px auto;
    display: block;
    max-width: 300px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.action-btn {
    background: var(--success);
    color: white;
}

.action-btn:hover {
    background: #15803d;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Analysis Results */
.analysis-content {
    display: grid;
    gap: 24px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.analysis-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.metric-label {
    color: var(--text-light);
    font-size: 14px;
}

.metric-value {
    font-weight: 600;
    color: var(--text-white);
    font-size: 14px;
}

.risk-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.scenario-card {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.scenario-card h5 {
    font-size: 12px;
    color: var(--danger);
    margin-bottom: 8px;
    font-weight: 600;
}

.scenario-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

/* Platform Dashboard */
.platform-dashboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    z-index: 900;
}

.platform-dashboard h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
    text-align: center;
}

.exposure-metrics {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.exposure-metrics .metric {
    text-align: center;
}

.exposure-metrics .label {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    margin-bottom: 2px;
}

.exposure-metrics .value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: var(--text-primary);
}

.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close:hover {
    color: var(--danger);
}

#contact-form {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

#contact-form button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .platform-status {
        gap: 16px;
    }
    
    .nav-steps {
        gap: 24px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .challenge-stats,
    .solution-features {
        grid-template-columns: 1fr;
    }
    
    .portfolio-selection {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .market-data-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .exposure-metrics {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .demo-workflow {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .demo-section {
        padding: 24px 0;
    }
    
    .workflow-step {
        padding: 0;
    }
    
    .stat-card,
    .problem-card,
    .feature-card {
        padding: 20px;
    }
}
