:root {
    --bg-dark: #070B14;
    --bg-card: rgba(15, 23, 42, 0.6);
    --cyan: #00AEEF;
    --blue-bright: #0066FF;
    --text-main: #F8FAFC;
    --text-light: #94A3B8;
    --gradient: linear-gradient(135deg, var(--cyan), var(--blue-bright));
    --glow-cyan: rgba(0, 174, 239, 0.4);
    --glow-blue: rgba(0, 102, 255, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Subtle radial gradient overlay to focus center */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 174, 239, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* --- Animated Background Nodes --- */
.bg-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.node {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(60px);
    opacity: 0.3;
    animation: drift 20s infinite ease-in-out alternate;
    mix-blend-mode: screen;
}

.node-1 { width: 400px; height: 400px; top: -150px; left: -150px; background: var(--cyan); animation-delay: 0s; }
.node-2 { width: 500px; height: 500px; bottom: -200px; right: -150px; background: var(--blue-bright); animation-delay: -7s; }
.node-3 { width: 300px; height: 300px; top: 30%; left: 70%; background: #8B5CF6; opacity: 0.15; animation-delay: -14s; }
.node-4 { width: 200px; height: 200px; bottom: 20%; left: 10%; background: var(--cyan); opacity: 0.1; animation-delay: -4s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.2); }
    100% { transform: translate(-30px, 30px) scale(0.9); }
}

/* --- Main Content --- */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 3rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Neon Loader Animation --- */
.loader-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--cyan);
    border-bottom-color: var(--blue-bright);
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.3), inset 0 0 15px rgba(0, 174, 239, 0.3);
}

.loader-core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulseCore 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--blue-bright);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseCore {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* --- Staggered Entrance Animation --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

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

/* --- Typography --- */
.headline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Made larger since it's the main focus now */
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFFFFF, var(--cyan), #8B5CF6, #FFFFFF);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s linear infinite;
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.3));
    letter-spacing: 2px;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.subheadline {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* --- Form Styling --- */
.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    min-width: 0;
}

.subscribe-form input::placeholder {
    color: #64748b;
}

.subscribe-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--glow-cyan), inset 0 0 10px rgba(0, 174, 239, 0.1);
    background: rgba(0, 174, 239, 0.05);
}

.subscribe-form button {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.subscribe-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--glow-blue);
}

.subscribe-form button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    box-shadow: 0 0 0 0 var(--glow-cyan);
    animation: pulseGlow 2s infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(0, 174, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 174, 239, 0); }
}

.success-message {
    display: none;
    color: #10B981;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* --- Tagline --- */
.tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-light);
    text-transform: uppercase;
}

.tagline .dot {
    color: var(--cyan);
    font-size: 1.5rem;
    line-height: 0;
    text-shadow: 0 0 10px var(--cyan);
    animation: dotPulse 2s infinite alternate;
}

@keyframes dotPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; text-shadow: 0 0 20px var(--cyan), 0 0 30px var(--blue-bright); }
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 2.5rem 1.5rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form button {
        width: 100%;
    }
    
    .tagline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tagline .dot {
        display: none;
    }
}