/* Import Google Fonts - Poppins (comme dans l'app Flutter) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables de couleurs - Cohérentes avec l'app Flutter */
:root {
    /* Couleurs principales */
    --primary-violet: #7C3AED;
    --primary-violet-dark: #5B21B6;
    --primary-violet-light: #A78BFA;
    
    /* Couleurs secondaires */
    --mint-green: #C7F9CC;
    --soft-green: #D8F3DC;
    --accent-cyan: #22D3EE;
    --accent-pink: #EC4899;
    --accent-green: #10B981;
    --accent-yellow: #F59E0B;
    
    /* Couleurs de fond (thème clair) */
    --background: #F9FAFB;
    --surface-white: #FFFFFF;
    --surface-light: #F0FDF4;
    --card-surface: #FFFFFF;
    
    /* Couleurs de texte */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-hint: #64748B;
    
    /* Couleurs de gris */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    
    /* Couleurs d'état */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #F3FFE9 0%, #FFFFFF 30%, #F7ECFF 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-dark) 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.secondary-btn {
    background: var(--surface-white);
    color: var(--primary-violet);
    border: 2px solid var(--primary-violet);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.secondary-btn:hover {
    background: var(--primary-violet);
    color: white;
    transform: translateY(-2px);
}

/* Header/Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #F3FFE9 0%, #FFFFFF 40%, #F7ECFF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(199, 249, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-violet);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-violet);
}

nav ul li a:hover::after {
    width: 100%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 48px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--surface-white);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-item {
    background: var(--surface-white);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-violet), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.step-item {
    background: var(--surface-white);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    position: relative;
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--accent-pink) 100%);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.step-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-section h2,
.download-section p {
    color: white;
    position: relative;
    z-index: 10;
}

.download-section p {
    font-size: 1.2rem;
    margin-bottom: 48px;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.store-btn {
    background: var(--surface-white);
    padding: 0;
    border: none;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.store-badge {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    min-width: 220px;
    gap: 16px;
}

.store-icon {
    font-size: 2.5rem;
}

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

.store-small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.store-large {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coming-soon {
    margin-top: 40px;
    font-style: italic;
    opacity: 0.9;
    font-size: 1rem;
    position: relative;
    z-index: 10;
}

/* Footer */
footer {
    background: var(--text-primary);
    padding: 60px 0 40px;
    text-align: center;
    color: white;
}

footer p {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.social-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    nav {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 60px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-section,
    .how-it-works-section,
    .download-section {
        padding: 60px 0;
    }

    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .feature-item,
    .step-item {
        padding: 32px 24px;
    }
}

/* ============================================
   COMING SOON & SUSPENSE EFFECTS
   ============================================ */

/* Particles Background */
.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particles-background::before,
.particles-background::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.particles-background::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles-background::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--accent-pink) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* Logo Glow Effect */
.logo-glow {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6));
    }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
    }
}

.pulse-on-hover:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Fade In Up Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Reveal On Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Teaser Section (blur effect) */
.teaser-section {
    position: relative;
}

.teaser-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

.teaser-section > .container {
    position: relative;
    z-index: 1;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SUBSCRIPTION CARDS & FORMS
   ============================================ */

.join-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--surface-white) 0%, var(--surface-light) 100%);
    position: relative;
}

.subscription-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-card {
    background: var(--surface-white);
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-violet), var(--accent-pink));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.subscription-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 60px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-violet-light);
}

.subscription-card:hover::before {
    transform: scaleX(1);
}

.beta-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.notification-card {
    background: linear-gradient(135deg, rgba(199, 249, 204, 0.3) 0%, rgba(216, 243, 220, 0.3) 100%);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: floatIcon 3s ease-in-out infinite;
}

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

.subscription-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.subscription-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Form Styles */
.subscription-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--surface-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.full-width {
    width: 100%;
    margin-top: 8px;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.form-message.loading {
    display: block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-violet);
    border: 1px solid var(--primary-violet);
}

/* Coming Soon Hero */
.coming-soon-hero {
    position: relative;
}

.coming-soon-hero .hero-content {
    z-index: 10;
}

/* Responsive for Subscription Cards */
@media (max-width: 768px) {
    .subscription-cards {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .subscription-card {
        padding: 32px 24px;
    }

    .card-icon {
        font-size: 3rem;
    }
}
