/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a3a3a3;
    --accent-start: #4ade80;
    --accent-end: #22c55e;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* --- BACKGROUND CANVAS FOR PARTICLES --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- GLOWING ORB EFFECT --- */
.glow-orb-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(700px, 90vw);
    height: min(700px, 90vw);
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, rgba(34, 197, 94, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(0.9); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.1); 
    }
}

/* --- MAIN CONTAINER --- */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

/* --- BADGE --- */
.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 50px;
    color: var(--accent-start);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    background: rgba(74, 222, 128, 0.08);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.2s forwards;
}

/* --- LOGO --- */
.main-logo {
    width: 140px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.2));
    opacity: 0;
    animation: fadeSlideDown 1.2s ease-out 0.3s forwards, float 6s ease-in-out infinite 1.5s, glow 4s ease-in-out infinite 1.5s;
}

/* --- TYPOGRAPHY --- */
.brand-name {
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeSlideDown 1.2s ease-out 0.4s forwards;
}

.tagline {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeSlideUp 1.2s ease-out 0.6s forwards;
}

.tagline strong {
    color: var(--text-color);
    font-weight: 500;
}

/* --- COUNTDOWN TIMER --- */
.countdown-section {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.7s forwards;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.countdown-separator {
    font-size: 1.5rem;
    color: var(--accent-start);
    font-weight: 300;
    margin-top: -15px;
    animation: blink 1s infinite;
}

/* --- FORM ELEMENTS --- */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.9s forwards;
}

.input-group {
    display: flex;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 0.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.input-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

.input-group:focus-within {
    border-color: var(--accent-start);
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.15), 0 0 60px rgba(74, 222, 128, 0.05);
    transform: scale(1.02);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    min-width: 0;
    z-index: 1;
}

.email-input::placeholder {
    color: #555;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #050505;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

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

/* --- SUCCESS MESSAGE --- */
.success-message {
    margin-top: 1rem;
    color: var(--accent-start);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.success-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SOCIAL SECTION --- */
.social-section {
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1.1s forwards;
}

.social-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

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

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.9rem;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-btn span {
    z-index: 1;
    position: relative;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hover-color-1), var(--hover-color-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

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

.social-btn.instagram { --hover-color-1: #833ab4; --hover-color-2: #fd1d1d; }
.social-btn.twitter { --hover-color-1: #1DA1F2; --hover-color-2: #0d8ecf; }
.social-btn.linkedin { --hover-color-1: #0077b5; --hover-color-2: #005582; }

/* --- FOOTER --- */
.footer {
    position: relative;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

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

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

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

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

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

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.2)); }
    50% { filter: drop-shadow(0 0 25px rgba(74, 222, 128, 0.5)); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    body {
        overflow-y: auto;
    }

    .container {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        gap: 0.75rem;
        border-radius: 0;
    }

    .input-group:focus-within {
        box-shadow: none;
        border-color: transparent;
    }

    .email-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        text-align: center;
        padding: 1rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .email-input:focus {
        border-color: var(--accent-start);
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
    }
    
    .submit-btn {
        width: 100%;
        border-radius: 14px;
        padding: 1rem;
    }

    .tagline br {
        display: none;
    }

    .footer {
        position: relative;
        margin-top: 3rem;
    }

    .social-section {
        margin-top: 2rem;
    }

    .instagram-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .brand-name {
        font-size: 2.5rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .brand-name {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .tagline {
        margin-bottom: 1.5rem;
    }

    .badge {
        margin-bottom: 0.75rem;
    }

    .footer {
        display: none;
    }

    .social-section {
        margin-top: 1rem;
    }
}
