/* ====================================
   Ô'Poulet Landing Page Styles
   ==================================== */

/* Variables */
:root {
    /* Colors */
    --color-primary: #FF6B35;
    --color-primary-dark: #E85A2A;
    --color-accent: #FFA500;
    --color-dark: #1a1a1a;
    --color-dark-light: #2a2a2a;
    --color-gray: #666666;
    --color-gray-light: #f5f5f5;
    --color-white: #ffffff;
    --color-red: #DC143C;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 100px);
    --container-padding: 20px;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ====================================
   Header
   ==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo img {
    height: 40px;
    width: auto;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    padding: calc(80px + var(--section-padding)) 0 var(--section-padding);
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-light) 100%);
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--color-white);
    color: var(--color-dark);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-btn svg {
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
}

.store-btn-label {
    font-size: 11px;
    opacity: 0.7;
}

.store-btn-store {
    font-size: 16px;
    font-weight: 600;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--color-dark-light);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: var(--color-dark);
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 30px;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.app-card {
    background: var(--color-dark-light);
    border-radius: var(--radius-md);
    height: 100px;
    animation: pulse 2s ease-in-out infinite;
}

.app-card:nth-child(2) {
    animation-delay: 0.3s;
}

.app-card:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* ====================================
   Section Titles
   ==================================== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* ====================================
   Features Section
   ==================================== */
.features {
    padding: var(--section-padding) 0;
    background: var(--color-gray-light);
}

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

.feature-card {
    background: var(--color-white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-white);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* ====================================
   How It Works Section
   ==================================== */
.how-it-works {
    padding: var(--section-padding) 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 40px;
    color: var(--color-gray);
}

/* ====================================
   CTA Section
   ==================================== */
.cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
}

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

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

.cta .store-buttons {
    justify-content: center;
}

.cta .store-btn {
    background: var(--color-dark);
    color: var(--color-white);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    padding: 40px 0;
    background: var(--color-dark);
    color: var(--color-white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ====================================
   Legal Pages
   ==================================== */
.legal-page {
    padding: calc(80px + 40px) 0 var(--section-padding);
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.legal-update {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--color-gray);
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--color-gray);
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.legal-content a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-primary-dark);
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .store-buttons {
        justify-content: center;
    }

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

    .step-arrow {
        display: none;
    }

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

    .step {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 50px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(80px + 40px);
    }

    .phone-mockup {
        width: 200px;
        height: 420px;
        border-radius: 30px;
        padding: 8px;
    }

    .phone-mockup::before {
        width: 70px;
        height: 18px;
        top: 15px;
    }

    .phone-screen {
        border-radius: 24px;
    }

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

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

/* ====================================
   Animations
   ==================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
