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

:root {
    --primary-dark: #060608;
    --secondary-dark: #10121b;
    --accent-azure: #3c82f6;
    --accent-teal: #1fbfb8;
    --accent-amber: #f97316;
    --text-primary: #f5f6ff;
    --text-secondary: #b6bbc8;
    --border-color: #20242f;
    --glow-color: rgba(31, 191, 184, 0.25);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.09), transparent 55%), radial-gradient(circle at 80% 30%, rgba(60, 130, 246, 0.14), transparent 60%), radial-gradient(circle at 10% 80%, rgba(31, 191, 184, 0.12), transparent 60%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(140deg, rgba(6, 6, 8, 0.98) 0%, rgba(16, 18, 27, 0.96) 30%, rgba(9, 11, 19, 0.94) 55%, rgba(8, 12, 20, 0.9) 100%);
    z-index: -2;
}

#ant-simulation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#ant-simulation canvas {
    width: 100%;
    height: 100%;
    filter: contrast(1.15) saturate(1.2);
    mix-blend-mode: screen;
    opacity: 0.9;
}

@keyframes subtle-shift {
    0%, 100% {
        background-position: center top;
    }
    50% {
        background-position: center bottom;
    }
}

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

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-azure) 0%, var(--accent-teal) 55%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 60px rgba(63, 130, 246, 0.35), 0 0 120px rgba(249, 115, 22, 0.2);
}

.glitch {
    position: relative;
    animation: glitch-skew 15s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--accent-azure);
    z-index: -1;
    opacity: 0.3;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent-amber);
    z-index: -2;
    opacity: 0.2;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(33% 0 60% 0);
        transform: translate(-0.05px, 0.05px);
    }
    40% {
        clip-path: inset(70% 0 20% 0);
        transform: translate(0.05px, -0.05px);
    }
    60% {
        clip-path: inset(10% 0 85% 0);
        transform: translate(-0.05px, 0.05px);
    }
    80% {
        clip-path: inset(50% 0 40% 0);
        transform: translate(0.05px, -0.05px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(60% 0 33% 0);
        transform: translate(0.05px, -0.05px);
    }
    40% {
        clip-path: inset(20% 0 70% 0);
        transform: translate(-0.05px, 0.05px);
    }
    60% {
        clip-path: inset(85% 0 10% 0);
        transform: translate(0.05px, -0.05px);
    }
    80% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-0.05px, 0.05px);
    }
}

@keyframes glitch-skew {
    0%, 100% {
        transform: skew(0deg);
    }
    99.5% {
        transform: skew(0deg);
    }
    99.6% {
        transform: skew(-0.02deg);
    }
    99.7% {
        transform: skew(0.01deg);
    }
    99.8% {
        transform: skew(0deg);
    }
}

/* Content */
.content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--text-primary) 0%, rgba(181, 196, 255, 0.9) 40%, rgba(249, 115, 22, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(31, 191, 184, 0.2);
    letter-spacing: 0.02em;
}

.description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(228, 235, 255, 0.9);
    text-shadow: 0 0 25px rgba(63, 130, 246, 0.18);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Form */
.signup-form {
    margin-bottom: 4rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1.25rem 1.75rem;
    padding-right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(63, 130, 246, 0.5);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 4px var(--glow-color), 0 0 25px rgba(63, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.submit-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    background: linear-gradient(135deg, var(--accent-azure), var(--accent-teal) 60%, var(--accent-amber));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(31, 191, 184, 0.35), 0 0 25px rgba(249, 115, 22, 0.2);
}

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

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

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

.enter-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .enter-icon {
    transform: scale(1.1);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(18, 20, 32, 0.85), rgba(26, 26, 40, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 114, 168, 0.25);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(63, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(18, 20, 32, 0.95), rgba(26, 26, 40, 0.9));
}

.feature span {
    color: rgba(228, 235, 255, 0.9);
}

.feature-icon {
    font-size: 1.5rem;
    filter: grayscale(0.2) brightness(0.85);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.feature:hover .feature-icon {
    filter: grayscale(0) brightness(1.05);
    transform: translateY(-2px);
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(63, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.floating-element {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.element-1 {
    background: var(--accent-azure);
    top: -150px;
    left: -150px;
    animation: float-1 15s ease-in-out infinite;
}

.element-2 {
    background: var(--accent-teal);
    bottom: -150px;
    right: -150px;
    animation: float-2 20s ease-in-out infinite;
}

.element-3 {
    background: linear-gradient(135deg, var(--accent-azure), var(--accent-teal), var(--accent-amber));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-3 25s ease-in-out infinite;
}

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

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, -100px) scale(0.8);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    33% {
        transform: translate(-40%, -60%) scale(1.1);
    }
    66% {
        transform: translate(-60%, -40%) scale(0.9);
    }
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(to top, var(--primary-dark) 50%, transparent);
    z-index: 1;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .input-group {
        flex-direction: row;
        width: 100%;
    }
    
    .email-input {
        min-width: 0;
        flex: 1;
    }
    
    .submit-btn {
        width: 48px;
        height: 48px;
    }
    
    .enter-icon {
        width: 20px;
        height: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
