/* ============================================
   ABOUT PAGE - DARK THEME (Matching Homepage)
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary, #0a0a1a);
    color: var(--text-primary, #f8fafc);
    min-height: 100vh;
    line-height: 1.8;
}

/* Hero Section - Dark Theme */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary, #0a0a1a) 0%, var(--bg-secondary, #0d1117) 50%, var(--bg-tertiary, #0f172a) 100%);
    padding: 120px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary, #94a3b8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Content Sections */
.content-section {
    background: var(--glass-bg, rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.content-section h2 {
    font-size: 1.75rem;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--accent, #06b6d4) 100%);
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.25rem;
    color: var(--text-primary, #f8fafc);
    margin: 24px 0 12px;
    font-weight: 600;
}

.content-section p {
    color: var(--text-secondary, #94a3b8);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section ul {
    color: var(--text-secondary, #94a3b8);
    margin-left: 24px;
    margin-top: 16px;
}

.content-section ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-section ul li strong {
    color: var(--text-primary, #f8fafc);
}

/* Page Header for Terms/Privacy */
.page-header {
    text-align: center;
    padding: 120px 40px 60px;
    background: linear-gradient(135deg, var(--bg-primary, #0a0a1a) 0%, var(--bg-secondary, #0d1117) 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.page-header .updated {
    color: var(--text-muted, #64748b);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.stats-section {
    padding: 40px 0;
}

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

.stat-item {
    background: var(--glass-bg, rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--accent, #06b6d4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item .label {
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--accent, #06b6d4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Values Section */
.values-section {
    padding: 60px 0;
}

.values-section h2 {
    text-align: center;
    color: var(--text-primary, #f8fafc) !important;
    margin-bottom: 1rem;
}

.values-section > p {
    text-align: center;
    color: var(--text-secondary, #94a3b8) !important;
    max-width: 700px;
    margin: 0 auto 2rem;
}

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

.value-item {
    background: var(--glass-bg, rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.value-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.value-item h3 {
    font-size: 1.15rem;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 12px;
    font-weight: 600;
}

.value-item p {
    color: var(--text-secondary, #94a3b8);
    font-size: 14px;
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-secondary, #94a3b8);
}

/* Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.warning-box p {
    color: #f59e0b;
}

.warning-box ul {
    margin-left: 20px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .container {
        padding: 40px 20px;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .page-header {
        padding: 100px 20px 40px;
    }
}

@media (max-width: 600px) {
    .hero-section h1,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item .number {
        font-size: 2rem;
    }
}

/* Light Theme Override */
body.light-theme {
    background: #f8fafc;
    color: #1e293b;
}

body.light-theme .hero-section,
body.light-theme .page-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body.light-theme .hero-section::before,
body.light-theme .page-header::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

body.light-theme .hero-section h1,
body.light-theme .page-header h1 {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

body.light-theme .content-section,
body.light-theme .stat-item,
body.light-theme .value-item {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .content-section h2,
body.light-theme .content-section h3 {
    color: #1e293b;
}

body.light-theme .content-section p,
body.light-theme .content-section ul,
body.light-theme .stat-item .label {
    color: #64748b;
}

body.light-theme .content-section ul li strong {
    color: #1e293b;
}

body.light-theme .feature-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .feature-card:hover {
    background: #f1f5f9;
}

body.light-theme .feature-card h3 {
    color: #1e293b;
}

body.light-theme .feature-card p {
    color: #64748b;
}

body.light-theme .values-section h2 {
    color: #1e293b !important;
}

body.light-theme .values-section > p {
    color: #64748b !important;
}

body.light-theme .value-item h3 {
    color: #1e293b;
}

body.light-theme .value-item p {
    color: #64748b;
}

body.light-theme .highlight-box {
    background: #e0e7ff;
    border-color: #c7d2fe;
}

body.light-theme .highlight-box p {
    color: #4338ca;
}

body.light-theme .warning-box {
    background: #fef3c7;
    border-color: #fcd34d;
}

body.light-theme .warning-box p {
    color: #b45309;
}
