/* Root variables for consistent theming */
:root {
    --primary-color: #6366f1;
    --primary-hover: #5855eb;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --dark-overlay: rgba(15, 23, 42, 0.85);
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-radius: 12px;
    --box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    position: relative;
}

/* Background overlay with animated pattern */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Main container */
.main-container {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Brand logo section */
.brand-logo {
    margin-bottom: 3rem;
}

.rocket-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Main heading */
.main-heading h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-heading p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Countdown timer */
.countdown-section {
    margin: 4rem 0;
}

.countdown-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.countdown-timer {
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

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

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Email subscription form */
.subscription-section {
    margin: 4rem 0;
}

.subscription-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.email-form {
    margin: 2rem 0;
}

.email-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

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

.email-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: white;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form feedback */
.form-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.form-feedback.error {
    color: var(--error-color);
}

.form-feedback.success {
    color: var(--success-color);
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-top: 1rem;
    animation: slideInUp 0.5s ease-out;
}

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

/* Contact section */
.contact-section {
    margin: 4rem 0 2rem 0;
}

.contact-title,
.social-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-text {
    color: var(--text-light);
}

/* Social media links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.social-link i {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.footer-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem;
}

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

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-out 0.8s both;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .main-heading h2 {
        font-size: 2rem;
    }
    
    .main-heading p {
        font-size: 1.1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-item {
        padding: 1rem 0.5rem;
    }
    
    .email-input,
    .submit-btn {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .input-group {
        flex-direction: column;
    }
    
    .email-input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .submit-btn {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .rocket-icon {
        font-size: 3rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.email-input:focus,
.submit-btn:focus,
.social-link:focus,
.contact-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #ffffff;
        --text-muted: #cccccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-overlay {
        animation: none;
    }
    
    .rocket-icon {
        animation: none;
    }
}
