/* =================================================================
   WEBLEGAL.AI - STYLES V0 (INSPIRED BY V0.APP DESIGN)
   Système CSS unifié avec classes minimalistes
   ================================================================= */

/* Modern font imports - Montserrat + Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;900&family=Open+Sans:wght@400;500;600&display=swap");

/* =================================================================
   CSS VARIABLES - V0 Design Tokens
   ================================================================= */

:root {
    /* Color Palette (v0 inspired) */
    --primary: #10b981;
    --primary-foreground: #ffffff;
    --primary-hover: #059669;
    --secondary: #f1f5f9;
    --secondary-foreground: #475569;
    --accent: #10b981;
    --accent-foreground: #ffffff;
    
    /* Background & Surfaces */
    --background: #ffffff;
    --foreground: #475569;
    --card: #f1f5f9;
    --card-foreground: #475569;
    --muted: #f1f5f9;
    --muted-foreground: #374151;
    
    /* UI Elements */
    --border: #d1d5db;
    --input: #ffffff;
    --ring: rgba(5, 150, 105, 0.5);
    --destructive: #ea580c;
    --destructive-foreground: #ffffff;
    --warning: #fbbf24;
    --warning-foreground: #ffffff;
    
    /* Spacing System (Tailwind scale) */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-32: 8rem;       /* 128px */
    
    /* Typography Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* Layout */
    --radius: 0.375rem;     /* 6px */
    --max-w-3xl: 48rem;     /* 768px */
    --max-w-4xl: 56rem;     /* 896px */
    --max-w-7xl: 80rem;     /* 1280px */
    
    /* Typography */
    --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Footer Variables - Easily customizable */
    --footer-bg: #475569;
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.8);
    --footer-text-light: rgba(255, 255, 255, 0.6);
    --footer-accent: #10b981;
    --footer-separator: rgba(255, 255, 255, 0.2);
    --footer-social-border: rgba(255, 255, 255, 0.2);
    --footer-social-hover-bg: rgba(255, 255, 255, 0.1);
    --footer-social-hover-border: rgba(255, 255, 255, 0.4);
}

/* Dark theme */
.dark-theme {
    --background: #0f172a;
    --foreground: #f1f5f9;
    --card: #1e293b;
    --card-foreground: #f1f5f9;
    --secondary: #334155;
    --secondary-foreground: #f1f5f9;
    --muted: #334155;
    --muted-foreground: #cbd5e1; /* Plus clair pour meilleur contraste */
    --border: #475569; /* Plus visible en dark */
    --input: #1e293b;
    
    /* Colors pour mode dark */
    --destructive: #f87171; /* Plus doux en mode dark */
    --warning: #fde047; /* Plus visible en mode dark */
    
    /* Footer en mode dark */
    --footer-bg: #1e293b;
    --footer-text: #f1f5f9;
    --footer-text-muted: rgba(241, 245, 249, 0.8);
    --footer-text-light: rgba(241, 245, 249, 0.6);
}

/* =================================================================
   BASE STYLES
   ================================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Header height (64px) + extra spacing (16px) */
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    padding-top: 64px; /* Header height */
}

/* =================================================================
   UNIFIED TYPOGRAPHY SYSTEM
   ================================================================= */

/* Hero Title - Large, prominent */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: 900;
    line-height: 1.1;
    color: var(--foreground);
    margin-bottom: var(--space-6);
    text-align: center;
}

.hero-title .text-primary {
    color: var(--primary);
    display: block;
}

/* Section Title - Consistent for all sections */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
    margin-bottom: var(--space-4);
    text-align: center;
}

.section-title .text-primary {
    color: var(--primary);
}

/* Subtitle - For descriptions under titles */
.subtitle {
    font-family: var(--font-body);
    font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: var(--space-8);
    max-width: var(--max-w-3xl);
    margin-left: auto;
    margin-right: auto;
}

/* Standard headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--foreground);
    line-height: 1.2;
}

h1 { font-size: var(--text-4xl); font-weight: 900; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }

p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }

/* =================================================================
   UNIFIED BUTTON SYSTEM
   ================================================================= */

/* Base button styles */
.btn-primary,
.btn-secondary,
.btn-outline {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    white-space: nowrap;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: var(--space-2) var(--space-4);
    min-height: 36px; /* h-9 equivalent */
}

/* Primary button - Main CTA */
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--primary-foreground);
}

/* Secondary button */
.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--muted);
    color: var(--secondary-foreground);
    text-decoration: none;
}

/* Outline button */
.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
    color: var(--foreground);
    text-decoration: none;
}

/* Button sizes */
.btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    min-height: 44px;
}

/* =================================================================
   UNIFIED LAYOUT SYSTEM
   ================================================================= */

/* Container - Consistent max-width and padding */
.container {
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Section - Consistent vertical spacing */
.section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

/* =================================================================
   HEADER & NAVIGATION
   ================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

/* Header en mode dark */
.dark-theme .site-header {
    background: rgba(15, 23, 42, 0.95); /* --background: #0f172a avec transparence */
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--foreground);
}

.logo:hover {
    color: var(--primary);
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    gap: 4px;
}

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

/* Mobile menu styles */
.mobile-menu-hidden {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
}

.mobile-menu-hidden.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--foreground);
}

.mobile-menu-hidden nav {
    margin-top: var(--space-12);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mobile-menu-hidden nav a {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    padding: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.mobile-menu-hidden nav a:hover {
    color: var(--primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

body.menu-open {
    overflow: hidden;
}

/* Theme switcher */
.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.theme-switcher {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.15s ease-in-out;
}

.theme-switcher:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Theme switcher icons positioning and animations */
.theme-switcher .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.theme-switcher .sun-icon,
.theme-switcher .moon-icon {
    width: 20px;
    height: 20px;
}

/* Light theme - show moon, hide sun */
:root:not(.dark-theme) .theme-switcher .sun-icon {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

:root:not(.dark-theme) .theme-switcher .moon-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Dark theme - show sun, hide moon */
:root.dark-theme .theme-switcher .moon-icon {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

:root.dark-theme .theme-switcher .sun-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* =================================================================
   SECTION LAYOUTS - 3 Types Principaux
   ================================================================= */

/* 1. Hero Section - Layout 50/50 avec documents */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom, var(--background) 0%, rgba(241, 245, 249, 0.3) 100%);
    padding: var(--space-8) 0;
    height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    width: 100%;
}

.hero-text {
    padding: var(--space-4);
}

/* Gradient text pour le titre hero */
.gradient-text {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: left;
}

.hero-text .subtitle {
    text-align: left;
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* =================================================================
   HERO VISUAL & DOCUMENT CAROUSEL
   ================================================================= */

.hero-visual {
    position: relative;
    height: 100%;
    max-height: 600px;
    min-height: 450px;
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-4);
}

.document-container {
    position: relative;
    width: 100%;
    height: calc(100% - 128px);
    margin: 64px 0;
    transform-style: preserve-3d;
    animation: rotate-documents 20s infinite linear;
}

@keyframes rotate-documents {
    0% { transform: rotateY(0deg); }
    22% { transform: rotateY(0deg); }
    25% { transform: rotateY(-90deg); }
    47% { transform: rotateY(-90deg); }
    50% { transform: rotateY(-180deg); }
    72% { transform: rotateY(-180deg); }
    75% { transform: rotateY(-270deg); }
    97% { transform: rotateY(-270deg); }
    100% { transform: rotateY(-360deg); }
}

.document-mockup {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    transform-origin: center center;
    backface-visibility: hidden;
    font-family: var(--font-body);
    color: var(--foreground);
}

.document-mockup.active {
    transform: rotateY(0deg);
}

.document-mockup:nth-child(2) {
    transform: rotateY(90deg);
}

.document-mockup:nth-child(3) {
    transform: rotateY(180deg);
}

.document-mockup:nth-child(4) {
    transform: rotateY(270deg);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.doc-logo {
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
    font-family: var(--font-heading);
}

.doc-date {
    font-size: 14px;
    color: var(--muted-foreground);
}

.doc-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 20px;
    text-align: center;
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.doc-section {
    margin-bottom: 20px;
}

.doc-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    margin: 16px 0 10px 0;
    font-family: var(--font-heading);
}

.doc-section p {
    font-size: 13px;
    color: var(--foreground);
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: justify;
}

.doc-list {
    margin-left: 20px;
    margin-bottom: 12px;
    list-style-type: disc;
}

.doc-list li {
    font-size: 14px;
    color: var(--foreground);
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Masquer les infos de document dans le hero */
.hero-visual .document-info {
    display: none;
}

/* =================================================================
   TRUST BADGES - Section "Proven Results"
   ================================================================= */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin: var(--space-8) 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    text-align: center;
    min-width: 160px;
}

.trust-badge svg {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.trust-badge span {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--foreground);
}

/* 2. Section Standard - Pour contenu normal */
.section {
    padding: var(--space-12) 0;
    background: var(--background);
}

/* 3. Section 50/50 - Layout image/texte côte à côte */
.section-50-50 {
    padding: var(--space-12) 0;
    background: var(--background);
}

/* Section Header - Titre en 100% largeur */
.section-50-50 .section-header {
    max-width: var(--max-w-7xl);
    margin: 0 auto var(--space-8) auto;
    padding: 0 var(--space-4);
    text-align: center;
}

.section-50-50 .section-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
    margin-bottom: var(--space-4);
    text-align: center;
}

.section-50-50 .subtitle {
    font-family: var(--font-body);
    font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 0;
    max-width: var(--max-w-3xl);
    margin-left: auto;
    margin-right: auto;
}

/* Apple Container - Layout 50/50 pour contenu seulement */
.apple-container {
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

/* Reverse order for alternating sections */
.section-reverse .apple-content {
    order: 2;
}

.section-reverse .apple-image {
    order: 1;
}

.apple-content {
    padding: var(--space-4);
}

.apple-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.apple-image img {
    max-width: 100%;
    height: auto;
}

/* Legacy 50/50 support */
.section-50-50 .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.section-50-50 .content {
    padding: var(--space-8);
}

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

/* Section Header - Pour tous les headers de sections */
.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
    max-width: var(--max-w-4xl);
    margin-left: auto;
    margin-right: auto;
}

.section-header .section-title {
    margin-bottom: var(--space-4);
}

.section-header .subtitle {
    margin-bottom: 0;
}

/* Modern badge */
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: 9999px;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
}

/* CTA buttons container */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-12);
}

/* Hero background effects */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 24rem;
    height: 24rem;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

/* =================================================================
   DOCUMENT CONTAINERS & SAMPLES
   ================================================================= */

.document-container {
    position: relative;
    width: 100%;
    height: auto;
    margin: var(--space-16) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.document-preview {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    text-align: center;
    transition: all 0.15s ease-in-out;
}

.document-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-preview svg {
    width: 100%;
    height: auto;
    margin-bottom: var(--space-2);
}

.doc-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-1);
}

.doc-section {
    margin-bottom: var(--space-2);
}

.doc-section-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--muted-foreground);
    margin-bottom: var(--space-1);
}

/* Sample Documents Container - 4 documents côte à côte */
.sample-documents-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin: var(--space-16) 0;
    max-width: var(--max-w-7xl);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-4);
}

.sample-document-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sample-document-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.sample-preview {
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sample-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sample-document-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.sample-document-card p {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: 0;
}

/* =================================================================
   CARDS & COMPONENTS
   ================================================================= */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    transition: all 0.15s ease-in-out;
}

.card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Feature Cards - Pour les grilles de fonctionnalités */
.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.15s ease-in-out;
}

.feature-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

/* =================================================================
   GRID LAYOUTS - Cards horizontales
   ================================================================= */

/* Features Grid - 3 colonnes pour fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

/* Stats Grid - 4 colonnes pour statistiques */  
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-8) 0;
    text-align: center;
}

.stat-item {
    padding: var(--space-4);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 900;
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

/* Mistakes Grid - 4 cards en ligne (desktop), 2x2 (mobile) */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin: var(--space-8) 0;
    align-items: stretch;
}

.mistake-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    transition: all 0.15s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mistake-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Icônes d'erreur en rouge */
.mistake-icon.error {
    background: rgba(234, 88, 12, 0.1); /* Utilise --destructive */
    color: var(--destructive);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.mistake-icon.error svg {
    color: var(--destructive);
    width: 24px;
    height: 24px;
}

/* Responsive pour mistakes grid */
@media (max-width: 768px) {
    .mistakes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .mistake-card {
        padding: var(--space-6); /* Keep adequate padding for readability */
    }
    
    .mistake-icon.error {
        width: 40px;
        height: 40px;
    }
    
    .mistake-icon.error svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .mistakes-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* Use Cases Grid - 4 cards en ligne (desktop), 2x2 (mobile) */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.use-case-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.15s ease-in-out;
}

.use-case-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Icônes use-case en vert */
.use-case-icon {
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.use-case-icon svg {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.use-case-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--foreground);
}

.use-case-card p {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.use-case-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* Removed duplicate definition - using the flex version below for better alignment */

/* Responsive pour use-cases grid */
@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .use-case-card {
        padding: var(--space-6); /* Keep adequate padding for readability */
    }
    
    .use-case-icon {
        width: 56px;
        height: 56px;
    }
    
    .use-case-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* Process Steps Grid - 3-4 colonnes pour étapes */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

/* Pricing Features - Pour listes de fonctionnalités dans cards pricing */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.pricing-features li {
    padding: var(--space-2) 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    width: 16px;
    text-align: center;
}

/* Use Case Features - Pour listes dans use cases */
.use-case-features {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.use-case-features li {
    padding: var(--space-1) 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.use-case-features li::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
    width: 12px;
    text-align: center;
}

/* Step Features - Pour listes dans étapes de process */
.step-features {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.step-features li {
    padding: var(--space-1) 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.step-features li::before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
    width: 12px;
    text-align: center;
}

/* Feature Benefits - Pour listes de bénéfices dans feature cards */
.feature-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.feature-benefits li {
    padding: var(--space-1) 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.feature-benefits li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Generic Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

/* =================================================================
   TESTIMONIALS SECTION
   ================================================================= */

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin: var(--space-16) 0;
    max-width: var(--max-w-7xl);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-4);
}

.testimonial-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    justify-content: flex-start;
}

.testimonial-rating .star {
    color: var(--warning);
    font-size: var(--text-lg);
}

.testimonial-content {
    flex: 1;
    margin-bottom: var(--space-6);
}

.testimonial-content p {
    font-style: italic;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: var(--text-base);
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--foreground);
    margin-bottom: var(--space-1);
}

.testimonial-position {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    margin-bottom: var(--space-1);
}

.testimonial-document-tag {
    display: inline-block;
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: var(--space-1) var(--space-2);
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: 500;
}

/* =================================================================
   PRICING SECTION
   ================================================================= */

.pricing-section {
    background: var(--background);
    padding: var(--space-12) 0;
}

.pricing-grid,
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: var(--max-w-4xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.pricing-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-8);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* =================================================================
   FAQ SECTION - Accordion Style
   ================================================================= */

.faq-container {
    max-width: calc(var(--max-w-4xl) * 1.2);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-rows: min-content;
    gap: var(--space-6) var(--space-8);
    margin-top: var(--space-12);
    align-items: start;
}

.faq-item {
    background: var(--background);
    padding: var(--space-6);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: var(--space-6);
    break-inside: avoid;
}

.faq-question {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
}

/* Alternative masonry-like layout using CSS columns */
@supports (columns: 2) {
    .faq-grid {
        display: block;
        columns: 2;
        column-gap: var(--space-8);
        margin-top: var(--space-12);
    }
    
    .faq-item {
        display: inline-block;
        width: 100%;
        break-inside: avoid;
        margin-bottom: var(--space-6);
    }
}

/* Mobile responsive - single column */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        gap: var(--space-6);
    }
    
    @supports (columns: 2) {
        .faq-grid {
            columns: 1;
            column-gap: 0;
        }
    }
    
    .faq-item {
        padding: var(--space-6); /* Keep same padding as desktop for better readability */
        margin-bottom: var(--space-6);
    }
    
    .faq-question {
        font-size: var(--text-sm);
    }
}

/* Process Steps - Section étapes */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin: var(--space-16) 0;
}

.process-step {
    text-align: center;
    padding: var(--space-6);
    position: relative;
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    margin: 0 auto var(--space-4);
}

.process-step .step-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

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

/* Process Step Card - Style de card pour étapes avec background */
.process-step-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.15s ease-in-out;
    position: relative;
}

.process-step-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.process-step-card .step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    margin: 0 auto var(--space-4);
}

.process-step-card .step-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.process-step-card .step-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 768px) {
    /* Navigation */
    .main-navigation .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Typography */
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .subtitle {
        font-size: var(--text-lg);
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        padding: var(--space-3) var(--space-4);
    }
    
    /* CTA buttons */
    .cta-buttons {
        width: 100%;
        flex-direction: column;
        gap: var(--space-3);
    }
    
    /* Sections */
    .section {
        padding: var(--space-8) 0;
    }
    
    /* Hero responsive */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 0; /* Remove gap since animation is hidden */
        text-align: center;
        padding-top: var(--space-2);
    }
    
    .hero-text {
        padding: var(--space-4);
        order: 1; /* Text first on mobile */
    }
    
    .hero-visual {
        display: none; /* Hide animation on mobile for better UX and performance */
    }
    
    .document-container {
        height: calc(100% - 64px) !important;
        margin: 32px 0 !important;
    }
    
    .gradient-text {
        text-align: center;
        font-size: var(--text-3xl);
    }
    
    .hero-text .subtitle {
        text-align: center;
    }
    
    .trust-indicators {
        align-items: center;
    }
    
    .document-mockup {
        padding: 20px !important;
        overflow: hidden !important;
    }
    
    .doc-title {
        font-size: 18px;
    }
    
    .doc-section-title {
        font-size: 14px;
    }
    
    .doc-section p {
        font-size: 12px;
    }
    
    .hero-section {
        padding: var(--space-4) 0 var(--space-8) 0;
        height: auto;
        min-height: auto; /* Remove forced full height on mobile */
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Pricing */
    .pricing-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: 0 var(--space-6);
    }
    
    .pricing-card {
        margin: 0 var(--space-4);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Section 50/50 - Stack on mobile */
    .section-50-50 .container,
    .apple-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: 0 var(--space-4);
    }
    
    .section-50-50 .content,
    .apple-content {
        padding: var(--space-2);
        text-align: center;
        order: 2;
    }
    
    .apple-image {
        order: 1;
        margin-bottom: var(--space-4);
    }
    
    /* Reset reverse order on mobile - image always first */
    .section-reverse .apple-content {
        order: 2;
    }
    
    .section-reverse .apple-image {
        order: 1;
    }
    
    /* Section header responsive */
    .section-50-50 .section-header {
        margin-bottom: var(--space-6);
        padding: 0 var(--space-4);
    }
    
    /* Document container */
    .document-container {
        margin: var(--space-8) 0;
    }
    
    .document-preview {
        max-width: 150px;
    }
    
    /* Sample documents - Stack on mobile */
    .sample-documents-container {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin: var(--space-8) 0;
    }
    
    /* Testimonials - Stack on mobile */
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin: var(--space-8) 0;
    }
    
    /* Trust badges responsive */
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }
    
    .trust-badge {
        min-width: auto;
        padding: var(--space-3);
    }
    
    .trust-badge svg {
        width: 24px;
        height: 24px;
    }
    
    /* Process steps */
    .process-steps,
    .process-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Features lists */
    .pricing-features,
    .use-case-features,
    .step-features,
    .feature-benefits {
        margin: var(--space-3) 0;
    }
    
    .pricing-features li,
    .use-case-features li,
    .step-features li,
    .feature-benefits li {
        padding: var(--space-1) 0;
        font-size: var(--text-xs);
    }
}

@media (min-width: 640px) {
    /* CTA buttons horizontal */
    .cta-buttons {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--space-4);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-text {
        order: 1;
        padding: var(--space-4);
    }
    
    .hero-visual {
        order: 2;
        height: 100%;
        max-height: 600px;
        min-height: 450px;
        max-width: 500px;
    }
    
    .document-container {
        height: calc(100% - 128px);
        margin: 64px 0;
    }
    
    .gradient-text {
        text-align: left;
    }
    
    .hero-text .subtitle {
        text-align: left;
    }
    
    .trust-indicators {
        align-items: flex-start;
    }
    
    .document-mockup {
        padding: 32px;
    }
    
    .doc-title {
        font-size: 24px;
    }
}

/* Additional Section Container Classes */
.features-section,
.common-mistakes-section,
.use-cases-section {
    padding: var(--space-12) 0;
    background: var(--background);
}

.features-container {
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* Apple Features - Style spécifique pour certaines sections */
.apple-features {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--space-4) 0;
    margin: var(--space-6) 0;
    text-align: left;
}

.apple-features h3 {
    font-family: var(--font-heading);
    color: var(--foreground);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    font-weight: 600;
}

.apple-features p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.apple-feature {
    margin-bottom: var(--space-4);
}

.apple-feature h4 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.apple-feature p {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    margin-bottom: 0;
    line-height: 1.5;
}

/* =================================================================
   FOOTER STYLES (INSPIRED BY V0 REDESIGN)
   ================================================================= */

.site-footer {
    background: var(--foreground);
    color: var(--background);
    padding: var(--space-12) 0;
}

.footer-container {
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Company info column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    text-decoration: none;
    color: var(--background);
}

.footer-logo:hover {
    color: var(--background);
    text-decoration: none;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: var(--text-lg);
    color: var(--primary-foreground);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: var(--text-xl);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

/* Footer sections */
.footer-section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--background);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.15s ease-in-out;
}

.footer-links a:hover {
    color: var(--background);
    text-decoration: none;
}

/* Social links */
.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.footer-social-link:hover {
    color: var(--background);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

/* Contact info */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.footer-contact-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Footer bottom */
.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: var(--space-8) 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-8);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.15s ease-in-out;
}

.footer-legal-links a:hover {
    color: var(--background);
    text-decoration: none;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* =================================================================
   UTILITY CLASSES (Tailwind-inspired)
   ================================================================= */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }

/* Flexbox */
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* Spacing */
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Width */
.w-full { width: 100%; }

/* Max width */
.max-w-3xl { max-width: var(--max-w-3xl); }
.max-w-4xl { max-width: var(--max-w-4xl); }
.max-w-7xl { max-width: var(--max-w-7xl); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Background */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

/* Margin auto */
.mx-auto { margin-left: auto; margin-right: auto; }

/* =================================================================
   FOOTER V0 DESIGN - ADAPTED TO EXISTING HTML STRUCTURE
   ================================================================= */

/* Main footer container */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main footer grid - transform vertical layout to horizontal */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Existing classes adapted to v0 style */
.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-col,
.newsletter-col {
    display: flex;
    flex-direction: column;
}

/* Logo link styling */
.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--footer-text);
}

.footer-logo-link:hover {
    color: var(--footer-text);
    text-decoration: none;
}

/* Logo text styling */
.logo-text {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--footer-text);
}

.logo-text-green {
    color: var(--primary) !important;
}

.logo-text-white {
    color: white !important;
}

.logo-text-white em {
    color: white !important;
}

.logo-text em {
    color: var(--footer-accent);
    font-style: normal;
}

/* Footer description */
.footer-desc {
    color: var(--footer-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    max-width: 280px;
}

.footer-description {
    color: var(--footer-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Footer sections titles - apply to ALL h2 in footer */
.footer-col h2,
.newsletter-col h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* Legacy footer-section-title class */
.footer-section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
}

/* Footer lists - apply to ALL ul elements in footer columns */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
}

.footer-col a:hover {
    color: var(--footer-text);
    text-decoration: none;
}

/* Strong text in footer links (like "TOWeb") */
.footer-col strong {
    font-weight: 600;
    color: inherit;
}

/* Legacy .footer-links class (if used elsewhere) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
}

.footer-links a:hover {
    color: var(--footer-text);
    text-decoration: none;
}

/* Newsletter section */
.newsletter-intro {
    color: var(--footer-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Payment security section */
.payment-security {
    margin-top: 1.5rem;
}

.powered-by-stripe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text-muted);
    font-size: 0.75rem;
}

.stripe-text {
    color: var(--footer-text-muted);
}

.stripe-svg {
    color: var(--footer-accent);
}

/* Newsletter form styling */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.newsletter-label {
    color: var(--footer-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--footer-social-border);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: var(--footer-text-muted);
}

.newsletter-button {
    padding: 0.75rem;
    background: var(--footer-accent);
    border: none;
    border-radius: 0.375rem;
    color: var(--footer-text);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.newsletter-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.newsletter-button svg {
    width: 20px;
    height: 20px;
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid var(--footer-separator);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--footer-text-light);
    font-size: 0.875rem;
}

.copyright a {
    color: var(--footer-accent);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--footer-text);
}

/* Language selector */
.footer-language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--footer-social-border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: var(--footer-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.footer-language-select:hover,
.footer-language-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--footer-social-hover-border);
    outline: none;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-desc {
        max-width: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Social links */
.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-muted);
    border: 1px solid var(--footer-social-border);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.footer-social-link:hover {
    color: var(--footer-text);
    background: var(--footer-social-hover-bg);
    border-color: var(--footer-social-hover-border);
    text-decoration: none;
}

/* Contact info */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--footer-text-muted);
    font-size: 0.875rem;
}

.footer-contact-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Footer bottom */
.footer-separator {
    height: 1px;
    background: var(--footer-separator);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

.footer-copyright {
    color: var(--footer-text-light);
    font-size: 0.875rem;
    text-align: center;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: var(--footer-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
}

.footer-legal-links a:hover {
    color: var(--footer-text);
    text-decoration: none;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
/* =================================================================
   UTILITY CLASSES FOR INLINE STYLES CLEANUP
   ================================================================= */

/* RTL Arabic text */
.rtl-text {
    direction: rtl;
    text-align: right;
}

.rtl-header {
    flex-direction: row-reverse;
}

.rtl-list {
    margin-right: 20px;
    margin-left: 0;
}

/* Inline SVG icons */
.inline-icon {
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.inline-icon-left {
    display: inline-block;
    margin-left: 8px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Apple feature icons - consistent green color with hero trust icons */
.apple-feature-icon svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

/* =================================================================
   CTA SECTION - CENTERED TEXT
   ================================================================= */

.cta-section {
    text-align: center;
    padding: 3rem 0;
    margin: 2rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    padding: 1rem 2rem;
}

/* =================================================================
   FINAL CTA SECTION - CENTERED
   ================================================================= */

.final-cta-section {
    background: var(--background);
    padding: 4rem 0;
    text-align: center;
}

.final-cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.final-cta-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.final-cta-container p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.final-cta-container .cta-buttons {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.final-cta-container .trust-indicators {
    margin-top: 1.5rem;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

/* =================================================================
   SCROLL TO TOP BUTTON - FIXED BOTTOM RIGHT
   ================================================================= */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* =================================================================
   CONVERTED SECTIONS - Modern Feature Grid Layout
   ================================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin: var(--space-12) 0;
}

.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-12);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin: var(--space-8) 0;
    }
    
    .feature-card {
        padding: var(--space-6); /* Keep same padding as desktop for icons and text spacing */
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .section-cta {
        margin-top: var(--space-8);
    }
}
