:root {
    --primary: #4F46E5;
    --secondary: #EC4899;
    --accent: #8B5CF6;
    --bg-color: #F8FAFC;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(255, 255, 255, 0.5);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.05), 0 10px 15px -5px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Advanced Animated Background Mesh */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #F8FAFC;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, rgba(255,255,255,0) 70%);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, rgba(255,255,255,0) 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translateX(-50%);
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    perspective: 1000px;
}

.glass-hero {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--surface-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.8);
    z-index: 2;
    animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.time-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.time-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.colon {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

/* Form */
.cta-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s ease;
}

.premium-form.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .icon {
    position: absolute;
    left: 1.5rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.premium-form input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: 16px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

.premium-form input:focus {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.premium-form input::placeholder {
    color: #94A3B8;
}

.primary-btn {
    position: relative;
    padding: 1.25rem;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5);
}

.primary-btn:active {
    transform: translateY(1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.primary-btn.loading .btn-text {
    opacity: 0.8;
}

.primary-btn.loading .btn-shine {
    display: none;
}

.success-msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #10B981;
    font-weight: 600;
    font-size: 1.1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.success-msg.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.success-msg svg {
    width: 48px;
    height: 48px;
    color: #10B981;
}

/* Floating 3D Elements (Visible on larger screens) */
.float-element {
    position: absolute;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

.card-3d {
    width: 250px;
    height: 350px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1);
    padding: 1rem;
    display: none;
}

.card-left {
    left: 5%;
    top: 20%;
    transform: rotate(-15deg);
}

.card-right {
    right: 5%;
    top: 40%;
    transform: rotate(15deg);
}

.mockup-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.gradient-mockup-1 {
    background: linear-gradient(135deg, #FDE68A 0%, #FCA5A5 100%);
    opacity: 0.8;
}

.gradient-mockup-2 {
    background: linear-gradient(135deg, #A7F3D0 0%, #93C5FD 100%);
    opacity: 0.8;
}

@media (min-width: 1200px) {
    .card-3d {
        display: block;
        animation: floatSlow 8s ease-in-out infinite alternate;
    }
    
    .card-right {
        animation-delay: -4s;
    }
}

@keyframes floatSlow {
    from { margin-top: 0; }
    to { margin-top: -30px; }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-hero {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .time-val {
        font-size: 2.2rem;
    }
    
    .colon {
        font-size: 1.8rem;
    }
    
    .premium-form {
        gap: 0.75rem;
    }
    
    .premium-form input, .primary-btn {
        padding: 1rem;
    }
}
