@font-face {
    font-family: 'Supreme';
    src: url('file:///C:/Users/Madhav/Desktop/govlyx-frontend-main/src/fonts/Supreme-Variable.ttf') format('truetype');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1D4ED8;
    --primary-hover: #1e40af;
    --primary-light: rgba(29, 78, 216, 0.12);
    --primary-glow: rgba(29, 78, 216, 0.08);
    --bg: #020617;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-light: #cbd5e1;
    --font-main: 'Supreme', 'Space Grotesk', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(29, 78, 216, 0.3);
    border-radius: 2px;
}

/* ── BACKGROUND ── */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.18) 0%, transparent 65%);
    top: -200px;
    left: -200px;
    animation-duration: 20s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
    bottom: -150px;
    right: -100px;
    animation-duration: 28s;
    animation-delay: -8s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
    top: 45%;
    left: 55%;
    animation-duration: 35s;
    animation-delay: -15s;
}

/* Grid lines — subtle tech feel */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
}

.grid-fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, var(--bg) 100%);
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(60px, 40px) scale(1.08);
    }
}

/* ── CURSOR ── */
#cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
}

#cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #3b82f6;
    transition: transform 0.1s ease;
}

/* ── TOPBAR ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(0px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.bottom-logo-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.bottom-logo-wrap .logo {
    font-size: 2.5rem;
}

.bottom-logo-wrap .logo-icon {
    width: 64px;
    height: 64px;
}

.logo em {
    color: var(--primary);
    font-style: normal;
}

.beta-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(29, 78, 216, 0.12);
    border: 1px solid rgba(29, 78, 216, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

/* ── MAIN PAGE ── */
.page {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 2rem;
    text-align: center;
}

/* ── MYSTERY PILL ── */
.mystery-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-light);
    border: 1px solid rgba(29, 78, 216, 0.25);
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: riseIn 0.8s ease forwards;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #22d3ee;
    border-radius: 50%;
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.6);
    }
}

/* ── HERO TEXT ── */
.hero-headline {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(3.5rem, 13vw, 9.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0;
    animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}

.hero-headline .accent {
    background: linear-gradient(135deg, #60a5fa 0%, #1D4ED8 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── TEASER ── */
.teaser-block {
    max-width: 560px;
    margin: 0 auto 1rem;
    opacity: 0;
    animation: riseIn 0.9s ease forwards 0.3s;
}

.teaser-line {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 300;
    color: var(--muted-light);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.teaser-line strong {
    color: var(--text);
    font-weight: 500;
}

/* ── MYSTERY CLUE CARDS ── */
.clue-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0 3.5rem;
    opacity: 0;
    animation: riseIn 0.9s ease forwards 0.5s;
}

.clue-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    font-size: 0.8rem;
    color: var(--muted-light);
    font-weight: 400;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.clue-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.clue-card:hover {
    border-color: rgba(29, 78, 216, 0.3);
    color: var(--text);
    transform: translateY(-4px);
}

.clue-card:hover::before {
    opacity: 1;
}

.clue-num {
    display: block;
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.3rem;
}

/* ── COUNTDOWN ── */
.countdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: riseIn 0.9s ease forwards 0.65s;
}

.countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: riseIn 0.9s ease forwards 0.8s;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cd-box {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1;
    color: var(--text);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 1.25rem 0.9rem;
    min-width: 90px;
    border-radius: 20px;
    transition: border-color 0.4s, transform 0.3s, background 0.3s;
}

.cd-box:hover {
    border-color: rgba(29, 78, 216, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(29, 78, 216, 0.1);
}

.cd-lbl {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── DIVIDER ── */
.divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(29, 78, 216, 0.4), transparent);
    margin: 0 0.5rem;
    align-self: center;
}

/* ── FORM ── */
.form-wrap {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    animation: riseIn 0.9s ease forwards 1s;
}

.form-row {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-row:focus-within {
    border-color: rgba(29, 78, 216, 0.45);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.form-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
    outline: none;
}

.form-row input::placeholder {
    color: var(--muted);
}

.form-row button {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    padding: 0.8rem 1.75rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.2);
}

.form-row button:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
    transform: translateY(-2px);
}

.form-row button:active {
    transform: translateY(0) scale(0.98);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

.form-hint span {
    color: #60a5fa;
}

/* ── SUCCESS ── */
.success-box {
    display: none;
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    color: #93c5fd;
    font-size: 1rem;
    margin-bottom: 3rem;
    animation: riseIn 0.5s ease forwards;
}

.success-box strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.3rem;
}

/* ── SOCIALS ── */
.socials {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    opacity: 0;
    animation: riseIn 0.9s ease forwards 1.2s;
}

.soc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--muted-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.soc-link:hover {
    color: #60a5fa;
    border-color: rgba(29, 78, 216, 0.4);
    transform: translateY(-3px);
    background: rgba(29, 78, 216, 0.06);
}

.soc-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 50;
    padding: 2rem 1.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
}

/* ── ANIMATIONS ── */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
    .topbar {
        padding: 1rem 1.25rem;
    }

    .hero-headline {
        font-size: clamp(3rem, 18vw, 5rem);
    }

    .clue-row {
        gap: 0.5rem;
    }

    .clue-card {
        padding: 0.8rem 1rem;
    }

    .cd-box {
        min-width: 68px;
        padding: 0.9rem 0.5rem;
        font-size: 1.6rem;
        border-radius: 14px;
    }

    .form-row {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.6rem;
    }

    .form-row input {
        background: var(--glass);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 0.9rem 1rem;
    }

    .form-row input:focus {
        border-color: rgba(29, 78, 216, 0.45);
        outline: none;
    }

    .form-row button {
        border-radius: 12px;
        padding: 0.9rem;
        width: 100%;
    }

    .countdown {
        gap: 0.6rem;
    }

    .divider {
        display: none;
    }
}