/* ============================================
   VOLTARIS RTC — Under Construction
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --bg-primary: #050816;
    --bg-secondary: #0a0e1a;
    --bg-card: rgba(15, 20, 40, 0.6);
    --bg-card-hover: rgba(20, 28, 58, 0.7);

    --text-primary: #e8edf5;
    --text-secondary: #8892a8;
    --text-muted: #4a5568;

    --accent-cyan: #00d4ff;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-electric: #00f0ff;

    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-indigo));
    --gradient-glow: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(99, 102, 241, 0.1));

    --border-subtle: rgba(99, 102, 241, 0.15);
    --border-glow: rgba(0, 212, 255, 0.3);

    /* Typography */
    --font-primary: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Floating Orbs --- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-violet), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 30s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, 60px) scale(1.1); }
    50% { transform: translate(-40px, 120px) scale(0.95); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -60px) scale(1.1); }
    66% { transform: translate(50px, -120px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* --- Grid Overlay --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 10;
    animation: fadeInDown 0.8s var(--transition-base) both;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
    transition: transform var(--transition-base), filter var(--transition-base);
}

.nav-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
}

.nav-name {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.nav-name-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}

/* --- Hero --- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-xl) var(--space-3xl);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.badge-text {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

/* Title */
.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s 0.4s both;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

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

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s 0.6s both;
}

.text-highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Countdown --- */
.countdown-wrapper {
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s 0.8s both;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.countdown {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    min-width: 80px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.countdown-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.countdown-value {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-unit {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.countdown-separator {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    animation: blink 1s step-end infinite;
    padding-bottom: 1rem;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* --- Signup Form --- */
.signup-wrapper {
    width: 100%;
    max-width: 520px;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s 1s both;
}

.signup-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.signup-form {
    display: flex;
    gap: var(--space-sm);
    width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color var(--transition-base);
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-cyan);
}

#emailInput {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-base);
    backdrop-filter: blur(20px);
}

#emailInput::placeholder {
    color: var(--text-muted);
}

#emailInput:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 30px rgba(0, 212, 255, 0.05);
}

.btn-notify {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-notify::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-notify:hover::before {
    opacity: 1;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1);
}

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

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

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

/* Success state */
.signup-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.5s both;
}

.signup-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

/* --- Feature Pills --- */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    animation: fadeInUp 0.8s 1.2s both;
}

.pill {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    cursor: default;
}

.pill:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.08);
}

.pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    padding: var(--space-xl) var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    animation: fadeInUp 0.8s 1.4s both;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

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

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--accent-cyan);
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-lg) var(--space-lg) var(--space-2xl);
    }

    .countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .countdown-separator {
        display: none;
    }

    .countdown-item {
        min-width: 70px;
        padding: var(--space-sm) var(--space-md);
    }

    .signup-form {
        flex-direction: column;
    }

    .btn-notify {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .feature-pills {
        gap: var(--space-sm);
    }

    .pill {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-md);
    }

    .navbar {
        padding: var(--space-md) var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .nav-name {
        font-size: 1.2rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}
