/* ─────────────────────────────────────────────────────────────────────────────
   VAULTER — shared stylesheet
   Palette inspired by the logo: midnight steel + gold + neon blue.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --bg-base:        #0a0f1c;
    --bg-surface:     #131826;
    --bg-elevated:    #1a2030;
    --border:         #242b3d;
    --border-strong:  #2f3850;

    --text-primary:   #ece5d0;
    --text-secondary: #9ea3b3;
    --text-muted:     #6c7185;

    --gold:           #d4a857;
    --gold-bright:    #f0c674;
    --gold-deep:      #8b6d33;
    --neon:           #4d8eff;
    --neon-bright:    #7ab0ff;
    --neon-deep:      #2a5cb8;

    --shadow-glow:    0 0 40px rgba(77, 142, 255, 0.08);
    --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.35);

    --font-display:   'Cinzel', 'Times New Roman', serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    --max-w-doc:      820px;
    --max-w-landing:  640px;
}

/* ─── reset ───────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(77, 142, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 50% 110%, rgba(212, 168, 87, 0.06), transparent);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--neon-bright);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--gold-bright); }

/* ─── landing page ────────────────────────────────────────────────────────── */

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

.landing__logo {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(77, 142, 255, 0.25));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.landing__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.landing__tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: var(--max-w-landing);
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--neon) 0%, var(--neon-deep) 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.95rem 2.2rem;
    border: 1px solid var(--neon-bright);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(77, 142, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(77, 142, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-primary__icon { width: 1.1em; height: 1.1em; }

.landing__features {
    display: flex;
    gap: 2rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--max-w-landing);
}
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.feature__icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
}

.landing__footer {
    margin-top: auto;
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.landing__footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.landing__footer-links a { color: var(--text-secondary); }
.landing__footer-links a:hover { color: var(--gold-bright); }

/* ─── document pages (privacy / tos) ──────────────────────────────────────── */

.doc-header {
    background: rgba(10, 15, 28, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.doc-header__inner {
    max-width: var(--max-w-doc);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.doc-header__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--gold-bright);
    letter-spacing: 0.08em;
    font-weight: 600;
}
.doc-header__brand img { width: 32px; height: 32px; }
.doc-header__brand a { color: inherit; }

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.35rem 0.55rem;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    font-family: var(--font-body);
    transition: all 0.15s ease;
    line-height: 1;
}
.lang-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.lang-btn.active {
    background: var(--bg-elevated);
    border-color: var(--gold);
    color: var(--gold-bright);
}
.lang-btn__flag { display: inline-block; margin-right: 0.25rem; font-size: 1em; }
.lang-btn__code {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.doc-main {
    max-width: var(--max-w-doc);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.doc-back:hover { color: var(--gold-bright); }

.doc-content { display: none; }
.doc-content.active { display: block; }

.doc-content h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    margin-bottom: 0.3rem;
    line-height: 1.25;
}
.doc-content .doc-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}
.doc-content .doc-preamble {
    color: var(--text-secondary);
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface);
    border-left: 2px solid var(--gold);
    border-radius: 0 6px 6px 0;
}
.doc-content .doc-preamble p + p { margin-top: 0.85rem; }

.doc-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.04em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.doc-content p { margin-bottom: 0.85rem; color: var(--text-primary); }

.doc-content ol.sub-list,
.doc-content ul.sub-list {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0.85rem;
}
.doc-content ol.sub-list li,
.doc-content ul.sub-list li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}
.doc-content ol.sub-list li .sub-label,
.doc-content ul.sub-list li .sub-label {
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 500;
    min-width: 2rem;
    text-align: left;
}

.doc-content strong { color: var(--text-primary); }
.doc-content em { color: var(--text-secondary); font-style: italic; }

.doc-content a { color: var(--neon-bright); border-bottom: 1px dotted var(--neon-deep); }
.doc-content a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

.doc-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.doc-footer a { color: var(--text-secondary); }

/* ─── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .landing { padding: 2.5rem 1rem 1.5rem; }
    .landing__logo { width: 160px; height: 160px; margin-bottom: 1.5rem; }
    .landing__features { gap: 1.25rem; margin: 2rem 0 1.5rem; }

    .doc-header__inner { padding: 0.7rem 1rem; flex-direction: column; align-items: stretch; }
    .doc-header__brand { justify-content: center; }
    .lang-switcher { justify-content: center; }
    .lang-btn { padding: 0.3rem 0.45rem; }
    .lang-btn__flag { display: none; }

    .doc-main { padding: 1.75rem 1.1rem 3rem; }
    .doc-content .doc-preamble { padding: 1rem 1.1rem; }
}

/* ─── prefers-reduced-motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
