/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #a855f7;
    --color-primary-light: #c084fc;
    --color-primary-dark: #7c3aed;
    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;
    --color-white: #ffffff;
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-05: rgba(255, 255, 255, 0.05);
    --color-dark: #0a0a0f;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-dark);
    color: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Video Background ===== */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, 
            rgba(10, 10, 15, 0.6) 0%, 
            rgba(10, 10, 15, 0.4) 30%,
            rgba(10, 10, 15, 0.5) 60%,
            rgba(10, 10, 15, 0.85) 100%
        ),
        linear-gradient(135deg, 
            rgba(168, 85, 247, 0.1) 0%, 
            rgba(6, 182, 212, 0.08) 100%
        );
}

/* ===== Particles Canvas ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===== Main Container ===== */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

/* ===== Top Bar ===== */
.top-bar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    animation: fadeSlideDown 1s var(--transition-smooth) forwards;
    opacity: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotateDiamond 6s ease-in-out infinite;
    display: inline-block;
}

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

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--color-white-05);
    border: 1px solid var(--color-white-10);
    color: var(--color-white-50);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--color-white);
    background: var(--color-white-10);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    gap: 2rem;
    padding: 2rem 0;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: var(--color-white-05);
    border: 1px solid var(--color-white-10);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white-70);
    backdrop-filter: blur(20px);
    animation: fadeSlideUp 1s 0.2s var(--transition-smooth) forwards;
    opacity: 0;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Title */
.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    animation: fadeSlideUp 1s 0.4s var(--transition-smooth) forwards;
    opacity: 0;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light), var(--color-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-white-70);
    line-height: 1.7;
    max-width: 550px;
    font-weight: 300;
    animation: fadeSlideUp 1s 0.6s var(--transition-smooth) forwards;
    opacity: 0;
}

/* ===== Countdown Timer ===== */
.countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeSlideUp 1s 0.8s var(--transition-smooth) forwards;
    opacity: 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    background: var(--color-white-05);
    border: 1px solid var(--color-white-10);
    backdrop-filter: blur(20px);
    transition: all 0.3s var(--transition-smooth);
}

.countdown-item:hover {
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.countdown-number {
    font-family: var(--font-secondary);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-white), var(--color-white-70));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white-50);
    font-weight: 500;
}

.countdown-separator {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    animation: blink 1s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

/* ===== Subscribe Form ===== */
.subscribe-form {
    width: 100%;
    max-width: 520px;
    animation: fadeSlideUp 1s 1s var(--transition-smooth) forwards;
    opacity: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-white-05);
    border: 1px solid var(--color-white-10);
    border-radius: 16px;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s var(--transition-smooth);
}

.input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1), 0 8px 30px rgba(168, 85, 247, 0.15);
}

.input-icon {
    color: var(--color-white-50);
    flex-shrink: 0;
    transition: color 0.3s var(--transition-smooth);
}

.input-wrapper:focus-within .input-icon {
    color: var(--color-primary-light);
}

.input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 0.85rem 0.75rem;
    width: 100%;
}

.input-wrapper input::placeholder {
    color: var(--color-white-50);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.submit-btn:active {
    transform: scale(0.97);
}

.submit-btn .btn-arrow {
    transition: transform 0.3s var(--transition-smooth);
}

.submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.form-note {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--color-white-50);
    text-align: center;
}

/* ===== Success Message ===== */
.success-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-weight: 500;
    animation: fadeSlideUp 0.5s var(--transition-bounce) forwards;
}

.success-message.visible {
    display: flex;
}

/* ===== Audio Toggle ===== */
.audio-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white-10);
    border: 1px solid var(--color-white-20);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition-smooth);
}

.audio-toggle:hover {
    background: var(--color-white-20);
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-white-50);
    font-size: 0.8rem;
    animation: fadeSlideUp 1s 1.2s var(--transition-smooth) forwards;
    opacity: 0;
}

/* ===== Animations ===== */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(0.85); 
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes rotateDiamond {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes numberFlip {
    0% { 
        transform: translateY(-100%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(5%) scale(1.02);
        opacity: 1;
    }
    100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.number-flip {
    animation: numberFlip 0.4s var(--transition-bounce) forwards;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 1rem 0.5rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .submit-btn .btn-text {
        display: none;
    }

    .submit-btn {
        padding: 0.85rem;
        border-radius: 10px;
    }

    .hero {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .countdown-item {
        min-width: 50px;
        padding: 0.75rem 0.35rem;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }
}
