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

:root {
    /* Colors - Green Theme */
    --bg-primary: #0a0f0a;
    --bg-secondary: #121a12;
    --accent-primary: #22c55e;
    --accent-secondary: #16a34a;
    --accent-glow: #4ade80;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(34, 197, 94, 0.2);
    --success: #22c55e;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #4ade80 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

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

/* ===== Gradient Overlay ===== */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(22, 163, 74, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Logo Section ===== */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
    animation: logoPulse 3s ease-in-out infinite;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.logo-path {
    stroke: url(#logoGradient);
    animation: drawPath 2s ease-out forwards;
}

.logo-glow {
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-glow));
    animation: glowPulse 2s ease-in-out infinite;
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

/* ===== Tagline Section ===== */
.tagline-section {
    text-align: center;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tagline {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.subtagline {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ===== Coming Soon Badge ===== */
.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* ===== Signup Section ===== */
.signup-section {
    width: 100%;
    max-width: 480px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.email-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: var(--space-xs);
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

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

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

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

.form-message {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    min-height: 1.5em;
    transition: all var(--transition-base);
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

.privacy-note {
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Social Section ===== */
.social-section {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding-top: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 1s both;
}

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(74, 222, 128, 0.7));
    }
}

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

@keyframes drawPath {
    from {
        stroke-dasharray: 200;
        stroke-dashoffset: 200;
    }
    to {
        stroke-dasharray: 200;
        stroke-dashoffset: 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 640px) {
    .container {
        padding: var(--space-md);
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        width: 100%;
        text-align: center;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 380px) {
    .brand-name {
        letter-spacing: 0.1em;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .subtagline {
        font-size: 0.8rem;
    }
}

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