/* ============================================
   ProxiesVault — Midnight Navy Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --gold:         #C9A84C;
    --gold-light:   #F0D078;
    --gold-dark:    #A07828;
    --gold-glow:    rgba(201,168,76,0.2);

    /* NEW UNIQUE MIDNIGHT THEME */
    --bg:           #080E1A;
    --bg-card:      #0F1923;
    --bg-elevated:  #141F2E;
    --bg-input:     #0A1220;

    --text:         #EEF2FF;
    --text-sub:     #A8B4D0;
    --muted:        #6B7FA3;
    --border:       rgba(201,168,76,0.15);
    --border-soft:  rgba(168,180,208,0.08);

    --shadow:       0 4px 24px rgba(0,0,0,0.4);
    --shadow-gold:  0 4px 30px rgba(201,168,76,0.15);

    /* Keep these for compat */
    --cream:        #080E1A;
    --white:        #0F1923;
    --charcoal:     #EEF2FF;
    --ink:          #080E1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Star field background */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(201,168,76,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 80%, rgba(100,130,255,0.04) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
}

.gold-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2rem;
}

/* ---- NAV ---- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(8,14,26,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}

/* ---- BRAND LOGO ---- */
.nav-brand {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none;
}
.nav-logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-logo-mark svg { width: 22px; height: 22px; }
.nav-brand-text { display: flex; flex-direction: column; gap: 0; }
.brand-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--gold-light); letter-spacing: 0.04em; line-height: 1;
}
.brand-sub {
    font-size: 0.5rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); line-height: 1;
}

.nav-links {
    display: flex; gap: 0.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 100px; padding: 0.3rem;
}
.nav-links a {
    text-decoration: none; padding: 0.5rem 1.2rem;
    border-radius: 100px; font-size: 0.85rem; font-weight: 500;
    color: var(--muted); transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-ghost {
    background: none; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
    color: var(--muted); transition: color 0.2s; padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { color: var(--gold-light); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink); border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 700;
    padding: 0.6rem 1.4rem; border-radius: 100px; transition: all 0.25s;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.3); }
.btn-gold:active { transform: scale(0.97); }

/* ---- CARDS ---- */
.card {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: 20px; box-shadow: var(--shadow); transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.card:hover { border-color: var(--border); box-shadow: var(--shadow-gold); }

/* ---- SECTION TITLES ---- */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
    color: var(--text); text-align: center; line-height: 1.1;
}
.section-sub { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(4,7,13,0.85);
    backdrop-filter: blur(12px);
    display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 24px; padding: 2.5rem;
    width: 100%; max-width: 480px; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity:0; transform:translateY(20px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.modal-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--muted); transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-input {
    width: 100%; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 0.875rem 1.25rem; font-family: 'DM Sans', sans-serif;
    font-size: 1rem; color: var(--text); transition: all 0.2s; outline: none;
    display: block; margin-bottom: 1rem;
}
.modal-input::placeholder { color: var(--muted); }
.modal-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--border-soft); padding: 3rem 2rem;
    text-align: center; color: var(--muted); font-size: 0.875rem;
    background: var(--bg);
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-light); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    nav { padding: 0 1.25rem; }
}
