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

:root {
    --bg: #000000;
    --bg-card: rgba(255,255,255,0.02);
    --text: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --grid-color: rgba(255,255,255,0.03);
    --particle-color: #fff;
    --line-color-start: rgba(255,255,255,0.03);
    --line-color-mid: rgba(255,255,255,0.08);
    --ripple-color: rgba(255,255,255,0.05);
    --noise-opacity: 0.015;
    --vignette: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-card: rgba(0,0,0,0.02);
    --text: #000000;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --grid-color: rgba(0,0,0,0.03);
    --particle-color: #000;
    --line-color-start: rgba(0,0,0,0.03);
    --line-color-mid: rgba(0,0,0,0.08);
    --ripple-color: rgba(0,0,0,0.05);
    --noise-opacity: 0.02;
    --vignette: radial-gradient(ellipse at center, transparent 0%, rgba(255,255,255,0.4) 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background effects */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background: var(--vignette);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav {
    background: rgba(255,255,255,0.8);
}

.nav-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover { transform: scale(1.05); }
.logo-icon { width: 40px; height: 40px; }
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px -10px rgba(255,255,255,0.3);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 64px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    padding: 4px;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}

.theme-toggle-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fff 0%, #e5e5e5 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="light"] .theme-toggle-slider {
    left: 36px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.theme-toggle-icon {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.theme-toggle-icon.sun {
    display: none;
    color: #fff;
}

.theme-toggle-icon.moon {
    display: block;
    color: #000;
}

[data-theme="light"] .theme-toggle-icon.sun {
    display: block;
}

[data-theme="light"] .theme-toggle-icon.moon {
    display: none;
}

/* Content */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    animation: slideUp 0.8s ease-out;
}

.page-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    animation: slideUp 0.8s ease-out 0.1s both;
}

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

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.content-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.content-box h2:first-child { margin-top: 0; }

.content-box p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.content-box ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.content-box li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* Footer */
footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: var(--text);
}

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

.footer-heart {
    display: inline-block;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Mobile */
@media (max-width: 1100px) {
    .nav-links { gap: 16px; }
    .nav-link { font-size: 13px; }
    .btn-primary { padding: 10px 20px; font-size: 13px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav { padding: 16px 20px; }
    .content { padding: 120px 24px 60px; }
    .content-box { padding: 32px 24px; }
}
