/* ===== CSS Variables ===== */
:root {
    --primary: #f5a623;
    --primary-dark: #e09000;
    --secondary: #1a1a2e;
    --accent: #4ecdc4;
    --accent-secondary: #ff6b6b;
    --dark: #0f0f1a;
    --light: #ffffff;
    --gray: #a0a0a0;
    --gradient-1: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
    --gradient-2: linear-gradient(135deg, #f5a623 0%, #ff6b6b 100%);
    --gradient-3: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-1);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--light);
    position: relative;
}

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

/* ===== Main Container ===== */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* ===== Logo Section ===== */
.logo-section {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    position: relative;
}

.logo-como {
    color: var(--light);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.logo-4u {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-4u::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ===== Message Section ===== */
.message-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 300;
    min-height: 1.5em;
}

.subtitle .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 1s infinite;
}

/* ===== Loader Section ===== */
.loader-section {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.loader {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-2);
    border-radius: 3px;
    animation: loading 3s ease-in-out infinite;
    position: relative;
}

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

.loader-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.dots span {
    animation: dotPulse 1.5s infinite;
    opacity: 0;
}

.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

/* ===== Decorative Circles ===== */
.decorative-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-2);
    top: -300px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    bottom: -200px;
    left: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-secondary);
    top: 50%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

/* ===== Signup Section ===== */
.signup-section {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.signup-text {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.signup-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.signup-form input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.signup-form input::placeholder {
    color: var(--gray);
}

.signup-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

.btn-notify {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: var(--gradient-2);
    color: var(--dark);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-notify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.4);
}

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

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--accent);
    animation: fadeInUp 0.5s ease-out;
}

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

.signup-form.hidden {
    display: none;
}

/* ===== Social Section ===== */
.social-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-2);
    border-color: transparent;
    color: var(--dark);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
}

/* ===== Footer ===== */
.footer {
    position: absolute;
    bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    opacity: 0.7;
    animation: fadeIn 1s ease-out 1.1s both;
}

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

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

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .signup-form {
        flex-direction: column;
        width: 100%;
    }
    
    .signup-form input,
    .btn-notify {
        width: 100%;
        justify-content: center;
    }
    
    .circle-1 {
        width: 400px;
        height: 400px;
        top: -200px;
        right: -150px;
    }
    
    .circle-2 {
        width: 300px;
        height: 300px;
    }
    
    .circle-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

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

/* ===== Selection Color ===== */
::selection {
    background: var(--primary);
    color: var(--dark);
}