:root {
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --secondary: #06B6D4;
    --accent: #10B981;
    --dark: #0A0D14;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
}

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

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

/* Animated mesh gradient background */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

/* Floating particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(139, 92, 246, 0.5);
    border-radius: 50%;
    animation: rise linear infinite;
}

@keyframes rise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* Glowing orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 600px; height: 600px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.2));
    top: -200px; left: -200px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(16, 185, 129, 0.2));
    bottom: -150px; right: -150px;
    animation-delay: -4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

/* Logo - centered and prominent */
.logo-container {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.logo-container img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.4));
    animation: logoShine 4s ease-in-out infinite;
}

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

@keyframes logoShine {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.6)); }
}

/* Unique "Launching" treatment instead of boring badge */
.launch-status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.status-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; width: 40px; }
    50% { opacity: 1; width: 80px; }
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main heading with animated gradient */
h1 {
    font-size: clamp(42px, 9vw, 85px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.line-1 { display: block; }

.line-2 {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientFlow 4s linear infinite;
}

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

.subtitle {
    font-size: clamp(17px, 2.5vw, 21px);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Email form with glow effect */
.form-container {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.form-wrapper {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    transition: all 0.4s ease;
    position: relative;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-wrapper:focus-within {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.05);
}

.form-wrapper:focus-within::before {
    opacity: 0.5;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.form-wrapper input {
    flex: 1;
    padding: 18px 22px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

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

@media (max-width: 768px) {
    .form-wrapper input {
        text-align: center;
    }

    .form-wrapper input::placeholder {
        text-align: center;
    }
}

.btn-submit {
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.btn-submit:hover::after {
    opacity: 1;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Beta interest toggle - eye-catching design */
.beta-toggle {
    margin-top: 20px;
    margin-bottom: 0;
}

.beta-toggle input {
    display: none;
}

.beta-toggle label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 28px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: var(--text-muted);
}

.beta-toggle label:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
}

.beta-toggle input:checked + label {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.beta-check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
}

.beta-toggle input:checked + label .beta-check {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.beta-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.beta-toggle input:checked + label .beta-check svg {
    opacity: 1;
    transform: scale(1);
}

.beta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.beta-text strong {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}

.beta-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.beta-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
}

/* Alert messages */
.alert {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: alertSlide 0.4s ease;
    max-width: 500px;
    width: 100%;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

/* Success box - replaces form after submission */
.success-box {
    text-align: center;
    padding: 50px 40px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 24px;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 500px;
}

@keyframes successPop {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent), #34D399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 8px;
}

.success-sub {
    font-size: 14px;
    color: var(--text-muted);
}

/* Features section - scrolling carousel */
.features-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 30px;
    padding: 30px 0;
    overflow: visible;
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.features-wrapper {
    overflow: hidden;
    padding: 30px 0 60px 0;
}

.features-track {
    display: flex;
    gap: 24px;
    animation: scroll 50s linear infinite;
    width: max-content;
    padding: 20px 0;
}

.features-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.feature {
    flex-shrink: 0;
    width: 280px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .features-section {
        margin-top: 60px;
    }

    .features-track {
        animation-duration: 30s;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .btn-submit {
        width: 100%;
    }

    .status-line {
        width: 40px;
    }

    .logo-container img {
        height: 55px;
    }

    .beta-toggle label {
        flex-wrap: nowrap;
        justify-content: flex-start;
        text-align: left;
        padding: 16px 20px;
    }

    .beta-text {
        align-items: flex-start;
    }
}
