:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    overflow-x: hidden;
    color: var(--light);
}

.wrapper {
    min-height: 100vh;
    position: relative;
}

/* Animated Background */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-sphere {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, rgba(79, 70, 229, 0) 70%);
    top: -30vw;
    right: -10vw;
    animation: float 20s ease-in-out infinite;
}

.gradient-sphere-2 {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0) 70%);
    bottom: -25vw;
    left: -20vw;
    animation: float 25s ease-in-out infinite reverse;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 80px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.logo-container:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    animation: pulse 3s ease-in-out infinite;
}

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

.logo-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Space Grotesk', monospace;
}

.logo-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    letter-spacing: 1px;
}

/* Hero Content */
.badge-launch {
    display: inline-block;
    background: rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid rgba(79, 70, 229, 0.4);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Space Grotesk', monospace;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delayed {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Countdown Timer */
.countdown-wrapper {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 20px;
    border: 1px solid var(--glass-border);
}

.countdown-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-card {
    text-align: center;
    min-width: 100px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', monospace;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 10px;
    opacity: 0.8;
}

/* Subscription Card */
.subscription-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.subscription-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', monospace;
}

.subscription-text {
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Form Styles */
.input-group-icon {
    position: relative;
}

.input-group-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    z-index: 5;
    font-size: 1rem;
}

.input-group-icon .form-control {
    padding-left: 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.input-group-icon .form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.input-group-icon .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Error styling */
.field-subscriptionform-name .help-block,
.field-subscriptionform-email .help-block {
    display: none;
}

/* Submit Button */
.btn-subscribe {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-subscribe::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: left 0.5s ease;
}

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

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

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

/* Privacy Note */
.privacy-note {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

.privacy-note i {
    margin-right: 6px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* Footer */
.footer {
    margin-top: 80px;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Alert Styles */
.alert-custom {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .countdown-card {
        min-width: 70px;
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .subscription-card {
        padding: 25px;
    }
    
    .logo-container {
        padding: 10px 20px;
    }
    
    .logo-name {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .countdown-grid {
        gap: 10px;
    }
    
    .countdown-card {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
}

/* Parallax background speed layers */
.animated-bg {
    transform: translateZ(0);
    will-change: transform;
}

.gradient-sphere,
.gradient-sphere-2 {
    transition: transform 0.1s linear; /* smooth parallax movement */
}

.is-invalid {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: #ef4444;
    text-align: left;
}