/* ================================================================
   FairSpot — Shared Stylesheet
   Font: Cabinet Grotesk (display) + Satoshi (body) via Fontshare
   ================================================================ */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
    --orange: #E8752A;
    --orange-light: #F4934F;
    --amber: #D4A024;
    --cream: #FDF8F2;
    --cream-dark: #F2E9D8;
    --ink: #1B1B1B;
    --ink-soft: #4A4A4A;
    --ink-muted: #8A8A8A;
    --white: #FFFFFF;
    --border: #DDD5C5;
    --android-green: #1a9e50;
    --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
    --font-body: 'Satoshi', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-h: 72px;
    --max-w: 1180px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ── LANGUAGE SWITCH ────────────────────────────────────────────── */
[lang="fr"] .en { display: none !important; }
[lang="en"] .fr { display: none !important; }

/* ── REVEAL ANIMATION ───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── NAVIGATION ─────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 1000;
    background: rgba(253,248,242,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    border-color: var(--border);
    box-shadow: 0 1px 16px rgba(27,27,27,0.07);
}
.nav__inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
    font-family: var(--font-display); font-weight: 900; font-size: 1.45rem;
    letter-spacing: -0.04em; display: flex; align-items: center; gap: 0.45rem;
    color: var(--ink);
}
.nav__logo-img { width: 30px; height: 30px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__links a {
    font-size: 0.875rem; font-weight: 600; color: var(--ink-soft);
    transition: color 0.2s; position: relative;
}
.nav__links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 0; height: 1.5px; background: var(--orange);
    transition: width 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--orange); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--orange); }
.nav__lang {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem; border-radius: 100px;
    border: 1.5px solid var(--border); color: var(--ink-muted);
    transition: all 0.2s; background: none; cursor: pointer;
    font-family: var(--font-body);
}
.nav__lang:hover { border-color: var(--orange); color: var(--orange); }
.nav__cta {
    font-size: 0.82rem; font-weight: 700; padding: 0.5rem 1.15rem;
    border-radius: 100px; background: var(--orange);
    color: var(--white) !important; transition: all 0.25s var(--ease-out);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
    background: #d5641f; color: var(--white) !important;
    transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,117,42,0.3);
}
.nav__cta--android { background: var(--android-green); }
.nav__cta--android:hover { background: #158042 !important; box-shadow: 0 4px 14px rgba(26,158,80,0.3); }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ── SECTION UTILITIES ──────────────────────────────────────────── */
.section__eyebrow {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--orange); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.section__eyebrow::before {
    content: ''; display: inline-block; width: 20px; height: 1.5px;
    background: var(--orange); flex-shrink: 0;
}
.section__title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    letter-spacing: -0.04em; line-height: 1.1;
    color: var(--ink); margin-bottom: 1rem;
}
.section__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section__desc {
    font-size: 1rem; color: var(--ink-soft);
    max-width: 520px; line-height: 1.75;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
    padding: 0.8rem 1.7rem; border-radius: 10px;
    transition: all 0.3s var(--ease-out); border: 2px solid transparent;
}
.btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--primary:hover { background: #2d2d2d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,27,27,0.18); }
.btn--primary svg { width: 20px; height: 20px; fill: currentColor; }
.btn--android { background: var(--android-green); color: var(--white); border-color: var(--android-green); }
.btn--android:hover { background: #158042; border-color: #158042; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,158,80,0.28); }
.btn--android svg { width: 20px; height: 20px; fill: currentColor; }
.btn--orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--orange:hover { background: #d5641f; border-color: #d5641f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,117,42,0.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.btn--store {
    background: var(--white); color: var(--ink); border-radius: 12px;
    padding: 0.85rem 1.5rem; font-weight: 700; font-size: 0.875rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
    transition: all 0.3s var(--ease-out); border: 2px solid var(--white);
}
.btn--store:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.btn--store svg { width: 22px; height: 22px; }
.btn--store-android {
    background: var(--android-green); color: var(--white); border-radius: 12px;
    padding: 0.85rem 1.5rem; font-weight: 700; font-size: 0.875rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
    transition: all 0.3s var(--ease-out); border: 2px solid var(--android-green);
}
.btn--store-android:hover { background: #158042; border-color: #158042; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,158,80,0.3); }
.btn--store-android svg { width: 22px; height: 22px; }

/* ── BADGES ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.28rem 0.8rem; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge--available { background: rgba(0,180,80,0.09); color: #0a7a38; border: 1px solid rgba(0,180,80,0.18); }
.badge--available::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #0a8a3e; }
.badge--soon { background: rgba(212,160,36,0.1); color: #9a6f00; border: 1px solid rgba(212,160,36,0.22); }
.badge--data { background: rgba(99,102,241,0.09); color: #4338ca; border: 1px solid rgba(99,102,241,0.18); }
.badge--data::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4f46e5; }
.badge--psycho { background: rgba(232,117,42,0.09); color: #b85c1a; border: 1px solid rgba(232,117,42,0.22); }
.badge--psycho::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 3rem 0 2rem;
}
.footer__inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem;
}
.footer__brand { max-width: 260px; }
.footer__logo {
    font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
    letter-spacing: -0.04em; color: var(--white); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.footer__logo img { width: 26px; height: 26px; object-fit: contain; }
.footer__tagline { font-size: 0.85rem; color: rgba(255,255,255,0.38); line-height: 1.6; }
.footer__col h5 {
    font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
    color: rgba(255,255,255,0.45); text-transform: uppercase;
    letter-spacing: 0.09em; margin-bottom: 1rem;
}
.footer__col a {
    display: block; font-size: 0.875rem; color: rgba(255,255,255,0.6);
    margin-bottom: 0.6rem; transition: color 0.2s;
}
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ── MOBILE DOWNLOAD BAR ────────────────────────────────────────── */
.mobile-download {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 999; background: var(--ink); padding: 0.75rem 1.2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-download__inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--max-w); margin: 0 auto; gap: 0.75rem;
}
.mobile-download__text {
    font-size: 0.82rem; font-weight: 600;
    color: rgba(255,255,255,0.85); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.mobile-download__btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.mobile-download__btn {
    font-size: 0.75rem; font-weight: 700; padding: 0.5rem 0.9rem;
    border-radius: 100px; color: var(--white);
    display: inline-flex; align-items: center; gap: 0.3rem; transition: opacity 0.2s;
}
.mobile-download__btn:hover { opacity: 0.85; }
.mobile-download__btn--ios { background: var(--orange); }
.mobile-download__btn--android { background: var(--android-green); }
.mobile-download__btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ── CAROUSEL DOTS ──────────────────────────────────────────────── */
.carousel-dots { display: none; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: all 0.3s; }
.carousel-dot.active { background: var(--orange); width: 24px; border-radius: 4px; }
.swipe-hint { display: none; text-align: center; font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.75rem; font-weight: 500; }

/* ── PHONE FRAME ────────────────────────────────────────────────── */
.phone-frame { width: 220px; flex-shrink: 0; transition: transform 0.5s var(--ease-out); cursor: pointer; }
.phone-shell {
    background: var(--ink); border-radius: 28px; padding: 7px;
    box-shadow: 0 20px 56px rgba(27,27,27,0.16), 0 6px 18px rgba(27,27,27,0.07);
    transition: box-shadow 0.5s var(--ease-out);
}
.phone-frame:hover .phone-shell { box-shadow: 0 28px 72px rgba(232,117,42,0.18), 0 10px 28px rgba(27,27,27,0.09); }
.phone-screen { border-radius: 22px; overflow: hidden; aspect-ratio: 9/19.5; background: var(--cream); position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.75rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); padding: 2rem;
}
.phone-placeholder__text { font-size: 0.8rem; color: var(--ink-muted); text-align: center; font-weight: 600; }
.phone-label { text-align: center; margin-top: 1.2rem; font-weight: 700; font-size: 0.875rem; color: var(--ink-soft); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .nav__links.open {
        display: flex; flex-direction: column; position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(253,248,242,0.97);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        padding: 1.5rem 2rem; gap: 1.2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        align-items: flex-start;
    }
    .nav__links.open .nav__cta { width: 100%; justify-content: center; margin-top: 0.25rem; }
    .nav__links.open a::after { display: none; }
    .footer__inner { flex-direction: column; gap: 1.5rem; }
    .mobile-download { display: block; }
    body { padding-bottom: 64px; }
}
