:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface2: #eef1f8;
    --border: rgba(0, 0, 0, 0.07);
    --border-light: rgba(0, 0, 0, 0.12);
    --text: #0d1324;
    --text-muted: #4a5575;
    --text-dim: #9aa3ba;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --accent2: #059669;
    --accent2-glow: rgba(5, 150, 105, 0.15);
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 14px;
    --radius-lg: 24px;
    --banner-h: 0px;
}

:root[data-theme="dark"] {
    --bg: #05080f;
    --surface: #0c1120;
    --surface2: #111827;
    --border: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.12);
    --text: #f0f4ff;
    --text-muted: #6b7a9a;
    --text-dim: #3d4a66;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent2: #06d6a0;
    --accent2-glow: rgba(6, 214, 160, 0.2);
    --danger: #f87171;
    --warning: #fbbf24;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    font-size: 16px;
    line-height: 1;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

@media (hover: hover) {
    .theme-toggle:hover {
        transform: rotate(15deg);
    }
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Smooth transition on theme switch */
body,
nav,
.feature-card,
.testi-card,
.pricing-card,
.flow-step,
.stat-card,
.email-row,
.dashboard-frame,
.legal-modal,
.cgu-modal,
.video-modal {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Dark mode nav background is handled in the NAV section above */

/* Light mode hero grid */
.hero::before {
    background-image: linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
}

[data-theme="dark"] .hero::before {
    background-image: linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
}

/* Light mode dashboard shadow */
.dashboard-frame {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 40px rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] .dashboard-frame {
    box-shadow: none;
}

/* Light mode url-bar */
.url-bar {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .url-bar {
    background: rgba(255, 255, 255, 0.05);
}

/* Light mode lang switcher */
.lang-switcher {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .lang-switcher {
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn:not(.active):hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .lang-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Light mode ghost button */
.btn-hero-ghost {
    background: rgba(0, 0, 0, 0.03);
}

.btn-hero-ghost:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .btn-hero-ghost {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Light mode feature card hover */
.feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Modal overlay */
.legal-overlay,
.cgu-overlay,
.video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .legal-overlay,
[data-theme="dark"] .cgu-overlay,
[data-theme="dark"] .video-overlay {
    background: rgba(0, 0, 0, 0.72);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--banner-h);
}

/* ── INCIDENT BANNER ── */
.incident-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    background: var(--danger);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
}

.incident-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: incident-pulse 1.6s ease-in-out infinite;
}

@keyframes incident-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.incident-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

/* NAV */
nav {
    position: fixed;
    top: var(--banner-h);
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 68px;
    background: rgba(244, 246, 251, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] nav {
    background: rgba(5, 8, 15, 0.75);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    /*background: linear-gradient(135deg, var(--accent), var(--accent2));*/
    background-image: url('/assets/img/logo-34.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
}

/*[data-theme="dark"] .logo-icon {
    background-image: url('/assets/img/logo-green.png');
}*/

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LANG SWITCHER */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-block;
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.lang-btn:not(.active):hover {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 9px;
    transition: color 0.2s;
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 9px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px clamp(20px, 5vw, 80px) 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 48px 48px;
    }
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow2 {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(6, 214, 160, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
}

[data-theme="dark"] .hero-badge {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin-bottom: 24px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #60a5fa, var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.6s 0.3s ease both;
    margin-bottom: 64px;
}

.btn-hero-primary {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
}

.btn-hero-ghost {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.btn-hero-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.6s 0.4s ease both;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.proof-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.proof-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DASHBOARD */
.hero-dashboard {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    animation: fadeUp 0.8s 0.5s ease both;
}

.dashboard-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 80px rgba(59, 130, 246, 0.08);
}

.dashboard-bar {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #ffbd2e;
}

.dot-g {
    background: #28c840;
}

.url-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin: 0 12px;
}

.dashboard-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    min-height: 340px;
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: default;
}

.dash-nav-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.dash-nav-icon {
    font-size: 14px;
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.stat-value {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-value.green {
    color: var(--accent2);
}

.stat-value.red {
    color: var(--danger);
}

.stat-value.yellow {
    color: var(--warning);
}

.stat-value.blue {
    color: var(--accent);
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
}

.email-row.blocked {
    border-color: rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.04);
}

.email-row.clean {
    border-color: rgba(6, 214, 160, 0.2);
    background: rgba(6, 214, 160, 0.04);
}

.email-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.tag-spam {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.tag-virus {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
}

.tag-phish {
    background: rgba(239, 68, 68, 0.15);
    color: #fc8181;
}

.tag-clean {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent2);
}

.email-from {
    color: var(--text-muted);
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.email-subject {
    color: var(--text-dim);
    flex: 2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.email-time {
    color: var(--text-dim);
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* SECTIONS */
section {
    padding: 100px clamp(20px, 5vw, 80px);
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.2);
    color: var(--accent2);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.08);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.12);
}

.icon-green {
    background: rgba(6, 214, 160, 0.12);
}

.icon-yellow {
    background: rgba(251, 191, 36, 0.12);
}

.icon-red {
    background: rgba(248, 113, 113, 0.12);
}

.icon-purple {
    background: rgba(167, 139, 250, 0.12);
}

.icon-cyan {
    background: rgba(34, 211, 238, 0.12);
}

.feature-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* HOW */
.how-it-works {
    position: relative;
    padding: 100px clamp(20px, 5vw, 80px);
}

.flow-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    margin-top: 56px;
}

.flow-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(16.66% + 12px);
    right: calc(16.66% + 12px);
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0.4;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.flow-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.flow-step:nth-child(2) .flow-num {
    border-color: #818cf8;
    color: #818cf8;
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.2);
}

.flow-step:nth-child(3) .flow-num {
    border-color: var(--accent2);
    color: var(--accent2);
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.2);
}

.flow-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.flow-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* TICKER */
.ticker-section {
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    max-width: none;
}

.ticker-inner {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    padding: 18px 0;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.ticker-blocked {
    color: var(--danger);
    font-weight: 700;
}

.ticker-safe {
    color: var(--accent2);
    font-weight: 700;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.testi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.testi-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    font-size: 14px;
}

.testi-quote {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testi-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.testi-role {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.testi-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-testi-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-testi-more::after {
    content: '→';
    transition: transform 0.2s;
}

.btn-testi-more:hover {
    color: var(--text);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-testi-more:hover::after {
    transform: translateX(4px);
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 56px;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08) 0%, var(--surface) 60%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.plan-name {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    margin-bottom: 20px;
}

.price-amount {
    font-family: 'Manrope', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.price-currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-top: 6px;
    display: inline-block;
}

.price-period {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-left: 4px;
}

.plan-quota {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.plan-retention {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.plan-features li::before {
    content: '✓';
    color: var(--accent2);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.btn-plan {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    display: block;
}

.btn-plan-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.btn-plan-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-plan-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.btn-plan-filled {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-plan-filled:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}

.pricing-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 24px;
}

/* COMMON FEATURES BANNER */
.pricing-included {
    background: var(--surface);
    border: 1px solid rgba(6, 214, 160, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-top: 56px;
    margin-bottom: 16px;
}

.pricing-included-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pricing-included-title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent2);
    white-space: nowrap;
}

.pricing-included-line {
    flex: 1;
    height: 1px;
    background: rgba(6, 214, 160, 0.15);
}

.pricing-included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 24px;
}

.pricing-included-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-included-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(6, 214, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* PRICING FOOTER BLOCKS */
.pricing-footer-block {
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-top: 12px;
}

.pricing-footer-option {
    background: var(--surface);
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.pricing-footer-option .pricing-included-title {
    color: #a78bfa;
}

.pricing-footer-option .pricing-included-line {
    background: rgba(129, 140, 248, 0.15);
}

.pricing-footer-option-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.pricing-footer-option-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.pricing-footer-option-name {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-footer-option-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-footer-option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}

.pricing-footer-price-amount {
    font-family: 'Manrope', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #a78bfa;
    line-height: 1;
}

.pricing-footer-price-period {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: right;
}

/* OVERAGE BLOCK */
.pricing-footer-overage {
    background: var(--surface);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.pricing-footer-overage .pricing-included-title {
    color: var(--warning);
}

.pricing-footer-overage .pricing-included-line {
    background: rgba(251, 191, 36, 0.15);
}

.pricing-footer-overage-body {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}

.pricing-overage-option {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0;
}

.pricing-overage-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.pricing-overage-badge {
    flex-shrink: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.pricing-overage-badge-free {
    background: rgba(107, 114, 154, 0.15);
    color: var(--text-muted);
}

.pricing-overage-badge-paid {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}

.pricing-overage-name {
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-overage-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-overage-desc strong {
    color: var(--warning);
    font-weight: 700;
}

/* CONTACT */
.cta-section {
    padding: 80px clamp(20px, 5vw, 80px);
    max-width: none;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.cta-text .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.form-input,
.form-textarea {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-send {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
}

.btn-spinner {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.45em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* FOOTER */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 40px clamp(20px, 5vw, 80px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent2);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent2);
    border-radius: 50%;
    animation: blink 3s ease-in-out infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        padding: 0 16px;
    }

    .btn-ghost {
        display: none;
    }

    .btn-primary {
        font-size: 0.8rem;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .nav-links {
        display: none;
    }

    .flow-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .flow-container::before {
        display: none;
    }

    .cta-inner {
        grid-template-columns: 1fr;
    }

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

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

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

/* LANG TRANSITION */
.lang-switching [data-i18n],
.lang-switching [data-i18n-html] {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* LEGAL MODAL */
.legal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-overlay.open {
    display: flex;
}

.legal-modal {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 82vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.legal-header-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-close {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.legal-close:hover {
    background: var(--border);
    color: var(--text);
}

.legal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.legal-body h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 6px;
}

.legal-body h3:first-child {
    margin-top: 0;
}

.legal-body p {
    margin: 0 0 8px;
}

.legal-body a {
    color: var(--accent);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

/* cgu MODAL */
.cgu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cgu-overlay.open {
    display: flex;
}

.cgu-modal {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 82vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cgu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.cgu-header-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cgu-close {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.cgu-close:hover {
    background: var(--border);
    color: var(--text);
}

.cgu-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.cgu-body h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 6px;
}

.cgu-body h3:first-child {
    margin-top: 0;
}

.cgu-body p {
    margin: 0 0 8px;
}

.cgu-body a {
    color: var(--accent);
    text-decoration: none;
}

.cgu-body a:hover {
    text-decoration: underline;
}

/* video MODAL */
.video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-overlay.open {
    display: flex;
}

.video-modal {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 82vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.video-header-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-close {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.video-close:hover {
    background: var(--border);
    color: var(--text);
}

.video-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.video-body video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.video-body h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 6px;
}

.video-body h3:first-child {
    margin-top: 0;
}

.video-body p {
    margin: 0 0 8px;
}

.video-body a {
    color: var(--accent);
    text-decoration: none;
}

.video-body a:hover {
    text-decoration: underline;
}

.legal-modal,
.cgu-modal,
.video-modal {
    background: #ffffff;
}

[data-theme="dark"] .legal-modal,
[data-theme="dark"] .cgu-modal,
[data-theme="dark"] .video-modal {
    background: #000;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
    width: 34px;
    height: 34px;
}

.burger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: calc(68px + var(--banner-h));
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

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

.mobile-menu a:not(.lang-btn):not(.btn-primary) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.mobile-menu .lang-switcher {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    nav .lang-switcher {
        display: none;
    }

    /* masqué dans la nav, visible dans le menu */
    .btn-ghost {
        display: none;
    }

    .nav-logo-text {
        /*display: none;*/
    }

    /* optionnel */
}