/* Design System & Variables */
:root {
    /* Colors */
    --black: #0F0F0F;
    --graphite: #1C1C1C;
    --graphite-light: #2A2A2A;
    --white: #FFFFFF;
    --white-dimmed: rgba(255, 255, 255, 0.7);
    --gold: #C9A227;
    --gold-hover: #E3BA3B;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Animations */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background-color: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--graphite-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Background */
.bg-image {
    position: fixed;
    inset: 0;
    background-image: url('assets/images/bg.jpg'); /* We will use a placeholder if not present */
    background-color: var(--graphite);
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    transform: scale(1.05); /* Prevents blur bleeding */
    z-index: -2;
}

/* Fallback gradient if no image */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(28, 28, 28, 0.95) 100%);
    z-index: -1;
}

/* Layout Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Header & Logo */
.header {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 0;
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
}

.logo-img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 30vh;
    object-fit: contain;
    margin-left: 0;
    transform: translateX(-10px); /* Adjusts for potential transparent padding inside the image */
}

/* Main Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin-top: 0;
}

/* Badge (Em breve) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease forwards 0.2s;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animated-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Typography */
.headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
    animation: fadeInUp 1s ease forwards 0.4s;
    opacity: 0;
}

.subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--white-dimmed);
    margin-bottom: 0.75rem;
    max-width: 500px;
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
}

.subtitle:last-of-type {
    margin-bottom: 1.5rem;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease forwards 0.8s;
    opacity: 0;
}

.countdown.hidden {
    display: none;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.time-box small {
    font-size: 0.75rem;
    color: var(--white-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 1s ease forwards 1s;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn i {
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease forwards 1.2s;
    opacity: 0;
}

.footer p {
    font-size: 0.875rem;
    color: var(--white-dimmed);
}

/* Keyframes */
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .countdown {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-box {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 769px) {
    .logo-img {
        max-height: 36vh;
    }
}
