:root {
    --bg-dark: #050914;
    --card-bg: rgba(10, 15, 30, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.5);
    --accent: #ff003c;
    --success: #00ff88;
}

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

body {
    font-family: 'Outfit', 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;
    perspective: 1000px;
}

/* Canvas Background */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #0a1128 0%, #03050a 100%);
}

/* Main Content */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    transform-style: preserve-3d;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    will-change: transform;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: var(--primary);
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    animation: blink 1s infinite alternate;
}

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

/* Glitch Title */
.title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(69px, 9999px, 7px, 0); }
    10% { clip: rect(100px, 9999px, 90px, 0); }
    15% { clip: rect(32px, 9999px, 45px, 0); }
    20% { clip: rect(51px, 9999px, 71px, 0); }
    25% { clip: rect(21px, 9999px, 19px, 0); }
    30% { clip: rect(64px, 9999px, 4px, 0); }
    35% { clip: rect(8px, 9999px, 63px, 0); }
    40% { clip: rect(98px, 9999px, 77px, 0); }
    45% { clip: rect(25px, 9999px, 32px, 0); }
    50% { clip: rect(11px, 9999px, 89px, 0); }
    55% { clip: rect(43px, 9999px, 58px, 0); }
    60% { clip: rect(80px, 9999px, 14px, 0); }
    65% { clip: rect(6px, 9999px, 98px, 0); }
    70% { clip: rect(38px, 9999px, 25px, 0); }
    75% { clip: rect(94px, 9999px, 41px, 0); }
    80% { clip: rect(56px, 9999px, 7px, 0); }
    85% { clip: rect(72px, 9999px, 83px, 0); }
    90% { clip: rect(19px, 9999px, 54px, 0); }
    95% { clip: rect(88px, 9999px, 28px, 0); }
    100% { clip: rect(47px, 9999px, 96px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 20px, 0); }
    35% { clip: rect(92px, 9999px, 1px, 0); }
    40% { clip: rect(64px, 9999px, 30px, 0); }
    45% { clip: rect(31px, 9999px, 46px, 0); }
    50% { clip: rect(58px, 9999px, 9px, 0); }
    55% { clip: rect(2px, 9999px, 54px, 0); }
    60% { clip: rect(44px, 9999px, 87px, 0); }
    65% { clip: rect(86px, 9999px, 68px, 0); }
    70% { clip: rect(23px, 9999px, 49px, 0); }
    75% { clip: rect(3px, 9999px, 36px, 0); }
    80% { clip: rect(97px, 9999px, 80px, 0); }
    85% { clip: rect(37px, 9999px, 24px, 0); }
    90% { clip: rect(18px, 9999px, 91px, 0); }
    95% { clip: rect(49px, 9999px, 12px, 0); }
    100% { clip: rect(81px, 9999px, 53px, 0); }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    min-height: 1.5em; /* Prevents layout jump when typing */
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Progress */
.progress-container {
    margin-bottom: 3.5rem;
    text-align: left;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--primary);
    opacity: 0.8;
}

/* Form */
.notify-form {
    display: flex;
    gap: 16px;
    margin-bottom: 1.5rem;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.email-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--primary-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

.email-input:focus + .input-glow {
    opacity: 1;
}

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

.notify-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notify-btn span {
    position: relative;
    z-index: 2;
}

.notify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.notify-btn:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.notify-btn:hover::before {
    transform: translateX(0) skewX(0);
}

.form-message {
    font-size: 0.875rem;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: monospace;
}

.form-message.success {
    color: var(--success);
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .glass-card {
        padding: 3rem 2rem;
    }
    
    .title {
        font-size: 2.8rem;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .notify-btn {
        width: 100%;
    }
}
