/* NizaTech — Stripe × Notion inspired (dark SaaS) */

:root {
    --bg: #0a0a0f;
    --bg-elevated: #111118;
    --bg-surface: #16161f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --primary: #635bff;
    --primary-hover: #7c75ff;
    --accent: #00d4ff;
    --accent-soft: rgba(99, 91, 255, 0.15);
    --gradient-hero: linear-gradient(135deg, #635bff 0%, #00d4ff 50%, #635bff 100%);
    --gradient-text: linear-gradient(90deg, #a5b4fc, #67e8f9, #c4b5fd);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5);
    --header-h: 72px;
    --header-logo-min: 13.5rem;
    --header-logo-max: 17.5rem;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Typographic scale */
    --text-display: clamp(2.25rem, 5vw, 3.75rem);
    --text-h2: clamp(1.5rem, 3vw, 2rem);
    --text-h3: 1.0625rem;
    --text-lead: 1.0625rem;
    --text-body: 0.9375rem;
    --text-small: 0.8125rem;
    --text-eyebrow: 0.75rem;

    /* Section rhythm */
    --section-pad: 4rem;
    --section-pad-mobile: 3rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.page-wrap { min-height: 100vh; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Header (Stripe minimal) ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(var(--header-logo-min), var(--header-logo-max)) 1fr;
    align-items: center;
    height: var(--header-h);
    gap: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text);
}

.logo-img {
    height: 36px;
    width: auto;
    max-width: 140px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    color: white;
}

.logo-text {
    min-width: 0;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    min-width: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.125rem;
    flex-wrap: nowrap;
}

.nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.lang-switcher a {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
}

.lang-switcher a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 24px rgba(99, 91, 255, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 32px rgba(99, 91, 255, 0.45);
}

.btn-accent {
    background: var(--accent);
    color: #0a0a12;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn-accent:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.text-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    transition: opacity 0.2s;
}

.text-link:hover { opacity: 0.8; }

/* ─── Hero (Stripe + Notion) ─── */
.hero-stripe {
    position: relative;
    padding: 5rem 0 3rem;
    text-align: center;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 91, 255, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(0, 212, 255, 0.08), transparent),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 64px 64px, 64px 64px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-center { position: relative; z-index: 1; }

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin: 0 auto 1.25rem;
}

.hero-title em {
    font-style: italic;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: var(--text-lead);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hero-actions .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-actions .btn-sm {
        grid-column: span 2;
        width: 100%;
        text-align: center;
    }
}

/* Hero mockup (Notion-style UI preview) */
.hero-visual { max-width: 900px; margin: 0 auto; }

.hero-mockup {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

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

.mockup-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 280px;
}

.mockup-sidebar {
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
}

.mockup-content { padding: 1.5rem; }

.mockup-line {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin-bottom: 12px;
    width: 70%;
}

.mockup-line.wide { width: 45%; height: 14px; margin-bottom: 20px; }

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.mockup-cards div {
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.15), rgba(0, 212, 255, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ─── Trust bar (Notion logos row) ─── */
.trust-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.trust-label {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.trust-pills span svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* ─── Metrics (Stripe stats) ─── */
.metrics-strip {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 10px;
}

.metric-item strong {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.metric-item span {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 10rem;
}

/* ─── Sections ─── */
.section { padding: var(--section-pad) 0; }
.section-surface { background: var(--bg-elevated); }

.section-intro { margin-bottom: 3rem; }
.section-intro.center { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-intro.center p { margin-left: auto; margin-right: auto; }

.section-intro h2,
.split-header h2 {
    font-size: var(--text-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-intro p,
.split-header p {
    color: var(--text-secondary);
    font-size: var(--text-lead);
    margin-top: 0.75rem;
    line-height: 1.7;
    max-width: 560px;
}

.section-badge {
    display: inline-block;
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-hover);
    margin-bottom: 0.75rem;
}

.split-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 3rem;
}

.section-action {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Bento grid (Stripe products) ─── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.bento-order-1 { order: 1; }
.bento-order-2 { order: 2; }
.bento-order-3 { order: 3; }
.bento-order-4 { order: 4; }

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.25s, transform 0.25s var(--ease);
}

.bento-card:hover {
    border-color: rgba(99, 91, 255, 0.35);
    transform: translateY(-2px);
}

.bento-large { grid-column: span 2; }
.bento-wide { grid-column: span 2; }

.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.bento-card h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bento-card p {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 50%, var(--bg) 100%);
}

.showcase-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.showcase-highlight {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--text-primary);
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.showcase-highlight:hover {
    border-color: rgba(99, 91, 255, 0.35);
    transform: translateY(-1px);
}

.showcase-highlight-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 10px;
}

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

.bento-card--linked {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.bento-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bento-card-header .bento-icon {
    margin-bottom: 0;
}

.bento-card-go {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.bento-card--linked:hover .bento-card-go {
    color: var(--primary);
    background: var(--accent-soft);
}

.bento-icon--web { color: #635bff; background: rgba(99, 91, 255, 0.12); }
.bento-icon--mobile { color: #0ea5e9; background: rgba(14, 165, 233, 0.12); }
.bento-icon--cloud { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }
.bento-icon--ai { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.bento-icon--ecommerce { color: #10b981; background: rgba(16, 185, 129, 0.12); }
.bento-icon--support { color: #ec4899; background: rgba(236, 72, 153, 0.12); }

.bento-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.bento-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
}

.bento-feature-icon {
    display: flex;
    align-items: center;
    color: var(--primary-hover);
    opacity: 0.9;
}

.bento-card-cta {
    margin-top: auto;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--primary);
}

.bento-card--linked:hover .bento-card-cta {
    text-decoration: underline;
}

.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

/* ─── Tech stack (langages & outils) ─── */
.tech-stack-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border);
}

.tech-stack-section--compact {
    padding-top: 0;
    border-top: none;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tech-stack-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    transition: border-color 0.2s;
}

.tech-stack-group:hover {
    border-color: rgba(99, 91, 255, 0.3);
}

.tech-stack-group-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tech-stack-group-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 8px;
    flex-shrink: 0;
}

.tech-stack-group-head h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.tech-badge:hover {
    transform: translateY(-2px);
    border-color: var(--tech-color, var(--primary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tech-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--tech-color, var(--primary));
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.tech-badge--light-text .tech-badge__icon {
    color: #1a1a2e;
}

.tech-badge__name {
    padding-right: 0.15rem;
    white-space: nowrap;
}

/* ─── Cards ─── */
.service-card,
.solution-card,
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.25s, transform 0.25s var(--ease);
}

.service-card:hover,
.solution-card:hover,
.project-card:hover {
    border-color: rgba(99, 91, 255, 0.3);
    transform: translateY(-3px);
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.service-card h3,
.solution-card h3,
.project-body h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p,
.solution-card p,
.project-body p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-card--linked {
    padding: 0;
}

.solution-card-link {
    display: block;
    padding: 1.75rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.solution-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--primary);
}

.solution-card--linked:hover .solution-card-cta {
    text-decoration: underline;
}

.project-card { overflow: hidden; padding: 0; }

.project-media {
    aspect-ratio: 16/10;
    background: var(--bg-surface);
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-site-preview {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
}

.project-site-shot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: opacity 0.35s ease;
}

.project-site-shot--failed {
    object-fit: contain;
    background: var(--bg-surface);
    padding: 1rem;
}

.project-site-live {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-media--live:hover .project-site-live {
    opacity: 1;
}

.project-media--live:hover .project-site-shot {
    opacity: 0;
}

.project-site-iframe {
    width: 400%;
    height: 400%;
    border: 0;
    transform: scale(0.25);
    transform-origin: 0 0;
    background: #fff;
}

.project-preview-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.35;
}

.project-body { padding: 1.5rem; }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.75rem;
}

/* ─── Case studies ─── */
.case-studies-grid { margin-top: 2rem; }

.case-study-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.case-study-card:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    transform: translateY(-2px);
}

.case-study-media {
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    overflow: hidden;
}

.case-study-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-body { padding: 1.5rem; }

.case-study-meta {
    font-size: var(--text-small);
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.case-study-sector {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.case-study-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.case-study-summary {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.case-study-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.case-study-metric {
    flex: 1;
    min-width: 100px;
    padding: 0.65rem 0.75rem;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-radius: var(--radius-md);
    text-align: center;
}

.case-study-metric strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.case-study-metric span {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.case-study-link { font-size: var(--text-small); font-weight: 600; }

/* ─── Diagnostic quiz ─── */
.diagnostic-wrap { max-width: 720px; margin: 0 auto; }

.diagnostic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.diagnostic-progress { margin-bottom: 1.5rem; }

.diagnostic-progress-bar {
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s var(--ease);
    width: 0;
}

.diagnostic-progress-label {
    display: block;
    font-size: var(--text-small);
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.diagnostic-q-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.diagnostic-options { display: flex; flex-direction: column; gap: 0.65rem; }

.diagnostic-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.diagnostic-option:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }

.diagnostic-option input:checked + span { font-weight: 600; color: var(--primary); }

.diagnostic-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.diagnostic-result-heading { font-size: 1.375rem; margin-bottom: 1rem; }

.diagnostic-result-bullets {
    margin: 0 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.diagnostic-budget {
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.diagnostic-budget-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.diagnostic-budget strong { font-size: 1.25rem; color: var(--primary); }

.diagnostic-budget-note {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
}

.diagnostic-result-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.diagnostic-email-form {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.diagnostic-email-form input {
    flex: 1;
    min-width: 140px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
}

.diagnostic-email-label {
    width: 100%;
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* ─── Lead magnet ─── */
.lead-magnet-section {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--bg-surface)), var(--bg-surface));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.lead-magnet-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.lead-magnet-text h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }

.lead-magnet-text p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin: 0;
}

.lead-magnet-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-width: 280px;
}

.lead-magnet-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
}

/* ─── Testimonials ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.testimonial-card:hover {
    border-color: rgba(99, 91, 255, 0.3);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 1rem;
}

.testimonial-star {
    color: var(--border-strong);
    font-size: 1rem;
}

.testimonial-star.is-filled {
    color: #f59e0b;
}

.testimonial-card blockquote {
    margin: 0 0 1.25rem;
    flex: 1;
}

.testimonial-card blockquote p {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-card footer cite {
    font-style: normal;
    font-weight: 600;
    display: block;
    font-size: var(--text-small);
}

.testimonial-card footer span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ─── FAQ accordion ─── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.is-open {
    border-color: rgba(99, 91, 255, 0.35);
}

.faq-item h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-trigger-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 8px;
}

.faq-trigger-text {
    flex: 1;
}

.faq-trigger-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s var(--ease);
    margin-top: -4px;
}

.faq-item.is-open .faq-trigger-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.faq-panel {
    padding: 0 1.35rem 1.25rem 3.5rem;
}

.faq-panel p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

[dir="rtl"] .faq-panel {
    padding: 0 3.5rem 1.25rem 1.35rem;
}

/* ─── Quote (Notion testimonial) ─── */
.quote-section { padding: 4rem 0; }

.quote-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.quote-card p {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.quote-card cite {
    font-style: normal;
    font-weight: 600;
    display: block;
}

.quote-card span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ─── Workflow (Notion steps) ─── */
.workflow-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.workflow-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--primary-hover);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.workflow-num {
    font-size: var(--text-eyebrow);
    font-weight: 700;
    color: var(--primary-hover);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.workflow-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.workflow-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.workflow-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    padding-top: 2rem;
}

/* ─── CTA (Stripe footer CTA) ─── */
.cta-banner {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.cta-stripe {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 91, 255, 0.18), transparent),
        var(--bg-elevated);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.cta-content p { color: var(--text-secondary); }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ─── Page hero ─── */
.page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(99, 91, 255, 0.12), transparent);
}

.page-hero-inner { max-width: 680px; margin: 0 auto; }

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ─── About / Contact ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--text-secondary); }

.about-values { display: flex; flex-direction: column; gap: 1rem; }

.value-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.value-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9375rem; color: var(--text-secondary); }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-info p { color: var(--text-secondary); margin-bottom: 2rem; }

.contact-list { list-style: none; }

.contact-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-list li span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-list a {
    color: var(--text);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--accent);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-feedback {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.form-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ─── Empty / 404 ─── */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

.error-page {
    padding: 6rem 0;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-inner h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.error-inner p { color: var(--text-secondary); margin-bottom: 2rem; }

/* ─── Footer ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: var(--bg-elevated);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-description {
    color: var(--text-muted);
    font-size: var(--text-body);
    margin-top: 1rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-tagline {
    color: var(--accent);
    font-size: var(--text-small);
    font-weight: 500;
    margin-top: 0.5rem;
    max-width: 300px;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social-label {
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-block--footer p,
.contact-block--footer a {
    font-size: var(--text-small);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.contact-whatsapp-link .whatsapp-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #25d366;
}

.contact-whatsapp-link .whatsapp-text-link:hover {
    color: #1ebe57;
}

.whatsapp-inline-icon {
    flex-shrink: 0;
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #1ebe57;
    transform: scale(1.05);
    color: #fff;
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 1.5rem;
}

/* ─── Legal pages ─── */
.legal-section .container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.legal-document {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
}

.legal-article {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-article h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.4;
}

.legal-body {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.legal-body p { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol { margin: 0.75rem 0 1rem 1.25rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body strong { color: var(--text); }

.legal-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.legal-nav h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-nav ul { list-style: none; }

.legal-nav li { margin-bottom: 0.35rem; }

.legal-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
    background: rgba(99, 91, 255, 0.12);
    color: var(--text);
}

@media (max-width: 992px) {
    .legal-section .container { grid-template-columns: 1fr; }
    .legal-nav { position: static; }
}

.footer-nav-grid h4 {
    font-size: var(--text-eyebrow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-nav-grid ul { list-style: none; }

.footer-nav-grid li { margin-bottom: 0.5rem; }

.footer-nav-grid a {
    font-size: var(--text-small);
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

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

/* ─── Reveal animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RTL ─── */
[dir="rtl"] .workflow-arrow { transform: scaleX(-1); }

/* ─── Responsive ─── */
@media (min-width: 768px) {
    .bento-card { padding: 1.75rem; }
}

/* Header : menu compact avant passage mobile */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-links a {
        padding: 0.4rem 0.55rem;
        font-size: 0.8125rem;
    }

    .site-nav { gap: 0.75rem; }
    .nav-actions { gap: 0.5rem; }
    .nav-cta.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
}

@media (max-width: 1024px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .logo {
        flex: 1 1 auto;
        max-width: calc(100% - 3rem);
    }

    .logo-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
        background: var(--bg);
        border-top: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
    }

    [dir="rtl"] .site-nav { transform: translateX(-100%); }
    .site-nav.open { transform: translateX(0); }

    .nav-links { flex-direction: column; width: 100%; }
    .nav-links a {
        display: block;
        padding: 0.875rem;
        font-size: 0.9375rem;
        white-space: normal;
    }

    .nav-actions { flex-direction: column; width: 100%; }
    .nav-cta { width: 100%; }
}

@media (max-width: 992px) {
    .bento-grid,
    .bento-grid--rich { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .bento-large, .bento-wide { grid-column: span 1; }
    .showcase-highlights { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .split-header { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .mockup-body { grid-template-columns: 1fr; }
    .mockup-sidebar { display: none; }
}

@media (max-width: 768px) {
    :root {
        --header-logo-min: 10rem;
        --header-logo-max: 14rem;
    }

    .logo-img { height: 32px; max-width: 120px; }
    .logo-mark { width: 32px; height: 32px; }

    .bento-grid,
    .bento-grid--rich {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bento-large, .bento-wide { grid-column: span 1; }
    .showcase-highlights { grid-template-columns: 1fr 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .workflow-arrow { display: none; }
    .workflow-grid { flex-direction: column; align-items: stretch; }
    .workflow-step { max-width: none; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-nav-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stripe { padding: 3rem 0 2rem; }
    .section { padding: var(--section-pad-mobile) 0; }
}

/* Chat widget */
.chat-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }
.chat-toggle {
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: var(--accent, #635bff); color: #fff; cursor: pointer;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}
.chat-panel {
    position: absolute; bottom: 64px; right: 0; width: 320px; max-height: 420px;
    background: var(--bg-elevated, #111); border: 1px solid var(--border);
    border-radius: 16px; display: flex; flex-direction: column;
    box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
}
.chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.chat-close { background: none; border: none; color: inherit; font-size: 1.25rem; cursor: pointer; }
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    max-height: 88px;
    overflow-y: auto;
}
.chat-intent-btn {
    font-size: 0.6875rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-muted, #1a1a2e);
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}
.chat-intent-btn:hover { border-color: var(--accent); color: var(--accent); }
.chat-intent-whatsapp { background: color-mix(in srgb, #25d366 18%, transparent); }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem;
    min-height: 200px; max-height: 280px;
}
.chat-bubble {
    padding: 0.5rem 0.75rem; border-radius: 12px; font-size: 0.875rem; line-height: 1.4;
    max-width: 90%;
}
.chat-bubble.user { align-self: flex-end; background: var(--accent, #635bff); color: #fff; }
.chat-bubble.bot { align-self: flex-start; background: var(--bg-muted, #1a1a2e); }
.chat-form {
    display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border);
}
.chat-form input { flex: 1; border-radius: 8px; border: 1px solid var(--border); padding: 0.5rem; background: transparent; color: inherit; }
.chat-form button { border: none; background: var(--accent); color: #fff; border-radius: 8px; padding: 0.5rem 0.75rem; cursor: pointer; }
