:root {
    --primary-color: #FF3A44;
    --secondary-color: #353535;
    --accent-color: #4285F4;
    --dark-color: #1E1F2A;
    --light-color: #FFFFFF;
    --light-gray: #F5F5F5;
    --gradient-bg: linear-gradient(135deg, #FF3A44 0%, #FF7761 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    width: 70px;
    border-radius: 12px;
    padding: 6px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 58, 68, 0.5));
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 31, 42, 0.3);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-up 15s infinite linear;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* Card */
.card {
    max-width: 800px;
    background: var(--secondary-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.card-header {
    padding: 30px;
    text-align: center;
    background: var(--dark-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255, 58, 68, 0.3);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color);
    font-weight: 300;
    max-width: 800px;
    line-height: 1.6;
}

.referrer-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* Badge */
.badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    margin: 2rem auto;
    display: inline-block;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 200px;
}

.badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    animation: badge-ping 2s infinite;
}

@keyframes badge-ping {
    0% { transform: scale(0.5); opacity: 0; }
    10% { opacity: 0.2; }
    70% { opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse-badge {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(66, 133, 244, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(66, 133, 244, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(66, 133, 244, 0.5); }
}

/* Partner logos */
.partner-logos-container {
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

.partner-logos {
    display: flex;
    position: relative;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.partner-logo img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    border-radius: 50%;
}

.partner-logo:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-40px * 8 - 15px * 16));
    }
}

/* CTA Button */
.cta-container {
    margin: 2rem 0;
    position: relative;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(255, 58, 68, 0.4);
    z-index: 1;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #FF7761);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 58, 68, 0.5);
}

.pulse-button {
    position: relative;
    z-index: 1;
}

.pulse-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50px;
    transform: scale(0);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Form */
#signup-form {
    display: none;
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--light-color);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 58, 68, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Features */
.features {
    padding: 40px 30px;
    background: var(--secondary-color);
    text-align: center;
    position: relative;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 58, 68, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 58, 68, 0) 100%);
    transition: all 0.5s ease;
    z-index: 0;
    pointer-events: none;
    border-radius: 16px;
}

.feature-card:hover::before {
    top: -100%;
    left: -100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 58, 68, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--light-color);
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

/* Download Section */
.download-section {
    background: var(--gradient-bg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.5;
}

.download-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particle-float 10s infinite linear;
}

@keyframes particle-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.download-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--light-color);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.success-message p {
    color: var(--light-color);
}

/* Terms Container */
.terms-container {
    max-width: 800px;
    margin: 20px auto 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.terms-text {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    white-space: pre-line;
    text-align: left;
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: var(--dark-color);
    border-top: 4px solid var(--primary-color);
}

.footer-links {
    margin-top: 10px;
}

.footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Error message */
.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Waitlist confirmation */
.waitlist-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    text-align: center;
}

.waitlist-confirmation svg {
    margin-bottom: 10px;
}

.waitlist-confirmation p {
    font-weight: bold;
    color: #4CAF50;
    margin: 0;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin: -50px auto 20px;
        width: 90%;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logos-container {
        margin: 15px 0;
    }
    
    .partner-logo {
        width: 30px;
        height: 30px;
        margin: 0 8px;
    }
    
    .cta {
        padding: 0.8rem 1.5rem;
        font-size: 14px;
    }
    
    .features h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}



@media (max-width: 480px) {
    .card-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .download-content h2 {
        font-size: 1.8rem;
    }
}
