/* ============================================
   GLOOW Landing Page - Styles
   Couleur principale: #77021D (Rouge bordeaux)
   ============================================ */

:root {
    --primary: #77021D;
    --primary-dark: #5A0115;
    --primary-light: #9A0325;
    --secondary: #FFFFFF;
    --accent: #FF6B9D;
    --accent-alt: #FF8C69;
    --accent-light: #F5E6EA;
    --text: #2C2C2C;
    --text-secondary: #727275;
    --text-light: #B0B0B0;
    --background: #FFFFFF;
    --surface: #F5F5F5;
    --surface-elevated: #FAFAFA;
    --neutral-light: #E5E5E5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F5E6EA 0%, #FFFFFF 50%, #F8F8F8 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(119, 2, 29, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Blobs / formes organiques animées */
.hero .container {
    position: relative;
    z-index: 1;
}

.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(119, 2, 29, 0.1);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 157, 0.15);
    bottom: 10%;
    left: -5%;
    animation-delay: -7s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 140, 105, 0.1);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) scale(1);
    }
    25% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        border-radius: 50% 60% 30% 70% / 50% 60% 40% 50%;
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        border-radius: 30% 70% 60% 40% / 60% 40% 50% 50%;
        transform: translate(30px, 10px) scale(1.02);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.phone-mockup {
    position: relative;
    width: 250px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 32px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.phone-screen-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

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

.phone-screen-wrapper .phone-screen.active {
    opacity: 1;
    z-index: 1;
}

.phone-mockup:not([data-tilt]) .phone-img {
    position: relative;
}

.phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    background: var(--background);
}

/* Phone mockup with wrapper uses 24px for inner radius */
.phone-mockup .phone-screen-wrapper .phone-img {
    border-radius: 24px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.stat-suffix {
    font-size: 32px;
    font-weight: 700;
    opacity: 0.9;
}

.stat-label {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.9;
}

@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stat-number {
        font-size: 36px;
    }
    .stat-suffix {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 40px;
    }
}

/* Floating phone (desktop) */
.phone-mockup-floating {
    display: none;
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: opacity 0.5s ease;
}

.phone-mockup-floating.visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-floating .phone-mockup {
    width: 220px;
    height: 440px;
}

/* Desktop: floating phone visible, hero phone hidden */
@media (min-width: 1200px) {
    .phone-mockup-floating.visible {
        display: flex !important;
    }
    .hero-image .phone-mockup {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .hero-image .phone-mockup {
        display: flex !important;
    }
}

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

.features {
    padding: 80px 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface-elevated);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.step-reverse {
    grid-template-columns: auto 1fr auto;
    direction: rtl;
}

.step-reverse > * {
    direction: ltr;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 32px;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.step-content {
    max-width: 500px;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-image {
    flex-shrink: 0;
}

.step-img {
    width: 240px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.step-img:hover {
    transform: scale(1.05);
}

/* ============================================
   Testimonials Section - Carousel
   ============================================ */

.testimonials {
    padding: 80px 0;
    background: var(--background);
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 32px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-track .testimonial-card {
    flex: 0 0 calc(100% - 48px);
    min-width: calc(100% - 48px);
}

@media (min-width: 768px) {
    .carousel-track .testimonial-card {
        flex: 0 0 calc(50% - 16px);
        min-width: calc(50% - 16px);
    }
}

@media (min-width: 1024px) {
    .carousel-track .testimonial-card {
        flex: 0 0 calc(33.333% - 22px);
        min-width: calc(33.333% - 22px);
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neutral-light);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--text-light);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.testimonial-card {
    background: var(--surface-elevated);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--neutral-light);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.testimonial-rating {
    margin-bottom: 16px;
}

.star {
    color: #FFD700;
    font-size: 20px;
    margin-right: 2px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
}

.author-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.author-location {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.download::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-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.download-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

.download-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.download-platform {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.qr-code {
    text-align: center;
}

.qr-code p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    padding: 20px;
}

.qr-placeholder svg {
    width: 100%;
    height: 100%;
}

.download-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-large {
    width: 280px;
    height: 560px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    background: var(--background);
}

/* ============================================
   Provider CTA Section
   ============================================ */

.provider-cta {
    padding: 60px 0;
    background: var(--surface);
}

.provider-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.provider-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.provider-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.provider-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.category-tag {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.provider-incentive {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

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

.footer {
    background: var(--text);
    color: var(--secondary);
    padding: 60px 0 24px;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: var(--secondary);
}

.footer-logo .logo-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

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

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

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

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

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-title {
        font-size: 28px;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .step-reverse {
        direction: ltr;
    }

    .step-image {
        order: -1;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .phone-mockup-large {
        width: 280px;
        height: 560px;
    }

    .step-img {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .download-title {
        font-size: 24px;
    }

    .download-subtitle {
        font-size: 14px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .provider-title {
        font-size: 22px;
    }

    .provider-text {
        font-size: 14px;
    }
}
