:root {
    --bg-black: #010101;
    --gold: #C5A028;
    --gold-bright: #F5D161;
    --gold-dark: #6B5610;
    --blue-tech: #0055EE;
    --glass: rgba(255, 255, 255, 0.015);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Base resets handled by Tailwind */
html {
    scroll-behavior: smooth;
    background-color: #020202;
    /* Match canvas background */
}

/* ... existing utils ... */
.bg-gold {
    background-color: var(--gold) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}


body {
    background-color: transparent !important;
    /* Ensure transparent body */
    color: #e0e0e0;
    cursor: default;
    min-height: 100vh;
    position: relative;
}

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Base layer */
}

/* Ensure all main content sits above the stars */
header,
main,
footer,
section,
.overlay {
    position: relative;
    z-index: 10;
}

/* --- MAGNETIC EFFECT --- */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

/* --- TILT EFFECT --- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.tilt-inner {
    transform: translateZ(30px);
}

/* --- COSMIC BACKGROUND --- */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- TYPOGRAPHY ELITE --- */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: goldShine 5s linear infinite;
}

@keyframes goldShine {
    to {
        background-position: 200% center;
    }
}

.text-glow-blue {
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

/* --- GLASSMORPHISM 2.0 --- */
.glass-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 4px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.05);
}

/* --- CHAT INTERFACE --- */
.chat-window {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.msg-ai {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--gold);
    padding: 15px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

.msg-user {
    background: var(--gold);
    color: #000;
    padding: 12px 16px;
    border-radius: 12px 12px 0 12px;
    align-self: flex-end;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
}

/* --- REVEAL ON SCROLL --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LOGO FX --- */
.filter-gold {
    filter: invert(72%) sepia(26%) saturate(1067%) hue-rotate(1deg) brightness(97%) contrast(89%);
}

/* --- MODAL SYSTEM --- */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 20px;
}

.legal-modal.active {
    display: flex;
}

.modal-content {
    background: #080808;
    border: 1px solid var(--gold-dark);
    max-width: 800px;
    width: 100%;
    padding: 40px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
}

/* --- CONTACT FORM --- */
#contact input,
#contact textarea {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

#contact-form label {
    transition: all 0.3s ease;
}

#contact button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#contact button[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

#contact button[type="submit"]:hover::after {
    left: 100%;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* --- SECURITY: HONEYPOT --- */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}