/* Brand CSS Variables */
:root {
    --bg-dark: #05060a;
    --bg-navy: #090c15;
    
    /* Primary Esports Dual Colors */
    --color-red: #ff1f44; /* RCB-inspired Esports Red */
    --color-blue: #0066ff; /* MI-inspired Esports Blue */
    --color-gold: #e5b33a; /* Radiant Championship Gold */
    
    /* Glows & Gradients */
    --glow-red: rgba(255, 31, 68, 0.45);
    --glow-blue: rgba(0, 102, 255, 0.45);
    --glow-gold: rgba(229, 179, 58, 0.4);
    
    /* Text */
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
    --text-dark: #111827;
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Background Grids & Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: 2;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* Dynamic Energy Flares & Ambient Light */
.energy-burst {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

.red-glow {
    width: 50vw;
    height: 50vw;
    top: -15vw;
    left: -10vw;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
    animation: slowPulseRed 12s infinite alternate;
}

.blue-glow {
    width: 55vw;
    height: 55vw;
    bottom: -20vw;
    right: -10vw;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    animation: slowPulseBlue 14s infinite alternate;
}

.gold-flare {
    width: 35vw;
    height: 35vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    opacity: 0.12;
    animation: slowPulseGold 10s infinite alternate;
}

/* Main Container Layout */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: space-between;
    z-index: 10;
    position: relative;
}

/* Header Technical Status Bars */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tech-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 1rem;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

.tech-bar.right {
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    border-right: 2px solid var(--color-gold);
}

.tech-bar.left {
    border-left: 2px solid var(--color-red);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-red);
    animation: pulse 1.5s infinite;
}

.tech-label {
    font-weight: 600;
}

/* Centerpiece Brand Logo and Typography */
.brand-section {
    text-align: center;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.brand-logo-container {
    position: relative;
    padding: 1.5rem 3.5rem;
    margin-bottom: 1.2rem;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(135deg, #fff 40%, #c4cfde 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    position: relative;
    user-select: none;
}

.brand-logo::after {
    content: 'DOUBLE XP';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 179, 58, 0.2), transparent);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
    pointer-events: none;
}

.accent-text {
    background: linear-gradient(135deg, var(--color-red) 30%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 31, 68, 0.4));
}

/* Angular decorative framing */
.logo-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--color-gold);
    pointer-events: none;
}

.logo-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    clip-path: polygon(0 0, 100% 0, 100% 15%, 15% 15%, 15% 100%, 0 100%);
}

.logo-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    clip-path: polygon(85% 0, 100% 0, 100% 100%, 0 100%, 0 85%, 85% 85%);
}

.brand-subtext {
    font-family: var(--font-tech);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.tagline-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-gold);
    font-family: var(--font-tech);
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    font-weight: 600;
}

.tagline-arrow {
    opacity: 0.7;
    animation: pulseArrow 2s infinite alternate;
}

/* Under Construction Status Styles */
.status-section {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem 0;
}

.status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: rgba(9, 12, 21, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(229, 179, 58, 0.05);
    position: relative;
    overflow: hidden;
}

.status-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold), var(--color-red));
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(229, 179, 58, 0.08);
    border: 1px solid rgba(229, 179, 58, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.status-dot.warning-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-gold);
    animation: warningPulse 1.5s infinite;
}

.status-label {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--color-gold);
}

.status-description {
    font-family: var(--font-tech);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--text-gray);
    text-align: center;
    font-weight: 600;
}

.tech-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.tech-progress-fill {
    height: 100%;
    width: 75%; /* Simulating 75% complete */
    background: linear-gradient(90deg, var(--color-red), var(--color-gold));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 31, 68, 0.5);
    position: relative;
    animation: progressFlow 3s infinite linear;
    background-size: 200% auto;
}

@keyframes warningPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px var(--color-gold); }
    50% { transform: scale(1.3); opacity: 0.5; box-shadow: 0 0 12px var(--color-gold); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 4px var(--color-gold); }
}

@keyframes progressFlow {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

/* Call To Action Panel */
.cta-section {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
}

.cta-card {
    background: rgba(9, 12, 21, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 2.2rem;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 31, 68, 0.03);
    position: relative;
}

.cta-card::after {
    content: '';
    position: absolute;
    top: -1px;
    right: 30px;
    width: 80px;
    height: 2px;
    background: var(--color-gold);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, #fff, var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtext {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

/* Premium Email input and Join button */
.notify-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.email-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.2rem;
    background: rgba(5, 7, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: var(--transition-smooth);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-tech);
    font-size: 0.95rem;
    letter-spacing: 0.15em;
}

.email-input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
    background: rgba(5, 7, 10, 0.95);
}

.email-input:focus + .input-focus-border {
    width: 100%;
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--color-red), var(--color-gold));
    transition: var(--transition-smooth);
}

.submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--color-red) 0%, #d01533 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 31, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff3c5b 0%, var(--color-red) 100%);
    box-shadow: 0 4px 25px rgba(255, 31, 68, 0.5);
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Status / Response Messages */
.form-message {
    margin-top: 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.form-message.success {
    opacity: 1;
    height: auto;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.form-message.error {
    opacity: 1;
    height: auto;
    color: var(--color-red);
    text-shadow: 0 0 10px rgba(255, 31, 68, 0.2);
}

/* Footer Section */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(229, 179, 58, 0.05);
    box-shadow: 0 0 15px rgba(229, 179, 58, 0.1);
    transform: translateY(-3px);
}

.footer-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-details .separator {
    color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseArrow {
    0% { opacity: 0.3; transform: translateX(-2px); }
    100% { opacity: 1; transform: translateX(2px); }
}

@keyframes slowPulseRed {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.1) translate(5%, 5%); opacity: 0.32; }
}

@keyframes slowPulseBlue {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.15) translate(-5%, -5%); opacity: 0.35; }
}

@keyframes slowPulseGold {
    0% { transform: scale(1); opacity: 0.08; }
    100% { transform: scale(1.2); opacity: 0.15; }
}

/* Responsive Scaling */
@media (min-width: 768px) {
    .notify-form {
        flex-direction: row;
    }
    
    .submit-btn {
        width: auto;
        white-space: nowrap;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    
    .timer-container {
        gap: 1.8rem;
        padding: 2rem 3rem;
    }
    
    .timer-box {
        min-width: 100px;
    }
    
    .brand-section {
        margin: 4rem 0;
    }
}
