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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #E5E7EB;
    background: #1F2937;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #A78BFA, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #D1D5DB;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 50%, #A78BFA 100%);
    overflow: hidden;
}

.cosmic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

.floating-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
}

.symbol {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.symbol-1 { top: 20%; left: 10%; animation-delay: 0s; }
.symbol-2 { top: 60%; left: 80%; animation-delay: 1s; }
.symbol-3 { top: 30%; left: 70%; animation-delay: 2s; }
.symbol-4 { top: 80%; left: 20%; animation-delay: 3s; }
.symbol-5 { top: 10%; left: 60%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.app-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #A78BFA, #d04df6);
    border-radius: 35px;
    z-index: -1;
    animation: rotate-glow 4s linear infinite;
    opacity: 0.7;
}

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

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(107, 70, 193, 0.1));
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #A78BFA;
}

.feature-card p {
    color: #D1D5DB;
    line-height: 1.6;
}

/* App Preview Section */
.preview-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}

.app-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #374151, #1F2937);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screenshot.active {
    opacity: 1;
}

.preview-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-btn {
    padding: 1rem 2rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 15px;
    color: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.preview-btn:hover,
.preview-btn.active {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: #fff;
    transform: translateX(10px);
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(107, 70, 193, 0.1));
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(107, 70, 193, 0.2);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #F59E0B;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #E5E7EB;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #A78BFA;
}

.author-info h4 {
    color: #A78BFA;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* Download Section */
.download-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 50%, #A78BFA 100%);
    text-align: center;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.download-center {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #8B5CF6, #6B46C1);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

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

.btn-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.btn-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.btn-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
}

.availability-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #111827 0%, #0F172A 100%);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #A78BFA, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #A78BFA;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #A78BFA;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #A78BFA;
    transform: translateY(-3px);
}

.newsletter-signup {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #E5E7EB;
    font-size: 0.9rem;
}

.email-input::placeholder {
    color: #9CA3AF;
}

.subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-preview {
        flex-direction: column;
        gap: 2rem;
    }
    
    .phone-frame {
        width: 250px;
        height: 500px;
    }
    
    .preview-controls {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .download-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-signup {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .download-btn {
        padding: 1.5rem 2rem;
        margin: 0 1rem;
    }
    
    .btn-text {
        font-size: 1.25rem;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.preview-btn:focus,
.store-badge:focus,
.social-link:focus,
.subscribe-btn:focus {
    outline: 2px solid #A78BFA;
    outline-offset: 2px;
}

/* Enhanced cursor sparkle effect */
.cursor-sparkle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.cursor-sparkle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #F59E0B, #8B5CF6, #A78BFA, #F59E0B);
    border-radius: 50%;
    z-index: -1;
    animation: sparkleRotate 1.2s linear infinite;
}

@keyframes enhancedSparkle {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
        filter: brightness(2);
    }
    25% {
        opacity: 1;
        transform: scale(1.2) rotate(90deg);
        filter: brightness(1.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1) rotate(180deg);
        filter: brightness(1.2);
    }
    75% {
        opacity: 0.4;
        transform: scale(0.8) rotate(270deg);
        filter: brightness(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
        filter: brightness(0);
    }
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .testimonial-card {
        border-width: 2px;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}