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

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --accent: #06B6D4;
    --bg: #0F172A;
    --bg-light: #1E293B;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(148, 163, 184, 0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

.gradient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, 1%) rotate(1deg); }
    66% { transform: translate(1%, -1%) rotate(-0.5deg); }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    padding: 2rem;
    text-align: center;
}

/* Header / Logo */
header {
    margin-bottom: 3rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-text .accent {
    color: var(--accent);
}

/* Main Content */
main {
    margin-bottom: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

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

.input-group {
    display: flex;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    transition: border-color 0.2s ease;
}

.input-group:focus-within {
    border-color: rgba(79, 70, 229, 0.5);
}

.input-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.input-group button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
}

.input-group button:active {
    transform: translateY(0);
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Countdown */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Footer */
footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--text);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
        gap: 0;
    }

    .input-group button {
        border-radius: 10px;
    }

    .stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
