/* ===========================
   CSS Reset & Variables
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --accent: #00CEFF;
    --accent-green: #00E676;
    --bg-dark: #0A0A1A;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glow-primary: rgba(108, 92, 231, 0.3);
    --glow-accent: rgba(0, 206, 255, 0.3);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   Background Effects
   =========================== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 206, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(108, 92, 231, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: float2 25s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #6C5CE7;
    top: 50%;
    left: 50%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 60px) scale(1.1); }
    66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -80px) scale(1.15); }
    66% { transform: translate(-30px, 30px) scale(0.85); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.35; }
}

/* ===========================
   Layout
   =========================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Navigation
   =========================== */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 0;
    animation: fadeDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.logo-bolt {
    filter: brightness(2);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0 40px;
    gap: 32px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    animation: fadeUp 0.6s ease-out 0.2s both;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
}

/* Title */
.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Subtitle */
.subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    animation: fadeUp 0.6s ease-out 0.4s both;
}

/* ===========================
   Countdown
   =========================== */
.countdown {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.6s ease-out 0.5s both;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 20px;
    min-width: 80px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.countdown-number:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 30px var(--glow-primary);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 500;
}

.countdown-separator {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-tertiary);
    padding-bottom: 24px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===========================
   Signup Form
   =========================== */
.signup-wrapper {
    width: 100%;
    max-width: 500px;
    animation: fadeUp 0.6s ease-out 0.6s both;
}

.signup {
    width: 100%;
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--glow-primary), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    margin-left: 16px;
    flex-shrink: 0;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 14px 14px;
}

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

.input-group button {
    background: linear-gradient(135deg, var(--primary), #5A4BD1);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.input-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--glow-primary);
}

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

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.input-group button:hover .btn-arrow {
    transform: translateX(3px);
}

.signup-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 12px;
    text-align: center;
}

#subscriber-count {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   Feature Pills
   =========================== */
.features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.6s ease-out 0.7s both;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-pill:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* ===========================
   Footer
   =========================== */
.footer {
    text-align: center;
    padding: 32px 0;
    animation: fadeUp 0.6s ease-out 0.8s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ===========================
   Success Modal
   =========================== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    background: rgba(10, 10, 26, 0.7);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(20, 20, 40, 0.95));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-green), #00C853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0, 230, 118, 0.3);
}

.modal-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-close {
    background: linear-gradient(135deg, var(--primary), #5A4BD1);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--glow-primary);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .title {
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-number {
        font-size: 1.8rem;
        min-width: 60px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .countdown-separator {
        font-size: 1.5rem;
        padding-bottom: 20px;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
        gap: 0;
    }

    .input-icon {
        display: none;
    }

    .input-group input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .input-group button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        border-radius: 10px;
    }

    .features {
        gap: 8px;
    }

    .feature-pill {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .orb-1 { width: 200px; height: 200px; }
    .orb-2 { width: 150px; height: 150px; }
    .orb-3 { width: 120px; height: 120px; }
}

@media (max-width: 380px) {
    .countdown-number {
        font-size: 1.4rem;
        min-width: 50px;
        padding: 8px 8px;
    }
}

/* ===========================
   Button loading state
   =========================== */
.input-group button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.input-group button.loading .btn-text {
    display: none;
}

.input-group button.loading .btn-arrow {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}
