:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #ef4444);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top-right X (Twitter) link */
.top-x-link {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

.top-x-link svg {
    width: 20px;
    height: 20px;
}

.top-x-link:hover {
    background: #000000;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-large);
}

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

.content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.animation-container {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.construction-icon {
    position: relative;
    width: 120px;
    height: 120px;
}

.gear {
    position: absolute;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: var(--bg-primary);
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.gear-1 {
    width: 60px;
    height: 60px;
    top: 0;
    left: 30px;
    animation: rotate 3s linear infinite;
}

.gear-2 {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 0;
    animation: rotate-reverse 2s linear infinite;
}

.gear-3 {
    width: 35px;
    height: 35px;
    top: 45px;
    right: 0;
    animation: rotate 2.5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.under-construction {
    display: block;
    font-size: 0.6em;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 85%;
    border-radius: 4px;
    position: relative;
    animation: progress-pulse 2s ease-in-out infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.progress-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-section {
    margin-bottom: 3rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.notify-btn {
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-circle,
.floating-square {
    position: absolute;
    opacity: 0.1;
}

.floating-circle {
    border-radius: 50%;
    background: var(--gradient-primary);
}

.floating-square {
    background: var(--gradient-accent);
    border-radius: 8px;
}

.circle-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

.square-1 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
}

.square-2 {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 70%;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .top-x-link {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
    
    .top-x-link svg {
        width: 18px;
        height: 18px;
    }
    
    .construction-icon {
        width: 80px;
        height: 80px;
    }
    
    .gear-1 {
        width: 40px;
        height: 40px;
        left: 20px;
    }
    
    .gear-2 {
        width: 30px;
        height: 30px;
        top: 30px;
    }
    
    .gear-3 {
        width: 25px;
        height: 25px;
        top: 35px;
    }
    
    .progress-container {
        flex-direction: column;
    }
    
    .progress-bar {
        width: 100%;
        max-width: 300px;
    }
    
    .email-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-input {
        min-width: auto;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .description {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --border-color: #374151;
    }
    
    .email-input {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .gear {
        background: var(--bg-secondary);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements {
        display: none;
    }
}
