/* ═══════════════════════════════════════════════════════════════════
   MONEYVEST — Shared Stylesheet
   All pages load this file. Page-specific styles go in a <style>
   block within each HTML file, after this stylesheet is linked.
═══════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
    --mv-forest:      #1e1b4b;
    --mv-sage:        #4338CA;
    --mv-mint:        #6366f1;
    --mv-gold:        #dea223;
    --mv-gold-light:  #f0c04a;
    --mv-cream:       #faf7f0;
    --mv-warm:        #f5efe3;
    --mv-white:       #ffffff;
    --mv-charcoal:    #2c2c2c;
    --mv-text:        #3d3d3d;
    --mv-text-light:  #6b6b6b;
    --mv-border:      #e8e2d6;
    --font-display:   'DM Serif Display', Georgia, serif;
    --font-body:      'Manrope', -apple-system, sans-serif;
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--mv-text);
    background: var(--mv-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── NAVIGATION ─── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.5s var(--ease-out);
    background: transparent;
}
.nav.scrolled {
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--mv-border);
    padding: 0.75rem 2rem;
}
.nav.scrolled .nav-links a           { color: var(--mv-text); }
.nav.scrolled .nav-links a:hover     { color: var(--mv-forest); }
.nav.scrolled .nav-links a.active    { color: var(--mv-forest); }
.nav.scrolled .nav-links a.active::after { background: var(--mv-forest); }
.nav.scrolled .nav-login             { border-color: var(--mv-border); color: var(--mv-forest) !important; }
.nav.scrolled .nav-login:hover       { border-color: var(--mv-forest); background: rgba(26,46,26,0.05); }
.nav.scrolled .nav-mobile-toggle span { background: var(--mv-forest); }

.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--mv-forest);
}
.nav-logo-img {
    height: 38px; width: auto; object-fit: contain;
    transition: opacity 0.3s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--mv-cream);
    font-size: 0.9rem; font-weight: 500;
    position: relative; transition: color 0.3s;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--mv-gold);
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover            { color: var(--mv-white); }
.nav-links a:hover::after     { width: 100%; }
.nav-links a.active           { color: var(--mv-white); font-weight: 600; }
.nav-links a.active::after    { width: 100%; }

.nav-cta {
    background: var(--mv-gold); color: var(--mv-forest) !important;
    padding: 0.7rem 1.75rem; border-radius: 50px;
    font-weight: 600; font-size: 0.85rem;
    transition: all 0.3s var(--ease-out);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 0 1px var(--mv-gold), 0 4px 15px rgba(222,162,35,0.25);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--mv-gold-light); transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 0 1px var(--mv-gold-light), 0 8px 30px rgba(222,162,35,0.4);
    border-color: rgba(255,255,255,0.8);
}

.nav-login {
    background: transparent;
    border: 1.5px solid rgba(250,247,240,0.4);
    color: var(--mv-cream) !important;
    padding: 0.6rem 1.25rem; border-radius: 50px;
    font-weight: 600; font-size: 0.85rem;
    transition: all 0.3s var(--ease-out);
    margin-left: -0.5rem;
}
.nav-login::after { display: none !important; }
.nav-login:hover  { border-color: var(--mv-cream); background: rgba(250,247,240,0.1); }

/* Mobile toggle */
.nav-mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative; z-index: 1001;
    flex-shrink: 0;
}
.nav-mobile-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--mv-cream); position: absolute; left: 0;
    transition: all 0.3s var(--ease-out);
}
.nav-mobile-toggle span:nth-child(1) { top: 0; }
.nav-mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-mobile-toggle span:nth-child(3) { bottom: 0; }
.nav-mobile-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.3s var(--ease-out);
}
.btn-primary { background: var(--mv-gold); color: var(--mv-forest); }
.btn-primary:hover {
    background: var(--mv-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(222, 162, 35, 0.3);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(250, 247, 240, 0.3);
    color: var(--mv-cream);
}
.btn-outline:hover { border-color: var(--mv-cream); background: rgba(250,247,240,0.05); }
.btn-outline-dark {
    background: transparent;
    border: 1.5px solid var(--mv-forest);
    color: var(--mv-forest);
}
.btn-outline-dark:hover { background: var(--mv-forest); color: var(--mv-cream); }
.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─── SECTION SHARED ─── */
.section { padding: 7rem 2rem; }
.section-header { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.section-eyebrow {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--mv-sage); margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--mv-forest);
    line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.1rem; line-height: 1.7; color: var(--mv-text-light); }

/* ─── TRUST BAR ─── */
.trust-bar {
    background: var(--mv-white);
    border-bottom: 1px solid var(--mv-border);
    padding: 1.75rem 0;
    overflow: hidden; position: relative;
}
.trust-bar::before, .trust-bar::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 120px;
    z-index: 2; pointer-events: none;
}
.trust-bar::before { left: 0;  background: linear-gradient(to right, var(--mv-white), transparent); }
.trust-bar::after  { right: 0; background: linear-gradient(to left,  var(--mv-white), transparent); }
.trust-bar-track {
    display: flex; align-items: center;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.trust-bar:hover .trust-bar-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.trust-bar-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--mv-text-light);
    white-space: nowrap; padding: 0 2.5rem 0 2rem; flex-shrink: 0;
}
.trust-logo {
    opacity: 0.4; transition: opacity 0.3s;
    font-family: var(--font-body); font-weight: 700;
    font-size: 0.95rem; color: var(--mv-charcoal);
    white-space: nowrap; letter-spacing: 0.02em;
    padding: 0 2rem; flex-shrink: 0;
}
.trust-logo:hover { opacity: 0.75; }
.trust-logo-img {
    height: 24px; width: auto;
    filter: grayscale(1); opacity: 0.4;
    transition: opacity 0.3s; flex-shrink: 0;
}
.trust-logo-img:hover { opacity: 0.75; }
.trust-divider {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--mv-border); flex-shrink: 0;
}

/* ─── GLASSMORPHISM CARD BASE ─── */
.glass-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.5s var(--ease-out);
    position: relative; overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.7);
}
.glass-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%);
    background-size: 300% 300%; background-position: 100% 100%;
    transition: background-position 0.6s var(--ease-out); pointer-events: none;
}
.glass-card:hover::after { background-position: 0% 0%; }

/* ─── CTA BANNER ─── */
.cta-banner {
    background: linear-gradient(135deg, var(--mv-forest) 0%, #12103a 100%);
    padding: 6rem 2rem; text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(222,162,35,0.08), transparent),
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(99,102,241,0.06), transparent);
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--mv-cream); margin-bottom: 1rem; line-height: 1.15;
}
.cta-banner p {
    color: rgba(250,247,240,0.6); font-size: 1.1rem;
    margin-bottom: 2.5rem; line-height: 1.6;
}
.cta-banner .btn-primary { font-size: 1rem; padding: 1.1rem 2.5rem; }

/* ─── FOOTER ─── */
.footer { background: #0f0e2a; padding: 4rem 2rem 2rem; color: rgba(250,247,240,0.5); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(250,247,240,0.08);
}
.footer-logo-img { height: 32px; width: auto; object-fit: contain; filter: brightness(1.5); }
.footer-brand-text { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; max-width: 300px; }
.footer h4 {
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(250,247,240,0.3); margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(250,247,240,0.5); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--mv-gold); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2rem; font-size: 0.8rem;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(250,247,240,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--mv-gold); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.5); }
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ─── COOKIE BANNER ─── */
#cookieBanner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 0.85rem 2rem;
    background: rgba(30,27,75,0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 0.5s var(--ease-out);
}
#cookieBanner .cookie-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; flex-wrap: wrap;
}
#cookieBanner p { color: rgba(250,247,240,0.8); font-size: 0.8rem; line-height: 1.5; margin: 0; flex: 1; min-width: 240px; }
#cookieBanner a { color: var(--mv-gold); text-decoration: underline; font-weight: 500; }
#cookieBanner button {
    padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; background: var(--mv-gold); border: none; color: var(--mv-forest);
    font-family: var(--font-body); flex-shrink: 0; transition: all 0.3s;
}
#cookieBanner button:hover { background: var(--mv-gold-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; inset: 0;
        background: var(--mv-cream);
        justify-content: center; align-items: center;
        gap: 2rem; z-index: 999;
    }
    .nav-links.open a { font-size: 1.3rem; color: var(--mv-forest) !important; }
    .nav-links.open a.active { color: var(--mv-forest) !important; }
    .nav-links.open .nav-cta {
        background: var(--mv-gold); color: var(--mv-forest) !important;
        padding: 0.85rem 2rem;
    }
    .nav-links.open .nav-login {
        border-color: var(--mv-forest); color: var(--mv-forest) !important;
    }
    .section { padding: 4.5rem 1.5rem; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .btn { justify-content: center; }
}
