:root {
    --bg: #ffffff;
    --bg-secondary: #eaeae5;
    --text: #111111;
    --text-muted: #555555;
    --accent: #7e7df0;
    --accent-warm: #691131;
    --border: #d5d5d0;
    --border-light: #c8c8c3;
    --card-bg: #eaeae5;
    --nav-bg: rgba(245, 245, 240, 0.55);
    --btn-hover-bg: #111111;
    --btn-hover-text: #f5f5f0;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', 'SF Mono', monospace;
    --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}


/* Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: var(--transition-theme); }
a { text-decoration: none; color: inherit; }

/* Nav */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease; }
nav.nav-scrolled { background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: rgba(0, 0, 0, 0.03); }
.nav-inner { max-width: 100%; margin: 0 auto; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 12px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-back { font-size: 0.9rem; color: var(--text-muted); transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.nav-back:hover { color: var(--text); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-light); background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; margin-left: 8px; flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

.nav-cta { display: flex; align-items: center; margin-left: auto; }
.nav-cta-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 20px; border: 1px solid var(--text); border-radius: 100px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; color: var(--bg); background: var(--text); cursor: pointer; transition: all 0.25s ease; white-space: nowrap; text-decoration: none; }
.nav-cta-btn:hover { opacity: 0.8; }
.nav-cta-btn .nav-cta-arrow,
.nav-cta-btn svg { transition: transform 0.25s ease; }
.nav-cta-btn:hover .nav-cta-arrow,
.nav-cta-btn:hover svg { transform: translateX(3px); }
@media (max-width: 768px) { .nav-cta { display: none; } }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); transition: color 0.3s ease; letter-spacing: 0.01em; text-transform: capitalize; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: '\2731'; display: block; text-align: center; color: var(--accent); font-size: 0.55rem; line-height: 1; margin: 3px auto 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; }
@media (max-width: 768px) {
    .nav-right { position: static; transform: none; }
    .nav-links { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 32px; transform: translateY(-100%); opacity: 0; transition: all 0.4s ease; pointer-events: none; z-index: 99; }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-toggle { display: flex; }
}

/* Container */
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 48px; position: relative; }

/* Footer */
footer { background: var(--bg); transition: var(--transition-theme); }
.footer-main { padding: 64px 0 56px; }
.footer-cols { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
a.footer-contact-item:hover { color: var(--text); }
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.6; }
.footer-links-list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-nav-link { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.footer-nav-link:hover { color: var(--text); }
.footer-nav-link svg { width: 11px; height: 11px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-credit { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .footer-cols { flex-direction: column; gap: 40px; }
    .footer-links-list { align-items: flex-start; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Password gate */
#pwd-gate { position: fixed; inset: 0; background: var(--bg); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease; }
#pwd-gate.hide { opacity: 0; pointer-events: none; }
.pwd-box { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 340px; width: 100%; padding: 0 24px; }
.pwd-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.pwd-title { font-size: 1.4rem; font-weight: 600; text-align: center; }
#pwd-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-secondary); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; }
#pwd-submit { width: 100%; padding: 12px 24px; background: var(--text); color: var(--bg); border: none; border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; cursor: pointer; }
#pwd-error { font-size: 0.85rem; color: #e53e3e; min-height: 1em; }
