:root {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --primary: #9f6b1e;
    --primary-hover: #805117;
    --secondary: #ffffff;
    --border: #d8dee8;
    --accent: #0284c7;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --surface-glass: rgba(255, 255, 255, 0.86);
    --surface-glass-strong: rgba(255, 255, 255, 0.94);
    --field-bg: rgba(255, 255, 255, 0.92);
    --muted: #64748b;
    --muted-strong: #475569;
    --subtle-border: rgba(15, 23, 42, 0.08);
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    --primary-shadow: rgba(159, 107, 30, 0.26);
    --primary-shadow-strong: rgba(159, 107, 30, 0.36);
    --primary-tint: rgba(159, 107, 30, 0.12);
    --primary-soft: rgba(159, 107, 30, 0.18);
    --on-primary: #0f172a;
    --line-color: #94a3b8;
    --node-bg: #ffffff;
    --node-hover-bg: #f8fafc;
    --note-bg: rgba(15, 23, 42, 0.05);
    --overlay-bg: rgba(15, 23, 42, 0.35);
    --hero-title-start: #0f172a;
    --hero-title-end: #475569;
    --hero-effect-end: rgba(248, 250, 252, 0);
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.22);
    --danger-text: #b91c1c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #cba052;
    --primary-hover: #b48939;
    --secondary: #1e293b;
    --border: #334155;
    --accent: #38bdf8;
    --surface: #1e293b;
    --surface-strong: #0f172a;
    --surface-glass: rgba(30, 41, 59, 0.8);
    --surface-glass-strong: rgba(30, 41, 59, 0.9);
    --field-bg: rgba(15, 23, 42, 0.6);
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --subtle-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    --soft-shadow: 0 4px 15px rgba(203, 160, 82, 0.3);
    --primary-shadow: rgba(203, 160, 82, 0.3);
    --primary-shadow-strong: rgba(203, 160, 82, 0.4);
    --primary-tint: rgba(203, 160, 82, 0.1);
    --primary-soft: rgba(203, 160, 82, 0.2);
    --on-primary: #0f172a;
    --line-color: #475569;
    --node-bg: #1e293b;
    --node-hover-bg: #273549;
    --note-bg: rgba(0, 0, 0, 0.2);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --hero-title-start: #f8fafc;
    --hero-title-end: #cbd5e1;
    --hero-effect-end: rgba(15, 23, 42, 0);
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.2);
    --danger-text: #fca5a5;
}

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

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d8b77a);
    color: var(--on-primary);
    border: none;
    box-shadow: 0 4px 15px var(--primary-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-shadow-strong);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface-glass);
    color: var(--text-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    background: linear-gradient(to right, var(--hero-title-start), var(--hero-title-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.hero-actions {
    margin-bottom: 4rem;
    animation: fadeUp 1s ease-out 0.4s backwards;
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    animation: fadeUp 1s ease-out 0.6s backwards;
    background: var(--surface-glass);
    padding: 1.5rem 3rem;
    border-radius: 24px;
    border: 1px solid var(--subtle-border);
    backdrop-filter: blur(10px);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

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

/* Background Effects */
.hero-bg-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, var(--primary-soft) 0%, var(--hero-effect-end) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive — Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 0 6%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .btn-large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Responsive — Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 4%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        margin-bottom: 2rem;
    }

    .stats {
        padding: 1rem;
        gap: 1rem;
        border-radius: 16px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}
