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

:root {
    --gold-primary: #ffce00;
    --gold-secondary: #ff8c00;
    --red-dark: #1a0202;
    --red-glow: #ff2a00;
    --glass-bg: rgba(20, 5, 5, 0.5);
    --glass-border: rgba(255, 206, 0, 0.2);
}

body {
    background-color: var(--red-dark);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- Background GIF --- */
.bg-gif {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px) brightness(0.35);
    transform: scale(1.1); /* Prevent blurred edges from bleeding inward */
    z-index: 0;
}

/* --- Fire Sparks --- */
.sparks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.spark {
    position: absolute;
    bottom: -20px;
    width: 3px;
    height: 3px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--gold-secondary), 0 0 20px 2px var(--red-glow);
    animation: spark-rise infinite ease-in;
    opacity: 0;
}

/* Generating sparks with nth-child math in CSS */
.spark:nth-child(1) { left: 5%; animation-duration: 3s; animation-delay: 0s; }
.spark:nth-child(2) { left: 15%; animation-duration: 4.5s; animation-delay: 1.2s; }
.spark:nth-child(3) { left: 25%; animation-duration: 3.2s; animation-delay: 0.5s; }
.spark:nth-child(4) { left: 35%; animation-duration: 5s; animation-delay: 2.1s; }
.spark:nth-child(5) { left: 45%; animation-duration: 3.8s; animation-delay: 0.8s; }
.spark:nth-child(6) { left: 55%; animation-duration: 4.2s; animation-delay: 1.5s; }
.spark:nth-child(7) { left: 65%; animation-duration: 3.5s; animation-delay: 0.2s; }
.spark:nth-child(8) { left: 75%; animation-duration: 4.8s; animation-delay: 2.8s; }
.spark:nth-child(9) { left: 85%; animation-duration: 3.1s; animation-delay: 1.1s; }
.spark:nth-child(10) { left: 95%; animation-duration: 5.5s; animation-delay: 0.4s; }
.spark:nth-child(11) { left: 10%; animation-duration: 4.1s; animation-delay: 2.3s; }
.spark:nth-child(12) { left: 20%; animation-duration: 3.6s; animation-delay: 1.7s; }
.spark:nth-child(13) { left: 30%; animation-duration: 4.9s; animation-delay: 0.9s; }
.spark:nth-child(14) { left: 40%; animation-duration: 3.3s; animation-delay: 2.5s; }
.spark:nth-child(15) { left: 50%; animation-duration: 4.4s; animation-delay: 0.6s; }
.spark:nth-child(16) { left: 60%; animation-duration: 3.9s; animation-delay: 1.9s; }
.spark:nth-child(17) { left: 70%; animation-duration: 5.2s; animation-delay: 0.3s; }
.spark:nth-child(18) { left: 80%; animation-duration: 3.4s; animation-delay: 1.4s; }
.spark:nth-child(19) { left: 90%; animation-duration: 4.7s; animation-delay: 2.6s; }
.spark:nth-child(20) { left: 100%; animation-duration: 3.7s; animation-delay: 0.7s; }

@keyframes spark-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.2) translateX(30px); opacity: 0; }
}

/* --- Layout --- */
.top-nav {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: flex-start;
}

.brand-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.hero-section {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 206, 0, 0.05);
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px;
    gap: 40px;
    overflow: visible;
}

/* --- Left: Dragon Showcase --- */
.card-left {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.dragon-showcase {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dragon-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 60%);
    animation: breathe 4s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes breathe {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.7; }
    to { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.dragon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 2;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dragon-showcase:hover .dragon-img {
    transform: translateY(-10px) scale(1.03);
}

.floating-badge {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    background: linear-gradient(135deg, #111, #333);
    border: 2px solid var(--gold-primary);
    padding: 12px 30px;
    border-radius: 50px;
    z-index: 3;
    font-weight: 900;
    font-size: 18px;
    color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(255, 206, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float-badge 3s ease-in-out infinite alternate;
}

@keyframes float-badge {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* --- Right: Text Content --- */
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content {
    margin-bottom: 40px;
}

.pre-headline {
    color: var(--gold-secondary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 140, 0, 0.5);
}

.main-headline {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gold-gradient {
    background: linear-gradient(to right, #ffef96, #ffce00, #ff8c00, #ffce00, #ffef96);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: 18px;
    color: #cccccc;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- Premium Button --- */
.action-area {
    position: relative;
}

.premium-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 60px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #1a0a00;
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
    border-radius: 100px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.4), inset 0 2px 5px rgba(255,255,255,0.6);
    border: 2px solid transparent;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    z-index: 1;
    animation: shine-sweep 3s infinite;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.premium-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 45px rgba(255, 140, 0, 0.6), inset 0 2px 5px rgba(255,255,255,0.6);
    background: linear-gradient(135deg, #ffef96, var(--gold-primary));
    color: #000;
}

.premium-btn:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* --- Responsive Design --- */
@media (max-width: 968px) {
    .glass-card {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    
    .pre-headline {
        margin: 0 auto 15px auto;
    }
    
    .dragon-showcase {
        max-width: 600px;
    }
    
    .main-headline {
        font-size: 42px;
    }
}

@media (max-width: 576px) {
    .top-nav {
        justify-content: center;
        padding: 20px;
    }
    
    .brand-logo {
        height: 45px;
    }
    
    .glass-card {
        padding: 30px 15px;
        border-radius: 20px;
    }
    
    .dragon-showcase {
        max-width: 100%;
    }
    
    .main-headline {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .premium-btn {
        padding: 15px 40px;
        font-size: 18px;
        width: 100%;
    }
}
