:root {
    --bg-color: #000000;
    --card-bg: #0a0a0a;
    --card-border: #27272a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.05) 0%, transparent 25%);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
header {
    margin-bottom: 5rem;
    text-align: center;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, #fff 30%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.last-updated {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #52525b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.metric-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #3f3f46;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    z-index: 10;
}

.metric-card h3 {
    color: #71717a;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.metric-value.positive {
    color: var(--accent-green);
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.metric-value.negative {
    color: var(--accent-red);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.metric-value.small-text {
    font-size: 1.75rem;
    color: #fff;
    font-weight: 600;
}

/* Analysis Section */
.analysis-section {
    max-width: 900px;
    margin: 0 auto;
}

.analysis-section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analysis-section h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background: var(--accent-blue);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--accent-blue);
}

.reasons-grid {
    display: grid;
    gap: 2rem;
}

.reason-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.2s ease;
}

.reason-card:hover {
    border-color: #3f3f46;
    background: #0f0f0f;
}

.reason-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #e4e4e7;
    font-weight: 400;
}

/* Sources */
.sources-toggle {
    background: rgba(59, 130, 246, 0.15);
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 0.75rem;
}

.sources-toggle:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.toggle-icon {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    line-height: 1;
}

.sources-toggle.active .toggle-icon {
    transform: rotate(90deg);
}

.sources-list {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #000;
    border-radius: 12px;
    border: 1px solid #27272a;
}

.sources-list.expanded {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sources-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #71717a;
    margin-bottom: 1rem;
    display: block;
    font-weight: 700;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}

.source-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.source-link:last-child {
    margin-bottom: 0;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--accent-blue);
    animation: spin 1s linear infinite;
    margin: 4rem auto;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
    
    .metric-value {
        font-size: 3rem;
    }
}

/* Footer */
footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.6;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.disclaimer-container {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Alpha Score Section */
.alpha-section {
    margin-bottom: 3rem;
}

.alpha-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.alpha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.alpha-header h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0;
}

.alpha-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.alpha-visual {
    position: relative;
    height: 12px;
    background: #18181b;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.alpha-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, 
        var(--accent-red) 0%, 
        rgba(239, 68, 68, 0.1) 45%, 
        rgba(34, 197, 94, 0.1) 55%, 
        var(--accent-green) 100%
    );
    opacity: 0.8;
}

.alpha-indicator {
    position: absolute;
    top: 50%;
    left: 50%; /* Default center */
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: left 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--bg-color);
}

.alpha-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
