@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body {
    background-color: #060e1f;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* ── Smooth Scrolling ────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Scrollbar Styling ───────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #060e1f;
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 168, 75, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 168, 75, 0.3);
}

/* ── Vault Data Blur Interaction ─────────────────────── */
.vault-blur {
    filter: blur(12px);
    transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.vault-blur:hover {
    filter: blur(4px);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vault-blur-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ── Gold Glow Buttons ───────────────────────────────── */
.btn-gold-glow {
    position: relative;
    background: transparent;
    border: 1px solid rgba(200, 168, 75, 0.3);
    color: #c8a84b;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-gold-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(200, 168, 75, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
    z-index: -1;
}

.btn-gold-glow:hover {
    border-color: #c8a84b;
    color: #ebd699;
    box-shadow: 0 0 20px rgba(200, 168, 75, 0.2);
}

.btn-gold-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* ── Vault Animation (Mechanical Open) ───────────────── */
.vault-door-left, .vault-door-right {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 50vw;
    background: #02050a;
    z-index: 100;
    display: flex;
    align-items: center;
    border-right: 2px solid #1a2744;
}
.vault-door-right {
    right: 0;
    border-right: none;
    border-left: 2px solid #1a2744;
    justify-content: flex-start;
}
.vault-door-left {
    left: 0;
    justify-content: flex-end;
}

.vault-gear {
    width: 100px;
    height: 100px;
    border: 4px dashed #c8a84b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 3s linear infinite;
}

.vault-door-left .vault-gear {
    right: -50px;
}
.vault-door-right .vault-gear {
    left: -50px;
}

@keyframes spin {
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ── Background Texture Overlay ──────────────────────── */
.bg-texture-overlay {
    background-image: url('/assets/bg_blur_texture.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ── Section Reveal Animation Defaults ───────────────── */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.page-fade-in {
    opacity: 0;
    transform: translateY(20px);
}

/* ── Legal Content Styling ───────────────────────────── */
.legal-content h2 {
    font-family: 'Inter', sans-serif;
}

/* ── Select Dropdown Arrow Override ──────────────────── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c8a84b' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

/* ── Gold Divider ────────────────────────────────────── */
.gold-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 168, 75, 0.25), transparent);
}

/* ── Page Transition: Expensive Fade ─────────────────── */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageEnter 0.5s ease forwards;
}

/* Fade-out class applied by JS before navigation */
body.page-exit {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── Focus Styles (Accessibility) ────────────────────── */
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 1px solid rgba(200, 168, 75, 0.4);
    outline-offset: 2px;
}
