/* ==========================================
   FORMILO LANDING PAGE - STYLES
   ========================================== */

/* CSS Variables */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #EEF2FF;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--surface);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-text {
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

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

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-store {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    border: 1.5px solid #333;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    text-decoration: none;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-playstore:hover {
    background: #2d2d2d;
    border-color: #555;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.playstore-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.playstore-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.playstore-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.btn-playstore-cta {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-playstore-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-playstore-cta .playstore-label {
    color: rgba(255, 255, 255, 0.7);
}

.btn-playstore-cta .playstore-name {
    color: #fff;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

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

/* Hero Visual / Mockup */
.hero-visual {
    margin-top: 64px;
    perspective: 1000px;
}

.hero-mockup {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-mockup:hover {
    transform: rotateX(0);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-dots span:first-child { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:last-child { background: #10B981; }

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.mockup-content {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 200px;
    padding: 16px 12px;
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    background: currentColor;
    border-radius: 4px;
    opacity: 0.5;
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    width: 140px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 4px;
    opacity: 0.2;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.card-badge.published {
    background: var(--success-light);
    color: var(--success);
}

.card-badge.draft {
    background: var(--warning-light);
    color: var(--warning);
}

.card-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.field.short {
    width: 60%;
}

/* Logos Section */
.logos-section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.logos-title {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* How Section */
.how-section {
    padding: 100px 0;
    background: var(--surface);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    position: relative;
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 8px;
}

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

.step-visual {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.mini-form {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.mini-field {
    height: 10px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 8px;
}

.mini-field:last-child {
    margin-bottom: 0;
}

.mini-field.short {
    width: 50%;
}

.avatars {
    display: flex;
    gap: -8px;
}

.avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    border: 3px solid var(--background);
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar.add {
    background: var(--border);
    color: var(--text-muted);
}

.chart-mini {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 80px;
}

.bar {
    width: 24px;
    height: var(--h);
    background: linear-gradient(to top, var(--primary), var(--primary-dark));
    border-radius: 4px 4px 0 0;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--success-light);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-left: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 24px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-value {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.price-value.custom {
    font-size: 32px;
}

.price-period {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

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

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

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 28px 0;
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
}

.footer-simple {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-brand .logo span {
    color: white;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-language select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

.footer-language select option {
    background: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .steps-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .mockup-sidebar {
        display: none;
    }

    .features-grid,
    .steps-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-large {
        width: 100%;
        justify-content: center;
    }

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

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


/* ==========================================
   BLOG SECTION
   ========================================== */

.blog-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--background) 0%, #FFFFFF 100%);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.blog-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.blog-image svg {
    position: relative;
    z-index: 1;
}

.blog-content {
    padding: 24px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.blog-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.blog-link:hover {
    color: var(--primary-dark);
    gap: 4px;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-section {
        padding: 60px 0;
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================
   MODAL ARTICLE
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-header {
    padding: 48px 40px 40px;
    color: white;
    position: relative;
}

.modal-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.modal-header h2 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.modal-article-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.modal-article-content h3:first-child {
    margin-top: 0;
}

.modal-article-content ul,
.modal-article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-article-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-article-content em {
    font-style: italic;
    color: var(--text-muted);
}

/* Scrollbar styling for modal content */
.modal-article-content::-webkit-scrollbar {
    width: 8px;
}

.modal-article-content::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

.modal-article-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.modal-article-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 0;
    }
    
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 32px 24px 28px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-article-content {
        padding: 24px;
        max-height: calc(100vh - 180px);
    }
    
    .modal-article-content h3 {
        font-size: 20px;
    }
    
    .modal-article-content p,
    .modal-article-content li {
        font-size: 15px;
    }
}


/* ==========================================
   LANGUAGE SELECTOR
   ========================================== */

.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.lang-option:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

/* Mobile language selector adjustments */
@media (max-width: 768px) {
    .lang-btn span {
        display: none;
    }
    
    .lang-btn {
        padding: 8px;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact-submit-btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 4px;
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-success {
    margin-top: 16px;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: var(--radius-md);
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-error {
    margin-top: 16px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================
   ACCESSIBILITE & PERFORMANCE - Phase 2
   ========================================== */

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

/* Contraste amélioré */
.nav-links a {
    color: #475569;
}

.stat-label,
.footer-brand p {
    color: #64748b;
}

/* Touch targets minimum 48px sur mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-text {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    .mobile-menu-btn {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .faq-question {
        min-height: 56px;
    }

    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Respect de la préférence réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .badge-dot {
        animation: none;
    }
}

/* Backdrop-filter uniquement sur desktop pour économiser les ressources */
@media (max-width: 768px) {
    .navbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Overflow-wrap pour éviter débordements horizontal */
h1, h2, h3, h4, h5, h6, p, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
}

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

/* Screen reader only - classe utilitaire */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Video Demo Section */
.video-section {
    padding: 0 0 80px;
    background: #ffffff;
}

.video-section .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 40px 80px rgba(0, 0, 0, 0.5);
    background: #0F0E1A;
}

.promo-video {
    width: 100%;
    display: block;
    border-radius: 20px;
}
