/* CSS Variables */
:root {
    --bg-primary: #0e0e10;
    --bg-secondary: #18181b;
    --bg-tertiary: #1f1f23;
    --text-primary: #efeff1;
    --text-secondary: #adadb8;
    --text-muted: #71717a;
    --accent-cyan: #00f0ff;
    --accent-purple: #9147ff;
    --accent-magenta: #bf94ff;
    --twitch-purple: #9147ff;
    --glow-cyan: rgba(0, 240, 255, 0.5);
    --glow-purple: rgba(145, 71, 255, 0.5);
    --border-color: #2f2f35;
    --success: #00c853;
    --error: #ff4757;
}

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

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

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

/* Grid Background Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--glow-purple);
    top: -100px;
    right: -100px;
    opacity: 0.3;
    animation: float1 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--glow-cyan);
    bottom: -50px;
    left: -50px;
    opacity: 0.2;
    animation: float2 12s ease-in-out infinite;
}

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

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.15); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.logo-container {
    margin-bottom: 32px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.logo-smace {
    color: var(--text-primary);
}

.logo-tron {
    color: var(--accent-cyan);
    text-shadow:
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 40px rgba(0, 240, 255, 0.5);
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 8px;
}

.intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Signup Section */
.signup-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.section-desc {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* Email Form */
.email-form {
    width: 100%;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-wrapper input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

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

.input-wrapper input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
}

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

.btn-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Form Message */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.form-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Social Section */
.social-section {
    text-align: center;
    margin-bottom: 48px;
}

.social-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent-purple);
}

.social-link.twitch:hover {
    background: rgba(145, 71, 255, 0.1);
    color: var(--twitch-purple);
    border-color: var(--twitch-purple);
    box-shadow: 0 8px 30px rgba(145, 71, 255, 0.2);
}

.social-link.twitter:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.1), rgba(253, 29, 29, 0.1));
    color: #e1306c;
    border-color: #e1306c;
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 40px 16px;
    }

    .signup-section {
        padding: 28px 20px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

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