/* --- Design System & CSS Variables --- */
:root {
    --bg-color: hsl(265, 45%, 4%);
    --card-bg: hsla(265, 45%, 8%, 0.4);
    --card-border: hsla(265, 30%, 50%, 0.15);
    --card-border-hover: hsla(45, 100%, 75%, 0.3);
    
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(265, 20%, 75%);
    --text-muted: hsl(265, 15%, 55%);
    
    --accent-gold: hsl(45, 95%, 62%);
    --accent-gold-glow: hsla(45, 95%, 62%, 0.3);
    --accent-purple: hsl(270, 90%, 65%);
    --accent-purple-glow: hsla(270, 90%, 65%, 0.25);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
}

/* --- Interactive Particle Canvas --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* --- Ambient Glow Orbs --- */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: screen;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
    animation: drift-slow 25s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -10%;
    left: 5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, hsla(240, 80%, 60%, 0.15) 0%, transparent 75%);
    animation: drift-slow 35s infinite alternate-reverse ease-in-out;
}

@keyframes drift-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 10%) scale(1.15);
    }
}

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

/* --- Header Section --- */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: default;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
    transition: var(--transition-smooth);
}

.logo-wrapper:hover .logo {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.25em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsing Golden Star in Logo */
.pulsing-star {
    animation: pulse-star 3s infinite alternate ease-in-out;
}

@keyframes pulse-star {
    0% {
        r: 2.5;
        fill: #FFAE19;
        filter: drop-shadow(0 0 2px #FFAE19);
    }
    100% {
        r: 4;
        fill: #FFFDF4;
        filter: drop-shadow(0 0 8px rgba(255, 229, 158, 0.9));
    }
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    max-width: 750px;
    margin-bottom: 2.5rem;
}

.badge {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    background: hsla(45, 95%, 62%, 0.04);
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
}

.badge:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.1), 0 0 15px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #FFFFFF 0%, #D8CDE8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Countdown Section --- */
.countdown-section {
    width: 100%;
    margin-bottom: 3.5rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item-wrapper {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    padding: 1px;
    transition: var(--transition-smooth);
}

.countdown-item-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--card-border) 0%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.countdown-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.countdown-item-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-purple-glow);
}

.countdown-item-wrapper:hover::before {
    background: linear-gradient(135deg, var(--card-border-hover) 0%, var(--accent-purple) 100%);
}

.countdown-item .number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.countdown-item .label {
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* --- Subscription Section --- */
.subscription-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 4rem;
}

.subscribe-form {
    width: 100%;
    position: relative;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 0.35rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.input-group:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px var(--accent-gold-glow);
    background: rgba(255, 255, 255, 0.05);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #B89626 100%);
    color: hsl(265, 45%, 4%);
    border: none;
    outline: none;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.input-group button:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

.input-group button:hover .arrow-icon {
    transform: translateX(4px);
}

.form-feedback {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    min-height: 1.2rem;
    transition: var(--transition-smooth);
    font-weight: 400;
}

.form-feedback.success {
    color: hsl(140, 80%, 70%);
}

.form-feedback.error {
    color: hsl(0, 85%, 70%);
}

/* --- Footer Section --- */
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
}

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

.social-link {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --- Custom Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: hsla(265, 40%, 10%, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast.success {
    border-color: hsla(140, 80%, 45%, 0.3);
    background: hsla(140, 60%, 5%, 0.85);
}

.toast.success .toast-icon {
    color: hsl(140, 80%, 65%);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.88rem;
    font-weight: 400;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .countdown-container {
        gap: 0.75rem;
    }
    
    .countdown-item {
        width: 70px;
        height: 70px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .input-group input {
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--card-border);
        border-radius: 50px;
        padding: 1rem 1.5rem;
    }
    
    .input-group button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .toast {
        min-width: 0;
        width: 100%;
    }
}
