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

:root {
    /* Color Palette */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1425;
    --bg-card: rgba(15, 20, 40, 0.6);
    --bg-card-hover: rgba(20, 28, 58, 0.7);

    --accent-cyan: #00d4ff;
    --accent-blue: #4361ee;
    --accent-purple: #7b2ff7;
    --accent-violet: #9d4edd;
    --accent-pink: #f72585;

    --text-primary: #e8eaf6;
    --text-secondary: #8892b0;
    --text-muted: #5a6380;

    --border-subtle: rgba(100, 120, 180, 0.12);
    --border-glow: rgba(0, 212, 255, 0.2);

    --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #4361ee 40%, #7b2ff7 70%, #9d4edd 100%);
    --gradient-btn: linear-gradient(135deg, #7b2ff7 0%, #4361ee 50%, #00d4ff 100%);
    --gradient-btn-hover: linear-gradient(135deg, #9d4edd 0%, #4361ee 50%, #00c4ef 100%);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ===== Particle Canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Ambient Glow Orbs ===== */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -10%;
    left: -5%;
    animation: float-orb 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -15%;
    right: -10%;
    animation: float-orb 22s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    top: 40%;
    left: 60%;
    animation: float-orb 15s ease-in-out infinite alternate;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
    100% { transform: translate(15px, 15px) scale(1.02); }
}

/* ===== Main Container ===== */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl);
    max-width: 620px;
    width: 100%;
}

/* ===== Logo ===== */
.logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 1s var(--ease-spring) forwards;
    opacity: 0;
    animation-delay: 0.1s;
    background: var(--gradient-brand);
    border-radius: 50%;
    transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 47, 247, 0.3), rgba(0, 212, 255, 0.15));
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    z-index: -1;
}

.logo-wrapper:hover::before {
    opacity: 1;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
}

.logo-wrapper:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

/* ===== Brand Name ===== */
.brand-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    animation-delay: 0.45s;
}

/* ===== Badges ===== */
.badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out);
    cursor: default;
}

.badge:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.08);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(34, 197, 94, 0.4); }
}

.badge-icon {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.badge-launch {
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.15);
}

/* ===== Divider ===== */
.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    max-width: 350px;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    animation-delay: 0.75s;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    transform: rotate(45deg);
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ===== Signup Section ===== */
.signup-section {
    width: 100%;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

.signup-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.signup-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.signup-form {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 240px;
    max-width: 340px;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s var(--ease-out);
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-cyan);
}

#email-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.4s var(--ease-out);
}

#email-input::placeholder {
    color: var(--text-muted);
}

#email-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 4px 20px rgba(0, 212, 255, 0.08);
    background: rgba(15, 20, 40, 0.85);
}

.btn-notify {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.6rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-btn);
    background-size: 200% 200%;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-notify::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 47, 247, 0.35), 0 0 60px rgba(67, 97, 238, 0.15);
    background-position: 100% 100%;
}

.btn-notify:hover::before {
    opacity: 1;
}

.btn-notify:active {
    transform: translateY(0);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease-spring);
}

.btn-notify:hover .btn-icon {
    transform: translateX(3px);
}

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeInScale 0.5s var(--ease-spring) forwards;
}

.success-message.visible {
    display: flex;
}

/* ===== Footer ===== */
.footer {
    margin-top: var(--space-3xl);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    animation-delay: 1.05s;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Responsive ===== */

/* Allow scrolling on shorter viewports */
@media (max-height: 750px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
    }

    .container {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }
}

/* Tablet */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {
        padding: var(--space-2xl) var(--space-lg);
    }

    .brand-name {
        font-size: 2.6rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }

    .badges {
        margin-bottom: var(--space-xl);
    }

    .divider {
        max-width: 280px;
        margin-bottom: var(--space-xl);
    }

    .glow-orb-1 { width: 350px; height: 350px; }
    .glow-orb-2 { width: 300px; height: 300px; }
    .glow-orb-3 { width: 250px; height: 250px; }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
    }

    .container {
        padding: var(--space-xl) var(--space-md);
        min-height: 100vh;
        min-height: 100dvh;
        justify-content: center;
    }

    /* Logo */
    .logo-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: var(--space-lg);
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    /* Typography */
    .brand-name {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 0.95rem;
        margin-bottom: var(--space-xl);
    }

    /* Badges */
    .badges {
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
        width: 100%;
    }

    .badge {
        font-size: 0.78rem;
        padding: 0.5rem 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Divider */
    .divider {
        max-width: 200px;
        margin-bottom: var(--space-xl);
    }

    /* Signup */
    .signup-heading {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }

    .signup-subtext {
        font-size: 0.85rem;
    }

    .signup-form {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .input-wrapper {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }

    #email-input {
        padding: 0.8rem 1rem 0.8rem 2.6rem;
        font-size: 1rem; /* Prevents iOS zoom on focus */
    }

    .btn-notify {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.4rem;
    }

    /* Success message */
    .success-message {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer {
        margin-top: var(--space-2xl);
    }

    .footer p {
        font-size: 0.7rem;
    }

    /* Glow orbs - smaller for performance */
    .glow-orb-1 { width: 250px; height: 250px; filter: blur(80px); }
    .glow-orb-2 { width: 200px; height: 200px; filter: blur(80px); }
    .glow-orb-3 { display: none; }
}

/* Very small screens */
@media (max-width: 360px) {
    .brand-name {
        font-size: 1.9rem;
    }

    .badge {
        font-size: 0.72rem;
        padding: 0.45rem 0.8rem;
    }

    .logo-wrapper {
        width: 85px;
        height: 85px;
    }

    .logo {
        width: 85px;
        height: 85px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: var(--space-md) var(--space-lg);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
        max-width: 100%;
    }

    .logo-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .brand-name {
        font-size: 1.8rem;
        width: 100%;
    }

    .tagline {
        margin-bottom: var(--space-md);
        width: 100%;
    }

    .badges {
        flex-direction: row;
        margin-bottom: var(--space-md);
        width: 100%;
    }

    .divider {
        margin-bottom: var(--space-md);
    }

    .footer {
        margin-top: var(--space-lg);
        width: 100%;
    }
}
