/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
    /* Colors */
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 100%;
    --secondary: 270 60% 60%;
    --secondary-foreground: 0 0% 100%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;
    --border: 220 13% 91%;
    --radius: 0.75rem;
    
    /* Custom Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(221, 83%, 53%) 0%, hsl(270, 60%, 60%) 100%);
    --gradient-hero: linear-gradient(180deg, hsl(220, 50%, 98%) 0%, hsl(0, 0%, 100%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(220, 50%, 99%) 100%);
    
    /* Shadows */
    --shadow-card: 0 4px 20px -2px hsl(221 83% 53% / 0.12);
    --shadow-card-hover: 0 20px 40px -8px hsl(221 83% 53% / 0.2);
    --shadow-button: 0 4px 14px 0 hsl(221 83% 53% / 0.35);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===================================
   Utility Classes
   =================================== */

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow-button);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 hsl(221 83% 53% / 0.45);
}

/* ===================================
   Animations
   =================================== */

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

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

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

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in.delay-100 {
    animation-delay: 0.1s;
}

.fade-in.delay-200 {
    animation-delay: 0.2s;
}

.fade-in.delay-300 {
    animation-delay: 0.3s;
}

.fade-in.delay-500 {
    animation-delay: 0.5s;
}

.floating-phone {
    animation: floatPhone 4s ease-in-out infinite;
}

.rotating-star {
    animation: rotate 20s linear infinite;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.bg-blob-1 {
    top: 5rem;
    left: 2.5rem;
    width: 16rem;
    height: 16rem;
    background: hsl(221 83% 53% / 0.15);
}

.bg-blob-2 {
    top: 10rem;
    right: 5rem;
    width: 24rem;
    height: 24rem;
    background: hsl(270 60% 60% / 0.15);
}

.bg-blob-3 {
    bottom: 5rem;
    left: 25%;
    width: 18rem;
    height: 18rem;
    background: hsl(221 83% 53% / 0.15);
}

.floating-star {
    position: absolute;
    color: hsl(221 83% 53% / 0.1);
}

.floating-star-1 {
    top: 20%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.floating-star-2 {
    top: 35%;
    left: 30%;
    animation: float 5s ease-in-out infinite;
}

.floating-star-3 {
    top: 50%;
    left: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-star-4 {
    top: 65%;
    left: 70%;
    animation: float 7s ease-in-out infinite;
}

.floating-star-5 {
    top: 80%;
    left: 90%;
    animation: float 8s ease-in-out infinite;
}

.star-icon {
    width: 16px;
    height: 16px;
}

.floating-star-2 .star-icon { width: 20px; height: 20px; }
.floating-star-3 .star-icon { width: 24px; height: 24px; }
.floating-star-4 .star-icon { width: 28px; height: 28px; }
.floating-star-5 .star-icon { width: 32px; height: 32px; }

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

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

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

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--primary));
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--foreground) / 0.7);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: hsl(var(--foreground));
}

/* Hero Content */
.hero-container {
    padding-top: 3rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsl(221 83% 53% / 0.1);
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge-icon {
    fill: hsl(var(--primary));
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.store-button:hover {
    background: hsl(var(--foreground) / 0.9);
    transform: translateY(-4px);
}

.store-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.store-text {
    text-align: left;
}

.store-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.store-name {
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: hsl(var(--border));
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-wrapper {
    position: relative;
}

.mockup-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 3rem;
    filter: blur(80px);
    opacity: 0.2;
    transform: scale(0.9);
}

.mockup-image {
    position: relative;
    z-index: 10;
    max-width: 20rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===================================
   Features Section
   =================================== */

.features-section {
    padding: 6rem 0;
    background: hsl(var(--muted) / 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsl(221 83% 53% / 0.1);
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.secondary-badge {
    background: hsl(270 60% 60% / 0.1);
    color: hsl(var(--secondary));
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works-section {
    padding: 6rem 0;
}

.steps-wrapper {
    position: relative;
}

.steps-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        hsl(221 83% 53% / 0.2),
        hsl(270 60% 60% / 0.2),
        hsl(221 83% 53% / 0.2)
    );
    transform: translateY(-50%);
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

.step-item {
    position: relative;
    text-align: center;
}

.step-icon-wrapper {
    position: relative;
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: hsl(var(--card));
    border: 2px solid hsl(221 83% 53% / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.step-icon svg {
    color: hsl(var(--primary));
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    max-width: 20rem;
    margin: 0 auto;
}

/* ===================================
   Download CTA Section
   =================================== */

.download-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.download-bg-blobs {
    position: absolute;
    inset: 0;
}

.download-bg-blobs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
}

.download-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.download-blob-1 {
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background: hsl(221 83% 53% / 0.1);
}

.download-blob-2 {
    bottom: 0;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: hsl(270 60% 60% / 0.1);
}

.download-container {
    max-width: 48rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.rotating-star {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.star-large {
    width: 4rem;
    height: 4rem;
    color: hsl(var(--primary));
    fill: hsl(221 83% 53% / 0.2);
    filter: drop-shadow(0 0 20px hsl(221 83% 53% / 0.5));
}

.download-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.download-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

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

.store-button-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 1rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.store-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.2);
}

.store-icon-large {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.store-text-large {
    text-align: left;
}

.store-name-large {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--primary));
    fill: hsl(var(--primary));
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: hsl(var(--background) / 0.7);
    max-width: 24rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsl(var(--background) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: hsl(var(--primary));
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: hsl(var(--background) / 0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--background) / 0.1);
    text-align: center;
    color: hsl(var(--background) / 0.5);
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (min-width: 640px) {
    .hero-buttons,
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .download-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-badge,
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .steps-line {
        display: block;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .download-title {
        font-size: 3rem;
    }
    
    .mockup-image {
        max-width: 28rem;
    }
}

/* ===================================
   Scroll Animations
   =================================== */

.section-visible .section-header,
.section-visible .feature-card,
.section-visible .step-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.section-visible .feature-card:nth-child(1) { animation-delay: 0s; }
.section-visible .feature-card:nth-child(2) { animation-delay: 0.1s; }
.section-visible .feature-card:nth-child(3) { animation-delay: 0.2s; }
.section-visible .feature-card:nth-child(4) { animation-delay: 0.3s; }
.section-visible .feature-card:nth-child(5) { animation-delay: 0.4s; }
.section-visible .feature-card:nth-child(6) { animation-delay: 0.5s; }

.section-visible .step-item:nth-child(1) { animation-delay: 0s; }
.section-visible .step-item:nth-child(2) { animation-delay: 0.15s; }
.section-visible .step-item:nth-child(3) { animation-delay: 0.3s; }
.section-visible .step-item:nth-child(4) { animation-delay: 0.45s; }
