/* =============================================================================
   ProofOfTrade - Premium Fintech Design System
   ============================================================================= */

/* CSS Variables - Dark Finance Theme */
:root {
    /* Colors - Dark Finance */
    --bg-primary: #0a0b0f;
    --bg-secondary: #0f1016;
    --bg-card: #12141c;
    --bg-card-hover: #181a24;
    --bg-elevated: #1a1d28;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.3);
    
    /* Accent Colors */
    --accent-primary: #00d4aa;
    --accent-primary-rgb: 0, 212, 170;
    --accent-secondary: #6366f1;
    --accent-secondary-rgb: 99, 102, 241;
    
    /* Status Colors */
    --color-win: #22c55e;
    --color-win-bg: rgba(34, 197, 94, 0.1);
    --color-loss: #ef4444;
    --color-loss-bg: rgba(239, 68, 68, 0.1);
    --color-pending: #f59e0b;
    --color-pending-bg: rgba(245, 158, 11, 0.1);
    --color-warning: #f59e0b;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(var(--accent-primary-rgb), 0.15);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.logo-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.2), rgba(var(--accent-secondary-rgb), 0.1));
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

.logo-icon-wrapper.small {
    width: 32px;
    height: 32px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #00b894);
    color: #000;
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(var(--accent-primary-rgb), 0.4);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    filter: blur(10px);
}

.btn-glow:hover::before {
    opacity: 0.5;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.btn-icon, .btn-icon-left {
    width: 18px;
    height: 18px;
}

.btn-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    left: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-primary-rgb), 0.1) 0%,
        rgba(var(--accent-secondary-rgb), 0.05) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.text-accent {
    color: var(--accent-primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Featured Trader Card */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.featured-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 20, 28, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-primary-rgb), 0.5), transparent);
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

.verified-badge svg {
    width: 18px;
    height: 18px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-win);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-win);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.trader-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.masked-username {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Trust Score Circle */
.trust-score-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 8;
}

.score-ring-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.score-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-box {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.stat-box .stat-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.stat-box .stat-value.win { color: var(--color-win); }
.stat-box .stat-value.loss { color: var(--color-loss); }
.stat-box .stat-value.pending { color: var(--color-pending); }

.stat-box .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Signal Chart */
.signal-chart {
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.chart-legend {
    display: flex;
    gap: 12px;
}

.legend-win, .legend-loss {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
}

.legend-win { background: var(--color-win); }
.legend-loss { background: var(--color-loss); }

.chart-bars {
    display: flex;
    gap: 8px;
    height: 40px;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    min-height: 8px;
    border-radius: 4px;
    transition: height var(--transition-normal);
}

.chart-bar.placeholder {
    background: var(--bg-elevated);
    height: 20px;
}

.chart-bar.win {
    background: linear-gradient(to top, var(--color-win), rgba(34, 197, 94, 0.6));
}

.chart-bar.loss {
    background: linear-gradient(to top, var(--color-loss), rgba(239, 68, 68, 0.6));
}

.chart-bar.pending {
    background: linear-gradient(to top, var(--color-pending), rgba(245, 158, 11, 0.6));
}

.featured-card-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.footer-note {
    font-size: 12px;
    color: var(--text-dim);
}

/* Floating Stats */
.floating-stats {
    position: absolute;
    top: 0;
    right: -60px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.floating-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    animation: float 3s ease-in-out infinite;
}

.floating-stat svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.floating-stat.stat-1 { animation-delay: 0s; }
.floating-stat.stat-2 { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =============================================================================
   Platform Stats Section
   ============================================================================= */

.platform-stats {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid-live {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: var(--radius-md);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.stat-icon.warning svg { color: var(--color-warning); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.1); }

.stat-icon.success svg { color: var(--color-win); }
.stat-icon.success { background: rgba(34, 197, 94, 0.1); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================================================
   Section Styles
   ============================================================================= */

section {
    padding: var(--section-padding) 0;
}

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

.section-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

/* =============================================================================
   Contrast Section (What We Do / Don't)
   ============================================================================= */

.contrast-section {
    background: var(--bg-secondary);
}

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

.contrast-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.contrast-do {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), transparent);
    border-color: rgba(34, 197, 94, 0.2);
}

.contrast-dont {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
    border-color: rgba(239, 68, 68, 0.2);
}

.contrast-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.contrast-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.contrast-icon svg {
    width: 24px;
    height: 24px;
}

.contrast-icon.do {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-win);
}

.contrast-icon.dont {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-loss);
}

.contrast-header h3 {
    font-size: 22px;
    font-weight: 600;
}

.contrast-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contrast-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-secondary);
}

.contrast-list .check, .contrast-list .cross {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contrast-list .check { color: var(--color-win); }
.contrast-list .cross { color: var(--color-loss); }

/* =============================================================================
   Timeline Section
   ============================================================================= */

.steps-section {
    background: var(--bg-primary);
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.timeline-connector {
    flex: 0 0 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin-top: 30px;
    opacity: 0.5;
}

.timeline-content {
    padding: 0 20px;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================================================
   Trust Score Section
   ============================================================================= */

.trust-section {
    background: var(--bg-secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.trust-factors {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.factor-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.factor-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.factor-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.factor-icon svg {
    width: 24px;
    height: 24px;
}

.factor-icon.win { background: var(--color-win-bg); color: var(--color-win); }
.factor-icon.loss { background: var(--color-loss-bg); color: var(--color-loss); }
.factor-icon.pending { background: var(--color-pending-bg); color: var(--color-pending); }
.factor-icon.flag { background: rgba(239, 68, 68, 0.1); color: var(--color-loss); }

.factor-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* Example Card */
.trust-example {
    position: sticky;
    top: 100px;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.example-badge {
    padding: 4px 10px;
    background: rgba(var(--accent-secondary-rgb), 0.15);
    color: var(--accent-secondary);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.example-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.example-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.example-row .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.example-row .value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
}

.example-row.bonus .value { color: var(--color-win); }
.example-row.penalty .value { color: var(--color-loss); }

.example-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.example-row.final {
    padding-top: 16px;
}

.example-row.final .label {
    font-weight: 600;
    color: var(--text-primary);
}

.example-row.final .value {
    font-size: 24px;
    color: var(--accent-primary);
}

.example-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

/* =============================================================================
   Flags Section
   ============================================================================= */

.flags-section {
    background: var(--bg-primary);
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.flag-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.flag-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.flag-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.flag-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.flag-icon svg {
    width: 24px;
    height: 24px;
}

.flag-icon.deleted svg { color: var(--color-loss); }
.flag-icon.spam svg { color: var(--color-warning); }
.flag-icon.cherry svg { color: var(--color-loss); }

.flag-severity {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.flag-severity.low {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-win);
}

.flag-severity.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.flag-severity.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-loss);
}

.flag-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.flag-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================================================
   Leaderboard Section
   ============================================================================= */

.leaderboard-section {
    background: var(--bg-secondary);
    padding-bottom: 120px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-win);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.leaderboard-loading {
    text-align: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hidden {
    display: none !important;
}

/* Trader Cards in Leaderboard */
.trader-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.trader-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trader-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.trader-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.trader-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.trader-platform svg {
    width: 12px;
    height: 12px;
}

.trader-score {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.trader-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.trader-stat {
    text-align: center;
}

.trader-stat .value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.trader-stat .label {
    font-size: 11px;
    color: var(--text-muted);
}

.trader-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.trader-flags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-warning);
}

.trader-tweets {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.trader-card .view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
    margin-top: 16px;
    transition: gap var(--transition-fast);
}

.trader-card .view-link:hover {
    gap: 8px;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 48px;
}

/* Info Banner */
.info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(var(--accent-secondary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.info-banner .info-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

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

/* Empty State */
.leaderboard-empty {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.leaderboard-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.leaderboard-empty p {
    color: var(--text-secondary);
}

/* =============================================================================
   CTA Section
   ============================================================================= */

.cta-section {
    background: var(--bg-primary);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--accent-primary-rgb), 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.footer-group h5 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-group a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .floating-stats {
        display: none;
    }
    
    .stats-grid-live {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contrast-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        flex-direction: column;
        gap: 40px;
    }
    
    .timeline-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-example {
        position: static;
    }
    
    .flags-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .stats-grid-live {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Preview Grid (for backward compatibility) */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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