/* WithFaro Landing Page — Modern Design */
/* Inspired by Cal.com, Linear, Vercel aesthetic */

:root {
    /* Brand */
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #4834D4;
    --accent: #00D2FF;
    --accent-green: #00E676;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #FAFBFC;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #868E96;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #1A1D23;
    --dark: #0D0F14;
    --dark-card: #161922;
    --dark-border: #2A2D3A;

    /* Semantic */
    --success: #00E676;
    --error: #FF5252;

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

    /* Spacing */
    --section-pad: 6rem 1.5rem;
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

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

/* ─── NAVBAR ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--container); margin: 0 auto;
    padding: 0.875rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: 1.25rem; }
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
}
.logo-text { color: var(--gray-900); }

.hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: 0.25s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 1.25rem 1.5rem; display: none; flex-direction: column; gap: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav-links.active { display: flex; }
.nav-links li { width: 100%; }
.nav-links a { display: block; padding: 0.625rem 0.75rem; color: var(--gray-600); font-size: 0.9375rem; font-weight: 500; transition: color 0.15s; border-radius: 8px; }
.nav-links a:hover { color: var(--gray-900); background: var(--gray-50); }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 0.375rem 0.75rem; border-radius: 8px;
    background: transparent; border: 1.5px solid var(--gray-200);
    color: var(--gray-600); font-size: 0.8125rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s; font-family: var(--font);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: white; border: 1px solid var(--gray-200); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); overflow: hidden; z-index: 100;
    min-width: 140px;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-dropdown button {
    display: block; width: 100%; padding: 0.625rem 1rem;
    text-align: left; background: none; border: none;
    font-size: 0.875rem; color: var(--gray-700); cursor: pointer;
    font-family: var(--font); transition: background 0.1s;
}
.lang-dropdown button:hover { background: var(--gray-50); }
.lang-dropdown button.active { color: var(--primary); font-weight: 600; background: rgba(108,92,231,0.04); }

/* RTL Support */
html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] .nav-container { flex-direction: row-reverse; }
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .hero-cta { justify-content: flex-end; }
html[dir="rtl"] .step { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .faq-question { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .logo { flex-direction: row-reverse; }
html[dir="rtl"] .feature-card { text-align: right; }
html[dir="rtl"] .pricing-features li { flex-direction: row-reverse; }
@media (min-width: 1024px) {
    html[dir="rtl"] .hero .container { direction: rtl; }
    html[dir="rtl"] .hero-image { order: -1; }
    html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
    html[dir="rtl"] .steps .step { text-align: center; flex-direction: column; }
}

.nav-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 0.875rem; transition: all 0.2s; }
.nav-btn-secondary { border: 1.5px solid var(--gray-200); color: var(--gray-700); background: transparent; }
.nav-btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,92,231,0.04); }
.nav-btn-primary { background: var(--primary); color: white; border: none; }
.nav-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108,92,231,0.4); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8125rem 1.75rem; font-size: 0.9375rem; font-weight: 600;
    border-radius: var(--radius-sm); border: none; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: white;
    box-shadow: 0 2px 8px rgba(108,92,231,0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,92,231,0.4);
}
.btn-secondary {
    background: transparent; color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ─── HERO ─── */
.hero {
    padding: 10rem 1.5rem 5rem;
    background: var(--dark);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -40%; left: -20%; width: 80%; height: 100%;
    background: radial-gradient(ellipse, rgba(108,92,231,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; top: 10%; right: -10%; width: 60%; height: 80%;
    background: radial-gradient(ellipse, rgba(0,210,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container {
    display: grid; gap: 3rem; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 1rem; border-radius: var(--radius-full);
    background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.3);
    color: var(--primary-light); font-size: 0.8125rem; font-weight: 600;
    width: fit-content; margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-content h1 {
    font-size: 3rem; font-weight: 800; color: white;
    line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hero-content h1 .gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1875rem; color: var(--gray-400);
    max-width: 520px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 3rem; }
.hero-cta .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.hero-cta .btn-secondary { border-color: var(--dark-border); color: var(--gray-300); }
.hero-cta .btn-secondary:hover { border-color: var(--primary-light); color: white; }

.hero-stats {
    display: flex; gap: 2.5rem; padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}
.stat-number { display: block; font-size: 1.75rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.8125rem; color: var(--gray-500); font-weight: 500; }

/* Chat demo */
.chat-demo {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: var(--radius); overflow: hidden;
    max-width: 400px; margin: 0 auto;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.chat-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.chat-avatar {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; font-size: 0.8125rem;
}
.chat-name { font-weight: 600; color: white; font-size: 0.9375rem; }
.chat-status { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chat-messages { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.message { max-width: 85%; padding: 0.625rem 0.875rem; border-radius: 12px; font-size: 0.875rem; line-height: 1.5; }
.message.incoming { background: var(--dark-border); color: var(--gray-300); align-self: flex-start; border-bottom-left-radius: 4px; }
.message.outgoing { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

/* ─── SOCIAL PROOF ─── */
.social-proof { padding: 3rem 1.5rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.trust-text { text-align: center; color: var(--gray-400); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; align-items: center; }
.logo-item { color: var(--gray-400); font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; }

/* ─── SECTION HEADERS ─── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .overline {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--primary); margin-bottom: 0.75rem;
}
.section-header h2 { font-size: 2.25rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-500); font-size: 1.0625rem; max-width: 540px; margin: 0 auto; }

/* ─── FEATURES (Bento Grid) ─── */
.features { padding: var(--section-pad); }
.features-grid {
    display: grid; gap: 1rem;
}
.feature-card {
    padding: 1.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.25s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity 0.25s;
}
.feature-card:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(108,92,231,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,210,255,0.08));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: var(--primary);
}
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* ─── HOW IT WORKS ─── */
.how-it-works { padding: var(--section-pad); background: var(--gray-50); }
.steps { display: flex; flex-direction: column; gap: 1.5rem; max-width: 720px; margin: 0 auto; }
.step {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.5rem; background: white; border: 1px solid var(--gray-200);
    border-radius: var(--radius); transition: all 0.2s;
}
.step:hover { border-color: var(--primary-light); box-shadow: 0 4px 16px rgba(108,92,231,0.06); }
.step-number {
    width: 44px; height: 44px; min-width: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.125rem;
}
.step-content h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.step-content p { color: var(--gray-500); font-size: 0.9rem; }

/* ─── PRICING ─── */
.pricing { padding: var(--section-pad); }
.pricing-grid { display: grid; gap: 1.25rem; }
.pricing-card {
    position: relative; padding: 2rem;
    background: white; border: 1px solid var(--gray-200);
    border-radius: var(--radius); transition: all 0.25s;
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(108,92,231,0.12);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; padding: 0.25rem 1rem; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700;
}
.pricing-header { text-align: center; margin-bottom: 1.5rem; }
.pricing-header h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.currency { font-size: 1.25rem; color: var(--gray-400); font-weight: 600; }
.amount { font-size: 3.25rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; }
.period { color: var(--gray-400); font-weight: 500; }
.pricing-features { margin-bottom: 1.75rem; }
.pricing-features li { padding: 0.5rem 0; color: var(--gray-600); display: flex; align-items: center; gap: 0.625rem; font-size: 0.9rem; }
.pricing-features li::before { content: "✓"; color: var(--primary); font-weight: 700; font-size: 0.875rem; }

/* ─── TESTIMONIALS ─── */
.testimonials { padding: var(--section-pad); background: var(--dark); }
.testimonials .section-header h2 { color: white; }
.testimonials .section-header .overline { color: var(--accent); }
.testimonials .section-header p { color: var(--gray-500); }
.testimonials-grid { display: grid; gap: 1.25rem; }
.testimonial-card {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: var(--radius); padding: 1.75rem;
}
.testimonial-content p { font-size: 0.9375rem; line-height: 1.7; color: var(--gray-300); margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; font-size: 0.875rem;
}
.author-info { display: flex; flex-direction: column; }
.author-info strong { color: white; font-size: 0.9375rem; }
.author-info span { font-size: 0.8125rem; color: var(--gray-500); }

/* ─── FAQ ─── */
.faq { padding: var(--section-pad); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 0; background: none; border: none; cursor: pointer;
    text-align: left; font-size: 1rem; font-weight: 600; color: var(--gray-900);
}
.faq-question svg { color: var(--gray-400); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 1.25rem; color: var(--gray-500); line-height: 1.7; }

/* ─── CTA ─── */
.cta {
    padding: var(--section-pad);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #5B4DD4 100%);
    position: relative; overflow: hidden;
}
.cta::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 150%;
    background: radial-gradient(ellipse, rgba(0,210,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.cta-content { text-align: center; max-width: 540px; margin: 0 auto; position: relative; z-index: 1; }
.cta-content h2 { font-size: 2.25rem; font-weight: 800; color: white; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.cta-content > p { color: rgba(255,255,255,0.7); font-size: 1.0625rem; margin-bottom: 2rem; }
.cta .btn-primary {
    background: white; color: var(--primary-dark); font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-note { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 1rem; }

/* ─── FOOTER ─── */
.footer { padding: 4rem 1.5rem 2rem; background: var(--dark); color: var(--gray-400); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 0.875rem; color: var(--gray-500); }
.footer-links h4 { color: white; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.875rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--gray-500); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    padding-top: 2rem; border-top: 1px solid var(--dark-border);
}
.footer-bottom p { font-size: 0.8125rem; color: var(--gray-500); }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--gray-500); transition: color 0.15s; }
.social-links a:hover { color: white; }

/* ─── RESPONSIVE ─── */

/* Mobile (default) — already styled above */

/* Small mobile adjustments */
@media (max-width: 380px) {
    .hero-content h1 { font-size: 2.25rem; }
    .hero-stats { flex-direction: column; gap: 1rem; text-align: left; }
    .hero-stats .stat { display: flex; align-items: baseline; gap: 0.5rem; }
    .pricing-grid { gap: 1.5rem; }
    .amount { font-size: 2.5rem; }
}

/* Tablet (640px+) */
@media (min-width: 640px) {
    .hero-content h1 { font-size: 3.25rem; }
    .hero-cta { flex-direction: row; }
    .hero-stats { gap: 3rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .section-header h2 { font-size: 2rem; }
}

/* Tablet landscape (768px+) */
@media (min-width: 768px) {
    :root { --section-pad: 5rem 2rem; }
    .hero { padding: 10rem 2rem 5rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .steps { flex-direction: row; flex-wrap: wrap; max-width: 100%; }
    .steps .step { flex: 1; min-width: 220px; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    :root { --section-pad: 6rem 2rem; }
    .hamburger { display: none; }
    .nav-links {
        position: static; display: flex; flex-direction: row;
        background: none; padding: 0; border: none; box-shadow: none;
        align-items: center; gap: 0.25rem;
    }
    .nav-links li { width: auto; }
    .nav-links a { display: inline-flex; padding: 0.5rem 0.875rem; border-radius: 8px; font-size: 0.875rem; }
    .nav-links a:hover { background: rgba(0,0,0,0.04); }
    .hero { padding: 11rem 2rem 6rem; }
    .hero .container { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
    .hero-content h1 { font-size: 3.75rem; }
    .hero-image { order: 1; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .steps .step { flex-direction: column; text-align: center; align-items: center; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .section-header h2 { font-size: 2.75rem; }
    .cta-content h2 { font-size: 2.75rem; }
}

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
    .hero-content h1 { font-size: 4.25rem; }
    .container { padding: 0 2rem; }
}

/* ─── ANIMATIONS ─── */
.fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
