:root {
    --primary: #22d3ee;
    --secondary: #818cf8;
    --dark: #020617;
    --glass-bg: rgba(10, 15, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: #f3f4f6;
    background-color: var(--dark);
    overflow: hidden;
}

canvas#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.watermark {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.04) 0,
        rgba(255, 255, 255, 0.04) 2px,
        transparent 2px,
        transparent 90px
    );
    background-size: 240px 240px;
    mix-blend-mode: overlay;
}

.watermark::before {
    content: "Prediqt • Confidential Preview";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
}

main {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.card {
    width: 100%;
    max-width: 520px;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #cffafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

p.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    max-width: 380px;
    font-weight: 300;
}

.notify-form {
    display: flex;
    gap: 0.5rem;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.notify-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.notify-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
}

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

.notify-form button {
    background: var(--primary);
    color: #0f172a;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.notify-form button:hover {
    background: #67e8f9;
    transform: scale(1.03);
}

.notify-form button:active {
    transform: scale(0.98);
}

.notify-form button:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

#formStatus {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

.footer-meta {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #475569;
}

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

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 8px var(--primary);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 2px var(--primary);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--primary);
    }
}

@media (max-width: 600px) {
    .card {
        padding: 2.5rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .notify-form {
        flex-direction: column;
        border-radius: 16px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .notify-form input {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
    }

    .notify-form button {
        width: 100%;
        border-radius: 12px;
    }
}
