/* CSS Variables */
:root {
    --purple-gradient-start: hsl(262, 83%, 58%);
    --purple-gradient-mid: hsl(252, 83%, 48%);
    --purple-gradient-end: hsl(242, 83%, 58%);
    --yellow-gradient-start: hsl(42, 92%, 56%);
    --orange-gradient-end: hsl(25, 95%, 53%);
    --glass-bg: hsla(0, 0%, 100%, 0.1);
    --glass-border: hsla(0, 0%, 100%, 0.2);
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(135deg, var(--purple-gradient-start) 0%, var(--purple-gradient-mid) 25%, var(--purple-gradient-end) 50%, hsl(232, 83%, 68%) 75%, hsl(222, 83%, 78%) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.gradient-text {
    background: linear-gradient(to right, var(--yellow-gradient-start), var(--orange-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-menu {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    position: relative;
    min-height: 70vh;
}

.hero-content {
    text-align: center;
}

.hero-headline {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-headline {
        font-size: 4.5rem;
    }
    
    .hero-subtext {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--purple-gradient-start);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--purple-gradient-start);
}

.btn-cashback {
    background: linear-gradient(to right, var(--yellow-gradient-start), var(--orange-gradient-end));
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.btn-cashback:hover {
    background: linear-gradient(to right, hsl(42, 92%, 50%), hsl(25, 95%, 47%));
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-claim {
    width: 100%;
    background: linear-gradient(to right, var(--purple-gradient-start), hsl(252, 83%, 48%));
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-claim:hover {
    background: linear-gradient(to right, hsl(262, 83%, 50%), hsl(252, 83%, 40%));
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-claim:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Floating Elements */
.floating-emoji {
    position: absolute;
    font-size: 2.5rem;
    pointer-events: none;
}

.floating-money {
    top: 5rem;
    left: 2.5rem;
    animation: bounce 2s infinite;
}

.floating-party {
    bottom: 5rem;
    right: 2.5rem;
    animation: pulse-slow 3s infinite;
}

.floating-chart {
    top: 8rem;
    right: 5rem;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .floating-emoji {
        font-size: 2rem;
    }
    
    .floating-money {
        top: 3rem;
        left: 1rem;
    }
    
    .floating-party {
        bottom: 3rem;
        right: 1rem;
    }
    
    .floating-chart {
        top: 6rem;
        right: 2rem;
    }
}

/* Features Section */
.features-section {
    position: relative;
    z-index: 10;
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 28rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    animation: modalEnter 0.4s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #6b7280;
}

.modal-form {
    text-align: center;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-headline {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.modal-subtext {
    color: #6b7280;
    font-size: 1.125rem;
}

.credit-info {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.upi-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    background: white;
    color: #111827;
    transition: border-color 0.3s ease;
}

.upi-input::placeholder {
    color: #9ca3af;
}

.upi-input:focus {
    outline: none;
    border-color: var(--purple-gradient-start);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    text-align: left;
    margin-top: 0.5rem;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.security-icon {
    width: 1rem;
    height: 1rem;
}

/* Success State */
.modal-success {
    text-align: center;
    animation: successEnter 0.3s ease-out forwards;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
}

.success-headline {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #6b7280;
    margin-bottom: 1rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--purple-gradient-start);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0; }

/* Animations */
@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successEnter {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subtext {
        font-size: 1.125rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-headline {
        font-size: 1.5rem;
    }
    
    .modal-subtext {
        font-size: 1rem;
    }
}