:root {
    --bg-dark: #FFFFFF;
    --bg-card: #F8FAFC;
    --bg-card-hover: #F1F5F9;
    --youdao-red: #E60012;
    --youdao-red-glow: rgba(230, 0, 18, 0.2);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* Header */
.global-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-symbol {
    width: 32px;
    height: 32px;
    background: var(--youdao-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

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

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

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

.header-actions .btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 12px;
}

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

.btn-primary {
    background: var(--youdao-red);
    color: white;
    box-shadow: 0 4px 12px var(--youdao-red-glow);
}

/* Hero Section */
.hero-section {
    padding: 160px 20px 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230, 0, 18, 0.1);
    color: #ff4d4f;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(230, 0, 18, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.hero-cta .btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
}

/* Dashboard Visual */
.dashboard-visual {
    background: #0B0F19; /* Keep terminal/dashboard dark for contrast */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.dash-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; background: #333; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dash-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dash-text-line {
    height: 8px;
    background: #333;
    border-radius: 4px;
    width: 80%;
    margin-bottom: 12px;
}

/* Bento Grid Section */
.bento-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.bento-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.bento-item:hover {
    background: var(--bg-card-hover);
    border-color: #CBD5E1;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--youdao-red);
    margin-bottom: 20px;
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats Section */
.global-stats {
    display: flex;
    justify-content: space-around;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #F8FAFC;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Developer Section */
.dev-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.dev-text {
    flex: 1;
}

.dev-code {
    flex: 1;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.code-line {
    display: block;
    margin-bottom: 8px;
    color: #d4d4d4;
}

.keyword { color: #569cd6; }
.string { color: #ce9178; }
.function { color: #dcdcaa; }

/* Footer */
.dark-footer {
    padding: 80px 20px 40px;
    background: #F1F5F9;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--youdao-red);
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .dev-section {
        flex-direction: column;
    }
    .global-stats {
        flex-direction: column;
        gap: 40px;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
}
