:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #6366f1;
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08), transparent 25%);
    pointer-events: none;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 72px;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.9;
}

.brand-icon {
    font-size: 1.5rem;
}

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

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-link-guide {
    color: var(--primary) !important;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-btn.active:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 8px #60a5fa;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

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

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual (Window Mockup) */
.hero-visual {
    position: relative;
}

.app-window {
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.app-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.window-content {
    background: #1e293b;
    padding: 20px;
    min-height: 300px;
}

.ui-mockup {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    height: 300px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.nav-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #334155;
}

.nav-item.active {
    background: var(--primary);
}

.main-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header-mock {
    height: 40px;
    background: #334155;
    border-radius: 8px;
    width: 50%;
}

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

.card-mock {
    height: 80px;
    background: #334155;
    border-radius: 8px;
    opacity: 0.5;
}

.log-mock {
    margin-top: auto;
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-mock .line {
    height: 8px;
    background: #334155;
    border-radius: 4px;
    width: 80%;
}

.log-mock .line.short {
    width: 40%;
}

/* Sections */
.block {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin: 0 0 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 20px;
    transition: transform 0.2s, background 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: 16px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.05);
}

.icon-box.blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.icon-box.green { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.icon-box.purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.icon-box.orange { background: rgba(249, 115, 22, 0.1); color: #fb923c; }

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Comparison */
.compare-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.compare-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
}

.compare-card.highlight {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
}

.compare-card.dim {
    opacity: 0.8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.tag {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-list li, .cross-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-list li strong {
    color: var(--text-main);
}

/* Stats Section */
.stats-box {
    background: #1e293b;
    border-radius: 24px;
    padding: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-desc {
    color: var(--text-muted);
    font-weight: 500;
}

/* Donors */
.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.donor {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.donor .name {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.donor .amt {
    color: #fb923c;
    font-size: 0.9em;
}

.donor .msg {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    background: #020617;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .sub {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
        transform: none; /* Reset 3D transform on mobile */
    }

    .app-window {
        transform: none;
    }

    .app-window:hover {
        transform: none;
    }

    .compare-wrapper {
        grid-template-columns: 1fr;
    }

    .stats-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    
    .language-switcher {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}