:root {
    --bg-primary: #03030b;
    --bg-secondary: #0a0a1a;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-primary: #4F46E5;
    --accent-secondary: #7C3AED;
    --accent-glow: rgba(79, 70, 229, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Layout Wrapper */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
}

.highlight {
    background: linear-gradient(135deg, #A78BFA 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
    transition: transform 0.3s ease;
}

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

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, rgba(3,3,11,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
}

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 0 auto 48px;
    width: 100%;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.status-text {
    color: var(--accent-primary);
    font-weight: 500;
    text-shadow: 0 0 10px var(--accent-glow);
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar-fill {
    height: 100%;
    width: 85%; /* Just a visual representation */
    background: linear-gradient(90deg, #4F46E5, #A78BFA);
    border-radius: 999px;
    position: relative;
    box-shadow: 0 0 15px var(--accent-glow);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 24px);
    margin-bottom: 60px;
}

.countdown-card {
    position: relative;
    width: clamp(70px, 15vw, 120px);
    height: clamp(80px, 17vw, 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.countdown-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.countdown-card .number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(to bottom, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(30px);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.countdown-card .label {
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    transform: translateZ(20px);
}

.countdown-separator {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.5;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.1; }
}

/* Buttons */
.actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.btn svg {
    transition: transform 0.3s ease;
    z-index: 2;
}

.btn span {
    z-index: 2;
}

/* Primary Button - Discord */
.btn-primary {
    background: #5865F2;
    border: 1px solid #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:hover svg {
    transform: scale(1.1) rotate(-5deg);
    animation: floatingIcon 1.5s ease-in-out infinite alternate;
}

@keyframes floatingIcon {
    0% { transform: scale(1.1) rotate(-5deg) translateY(0); }
    100% { transform: scale(1.1) rotate(-5deg) translateY(-3px); }
}

/* Secondary Button - Instagram */
.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    background-clip: padding-box;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-secondary:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

.btn-secondary:hover svg {
    transform: scale(1.1);
}

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

/* Features Section */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 48px 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    transform: translateZ(30px);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    transform: translateZ(20px);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.powered-by a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.powered-by a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.powered-by a:hover {
    color: var(--accent-primary);
}

.powered-by a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }
    
    .actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero::before {
        width: 100%;
        height: 100%;
    }
}
