:root {
    --bg-color: #0b0f19;
    --primary-color: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary-color: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--primary-glow);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    background: rgba(6, 182, 212, 0.3);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Container (Mobile First) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 48px;
    width: auto;
}

/* Hero Section (Mobile First) */
.hero-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cta {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #a855f7, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Glass Card (Mobile First) */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.glass h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.glass p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Elements */
.input-group {
    margin-bottom: 1rem;
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

button {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

button:active {
    transform: scale(0.98);
}

/* Spinner */
.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.error-msg {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
    display: none;
}

/* Success State */
.hidden {
    display: none !important;
}

#success-state {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.referral-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.referral-box input {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.05);
}

.referral-box button {
    width: 100%;
}

/* Phone Mockup (Mobile First) */
.hero-image {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    width: 100%;
}

.floating-phone {
    max-width: 320px;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
    animation: float-phone-mobile 6s ease-in-out infinite;
    transform: rotateY(0) rotateX(0);
    border: 8px solid #1e293b;
    background-color: #0b0f19;
    overflow: hidden;
}

@keyframes float-phone-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Swiper Overrides */
.mySwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    background: #0b0f19;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Desktop Styles (min-width: 768px) */
@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
    
    header {
        padding-bottom: 4rem;
    }
    
    .logo-img {
        height: 56px;
    }

    .logo {
        font-size: 2rem;
    }

    .glass {
        padding: 2.5rem;
    }

    .referral-box {
        flex-direction: row;
    }

    .referral-box button {
        width: auto;
        padding: 0 1.5rem;
    }
}

/* Large Desktop Styles (min-width: 992px) */
@media (min-width: 992px) {
    .hero-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 2rem 4rem;
        text-align: left;
    }

    .hero-text {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        align-items: flex-start;
        text-align: left;
    }

    .hero-cta {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .hero-image {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        justify-self: center;
        align-self: center;
    }

    .floating-phone {
        transform: rotateY(-10deg) rotateX(5deg);
        animation: float-phone-desktop 6s ease-in-out infinite;
    }
}

@keyframes float-phone-desktop {
    0%, 100% { transform: translateY(0) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-10deg) rotateX(5deg); }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
