/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 100;
    background: linear-gradient(135deg, #0a0a0a 0%, #111827 25%, #1f2937 50%, #111827 75%, #0a0a0a 100%);
    color: #f9fafb;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 1rem;
}

/* Tech Grid Background */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
}

.shape {
    position: absolute;
    background: conic-gradient(from 0deg at 50% 50%, 
        rgba(59, 130, 246, 0.15) 0deg, 
        rgba(139, 92, 246, 0.15) 120deg, 
        rgba(236, 72, 153, 0.15) 240deg, 
        rgba(59, 130, 246, 0.15) 360deg);
    border-radius: 20px;
    animation: machineFloat 15s infinite ease-in-out;
    filter: blur(0.5px);
}

.shape-1 {
    width: 200px;
    height: 300px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.shape-2 {
    width: 150px;
    height: 250px;
    top: 40%;
    right: 15%;
    animation-delay: -5s;
    transform: rotate(-25deg);
}

.shape-3 {
    width: 250px;
    height: 180px;
    bottom: 20%;
    left: 60%;
    animation-delay: -10s;
    transform: rotate(45deg);
}

@keyframes machineFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(var(--initial-rotation, 0deg));
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(calc(var(--initial-rotation, 0deg) + 5deg));
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) translateX(-5px) rotate(calc(var(--initial-rotation, 0deg) - 5deg));
        opacity: 0.4;
    }
    75% { 
        transform: translateY(15px) translateX(5px) rotate(calc(var(--initial-rotation, 0deg) + 3deg));
        opacity: 0.5;
    }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Particles Container */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    animation: techPulse 4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

@keyframes techPulse {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.5);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
    75% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

/* Main Content */
.main-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

/* Logo Section */
.logo-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 100;
    background: linear-gradient(135deg, #00d4ff, #0099ff, #0066cc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

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

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.title-line {
    display: block;
}

.highlight {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(249, 250, 251, 0.85);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Countdown Timer */
.countdown-container {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.countdown-title {
    font-size: 1rem;
    color: rgba(0, 212, 255, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-value {
    font-family: 'Inter', monospace;
    font-size: 3rem;
    font-weight: 100;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    min-width: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.time-label {
    font-size: 0.875rem;
    color: rgba(249, 250, 251, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Email Signup */
.email-signup {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.signup-form {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.input-group:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.3);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f9fafb;
    font-size: 1rem;
    padding: 1rem 1.5rem;
}

.email-input::placeholder {
    color: rgba(249, 250, 251, 0.6);
}

.submit-btn {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 100;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.6);
}

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

.btn-arrow {
    transition: transform 0.3s ease;
}

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

.success-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #22c55e;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}

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

/* Social Section */
.social-section {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.social-title {
    font-size: 0.875rem;
    color: rgba(249, 250, 251, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: rgba(249, 250, 251, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.social-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099ff);
    border-radius: 2px;
    width: 0%;
    animation: progressFill 5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes progressFill {
    0%, 100% { width: 0%; }
    50% { width: 100%; }
}

.progress-text {
    font-size: 0.75rem;
    color: rgba(249, 250, 251, 0.6);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .time-value {
        font-size: 2rem;
        min-width: 60px;
        padding: 0.4rem 0.8rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.25rem;
    }
    
    .email-input {
        border-radius: 12px;
        margin-bottom: 0.25rem;
    }
    
    .submit-btn {
        border-radius: 12px;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .progress-indicator {
        bottom: 1rem;
    }
    
    .progress-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 1.125rem;
    }
    
    .countdown {
        gap: 0.75rem;
    }
    
    .time-value {
        font-size: 1.75rem;
        min-width: 50px;
        padding: 0.3rem 0.6rem;
    }
    
    .time-unit {
        min-width: 50px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .particle {
        width: 1px;
        height: 1px;
    }
}

/* Glass morphism effects */
.input-group, .social-link {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Enhanced glow effects */
.time-value:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: scale(1.05);
    border-color: #00d4ff;
}

.logo-text:hover {
    animation-duration: 1s;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

/* Tech circuit lines */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(0, 102, 204, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}