/* ============================================================================
   Cove — covemac.app landing page
   DNA : light theme premium, hero dominé par le vrai screenshot de Cove
   (Sources/Images/Cove_Screenshot.png). Inspired by CleanShot X, Bartender,
   Hookmark, Linear. Sentiment : "le produit parle de lui-même".
   ============================================================================ */

:root {
    --bg-base: #FFFFFF;
    --bg-alt: #F7F7F9;
    --bg-elevated: #FFFFFF;
    --bg-tint: #F0F0F4;

    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);

    --text-primary: #0A0A0A;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --text-muted: #6B7280;

    --accent-cyan: #06B6D4;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 55%, var(--accent-pink) 100%);
    --accent-purple-soft: rgba(139, 92, 246, 0.08);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.16), 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-hero: 0 60px 140px rgba(0, 0, 0, 0.18), 0 24px 60px rgba(139, 92, 246, 0.10);

    --btn-primary-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
    --btn-primary-shadow-hover: 0 8px 20px rgba(139, 92, 246, 0.28);

    --navbar-bg: rgba(255, 255, 255, 0.78);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'SF Mono', Menlo, Consolas, monospace;

    --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
    --space-6: 48px; --space-8: 64px; --space-12: 96px; --space-16: 128px;
    --space-20: 160px;

    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-2xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --max-w: 1280px;
    --max-w-narrow: 760px;
    --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.65; }

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: var(--space-2);
}

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-3); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--space-3); }

section { padding: var(--space-12) 0; position: relative; }

@media (max-width: 768px) { section { padding: var(--space-8) 0; } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary { background: var(--accent-gradient); color: white; box-shadow: var(--btn-primary-shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--btn-primary-shadow-hover); }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-tint); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Nav same as light */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.92); }

.nav-container {
    max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 var(--space-3);
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 26px; height: 26px; border-radius: 7px;
    background: var(--accent-gradient);
    display: grid; place-items: center;
    color: white; font-weight: 700; font-size: 0.8125rem;
}

.nav-links { display: flex; align-items: center; gap: var(--space-3); list-style: none; }
.nav-links a { font-size: 0.9375rem; color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { margin-left: var(--space-2); padding: 9px 18px !important; font-size: 0.875rem !important; }

.mobile-menu-btn { display: none; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
    .mobile-menu-btn span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
    .nav-links.open {
        display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; padding: var(--space-2);
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border); gap: var(--space-1);
    }
}

/* Hero — smaller text, GIANT mockup below */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + var(--space-8)) 0 var(--space-4);
    overflow: hidden;
    text-align: center;
}

.hero-bg-orb {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.10) 0%, rgba(6, 182, 212, 0.06) 30%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 6px 14px 6px 8px;
    border-radius: 100px;
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.hero h1 { margin: 0 auto var(--space-2); max-width: 800px; }

.hero .subhead {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-3);
    line-height: 1.55;
}

.hero-cta {
    display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap;
    margin-bottom: var(--space-2);
}

.hero-trust {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-tertiary); font-size: 0.8125rem;
    margin-top: var(--space-1);
}

.hero-trust svg { width: 14px; height: 14px; color: var(--accent-purple); }

/* Real product screenshot — main centerpiece du hero. Le PNG inclut déjà
   les coins arrondis macOS et les traffic lights, donc on n'ajoute pas
   de "fake titlebar" autour. Juste un shadow profond + léger tilt 3D qui
   s'aplatit au hover pour donner un sens d'interactivité. */
.hero-mockup-container {
    margin-top: var(--space-8);
    perspective: 2000px;
    padding: 0 var(--space-2);
}

.hero-screenshot {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: var(--shadow-hero);
    transform: rotateX(2deg);
    transition: transform var(--transition-base);
}

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

@media (max-width: 768px) {
    .hero-screenshot { transform: none; border-radius: 10px; }
    .hero-mockup-container { perspective: none; }
}

/* Trust strip */
.trust-strip {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.trust-strip-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-3);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: var(--space-4); color: var(--text-tertiary); font-size: 0.8125rem; font-weight: 500;
}

.trust-strip-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip-item svg { width: 14px; height: 14px; color: var(--accent-purple); flex-shrink: 0; }

/* Problem */
.problem { background: var(--bg-alt); }
.problem-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-8); align-items: center; }
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-stat {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
    margin-bottom: var(--space-2);
}

.problem-content h2 { margin-bottom: var(--space-3); }
.problem-list { list-style: none; margin-top: var(--space-3); }
.problem-list li {
    color: var(--text-secondary);
    padding: 6px 0 6px var(--space-3);
    position: relative; font-size: 1rem;
}
.problem-list li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 14px; height: 1px; background: var(--text-tertiary);
}

/* How it works */
.how { text-align: center; }
.how-header { max-width: 700px; margin: 0 auto var(--space-8); }
.how-header h2 { margin-bottom: var(--space-2); }

.steps { display: flex; flex-direction: column; gap: var(--space-12); }

.step-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-6); align-items: center; text-align: left;
}

.step-row.reverse .step-media { order: 2; }
.step-row.reverse .step-content { order: 1; }

@media (max-width: 880px) {
    .step-row { grid-template-columns: 1fr; gap: var(--space-3); }
    .step-row.reverse .step-media,
    .step-row.reverse .step-content { order: unset; }
}

.step-media {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.step-video {
    width: 100%; height: auto; display: block;
    aspect-ratio: 1660 / 1080;
    border-radius: var(--radius-md);
    background: var(--bg-tint);
    object-fit: cover;
}

.step-content { text-align: left; }

.step-number {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent-purple-soft);
    color: var(--accent-purple);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 0.9375rem; font-weight: 700;
    margin-bottom: var(--space-2);
}

.step-content h3 {
    margin-bottom: var(--space-2);
    font-size: 1.625rem;
    letter-spacing: -0.025em;
}

.step-content p { font-size: 1rem; margin: 0; line-height: 1.65; color: var(--text-muted); }

/* Features */
.features { background: var(--bg-alt); }
.features-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-8); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.feature-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-purple-soft);
    color: var(--accent-purple);
    display: grid; place-items: center;
    margin-bottom: var(--space-2);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 { font-size: 1.0625rem; margin-bottom: 6px; font-weight: 600; }
.feature-card p { font-size: 0.9375rem; margin: 0; line-height: 1.55; color: var(--text-muted); }

/* Use cases */
.use-cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (max-width: 880px) { .use-cases-grid { grid-template-columns: 1fr; } }

.use-case {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.use-case-persona {
    font-family: var(--font-mono);
    font-size: 0.75rem; color: var(--accent-purple);
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: var(--space-1); font-weight: 600;
}

.use-case h3 { margin-bottom: var(--space-2); font-size: 1.25rem; }
.use-case-quote {
    color: var(--text-muted); font-size: 0.9375rem; font-style: italic; line-height: 1.6;
    border-left: 2px solid var(--accent-purple-soft);
    padding-left: var(--space-2); margin-top: var(--space-2);
}

/* Pricing */
.pricing { text-align: center; }
.pricing-header { max-width: 660px; margin: 0 auto var(--space-6); }

.pricing-card {
    max-width: 460px; margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    position: relative; text-align: left;
    box-shadow: var(--shadow-lg);
}

.pricing-card::before {
    content: ''; position: absolute; inset: -1px;
    border-radius: inherit; padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0.5; pointer-events: none;
}

.pricing-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 100px;
    background: var(--accent-purple-soft); color: var(--accent-purple);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--space-1); }
.pricing-price .amount {
    font-family: var(--font-display);
    font-size: 4rem; font-weight: 700; line-height: 1;
    letter-spacing: -0.05em; color: var(--text-primary);
}
.pricing-price .currency {
    font-family: var(--font-display); font-size: 1.5rem;
    color: var(--text-secondary); font-weight: 600;
}
.pricing-price .strike {
    font-family: var(--font-display); color: var(--text-tertiary);
    font-size: 1.25rem; text-decoration: line-through;
    margin-left: var(--space-1);
}

.pricing-blurb { color: var(--text-muted); margin-bottom: var(--space-4); font-size: 0.9375rem; }

.pricing-features { list-style: none; margin-bottom: var(--space-4); }
.pricing-features li {
    color: var(--text-secondary);
    padding: 6px 0 6px 28px;
    position: relative; font-size: 0.9375rem; line-height: 1.5;
}
.pricing-features li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-purple-soft);
}
.pricing-features li::after {
    content: ''; position: absolute; left: 6px; top: 13px;
    width: 6px; height: 10px;
    border-right: 2px solid var(--accent-purple);
    border-bottom: 2px solid var(--accent-purple);
    transform: rotate(45deg);
}

.pricing-card .btn-primary { width: 100%; padding: 15px 24px; font-size: 1rem; }

.pricing-finepoint { text-align: center; margin-top: var(--space-2); color: var(--text-tertiary); font-size: 0.8125rem; }

.pricing-guarantee {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    color: var(--text-muted); font-size: 0.8125rem;
    margin-top: var(--space-2); padding-top: var(--space-2);
    border-top: 1px solid var(--border);
}

.pricing-guarantee svg { width: 14px; height: 14px; color: var(--accent-purple); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
    width: 100%; text-align: left; padding: var(--space-3) 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-2); font-size: 1.0625rem; font-weight: 600;
    color: var(--text-primary); transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--accent-purple); }
.faq-question .chevron {
    width: 18px; height: 18px; flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform var(--transition-base), color var(--transition-base);
}
.faq-item.open .faq-question .chevron { transform: rotate(180deg); color: var(--accent-purple); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-item.open .faq-answer { max-height: 480px; }
.faq-answer-inner { padding: 0 0 var(--space-3); color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* CTA final */
.cta-final {
    text-align: center; background: var(--bg-alt);
    padding: var(--space-12) var(--space-3);
    border-radius: var(--radius-2xl);
    margin: 0 var(--space-3) var(--space-12);
    border: 1px solid var(--border);
}

.cta-final h2 { margin-bottom: var(--space-2); }
.cta-final p { max-width: 520px; margin: 0 auto var(--space-4); color: var(--text-muted); }

/* Footer */
.footer { padding: var(--space-8) 0 var(--space-6); border-top: 1px solid var(--border); background: var(--bg-alt); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); } }

.footer-brand .nav-logo { margin-bottom: var(--space-2); }
.footer-brand p { font-size: 0.9375rem; max-width: 400px; color: var(--text-muted); }

.footer-col h4 {
    font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-tertiary); margin-bottom: var(--space-2);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.footer-col a { color: var(--text-muted); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: var(--space-3); border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8125rem; color: var(--text-tertiary);
    flex-wrap: wrap; gap: var(--space-2);
}

.fade-up {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

::selection { background: var(--accent-purple); color: white; }
