/* ============================================
   IAsmart.tech v2 — Dark Glassmorphism
   Futuristic AI Agency
   ============================================ */

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

:root {
    --bg: #08080c;
    --bg-card: rgba(255,255,255,0.04);
    --bg-glass: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-h: rgba(255,255,255,0.15);
    --text: #f0f0f5;
    --text-dim: rgba(255,255,255,0.5);
    --text-dimmer: rgba(255,255,255,0.3);
    --accent: #8b5cf6;
    --accent-2: #6366f1;
    --accent-glow: rgba(139,92,246,0.4);
    --accent-soft: rgba(139,92,246,0.1);
    --gradient: linear-gradient(135deg, #8b5cf6, #6366f1, #a78bfa);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --font: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cabinet Grotesk', 'Satoshi', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font) !important;
    background: var(--bg) !important;
    background-color: #08080c !important;
    color: var(--text) !important;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* --- Ambient Background --- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.ambient__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}
.ambient__orb--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: -15%; left: -10%;
    animation: drift1 20s ease-in-out infinite;
}
.ambient__orb--2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #4338ca 0%, transparent 70%);
    top: 40%; right: -15%;
    animation: drift2 25s ease-in-out infinite;
}
.ambient__orb--3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -10%; left: 30%;
    animation: drift3 22s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 60px) scale(1.1); }
    66% { transform: translate(-40px, 30px) scale(0.95); }
}
@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -40px) scale(1.05); }
    66% { transform: translate(40px, -20px) scale(0.9); }
}
@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -50px) scale(1.1); }
}

/* Film grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.5s var(--ease);
}
.nav--scrolled {
    padding: 0.75rem 0;
    background: rgba(8,8,12,0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}
.nav__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem !important;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text) !important;
    font-size: 0.85rem !important;
    transition: all 0.3s var(--ease) !important;
}
.nav__cta:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav__burger span {
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav__burger.active span:first-child { transform: rotate(45deg) translate(2.3px, 2.3px); }
.nav__burger.active span:last-child { transform: rotate(-45deg) translate(2.3px, -2.3px); }

/* Mobile menu */
.mob-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8,8,12,0.95);
    backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mob-menu.active { display: flex; opacity: 1; pointer-events: all; }
.mob-menu__link {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
}
.mob-menu.active .mob-menu__link { opacity: 1; transform: translateY(0); }
.mob-menu.active .mob-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mob-menu.active .mob-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mob-menu.active .mob-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mob-menu.active .mob-menu__link:nth-child(4) { transition-delay: 0.25s; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--spring);
    white-space: nowrap;
    position: relative;
}
.btn--glow {
    background: var(--gradient);
    color: white;
    box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
}
.btn--glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
}
.btn--glass {
    background: var(--bg-glass);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.btn--glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-h);
    transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* --- Hero --- */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    z-index: 2;
}
.hero__container {
    max-width: 800px;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
}
.hero__badge-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero__title-grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero grid visual */
.hero__grid {
    position: relative;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}
.hero__grid-card {
    width: 340px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    animation: cardFloat 8s ease-in-out infinite;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}
.hero__grid-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.hero__grid-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-h);
}
.hero__grid-dots span:first-child { background: #ff5f57; }
.hero__grid-dots span:nth-child(2) { background: #febc2e; }
.hero__grid-dots span:last-child { background: #28c840; }
.hero__grid-bar {
    height: 6px;
    width: 50%;
    background: var(--gradient);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}
.hero__grid-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0.75rem;
}
.hero__grid-lines div {
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}
.hero__grid-lines .short { width: 60%; }
.hero__grid-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 0.75rem;
}
.hero__grid-blocks div {
    height: 44px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.hero__grid-blocks .accent {
    background: var(--accent-soft);
    border-color: rgba(139,92,246,0.2);
}
.hero__grid-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: rgba(8,8,12,0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hero__grid-float svg { color: var(--accent); }
.hero__grid-float--1 {
    top: 10%;
    right: -20%;
    animation: floatTag 6s ease-in-out infinite;
}
.hero__grid-float--2 {
    bottom: 15%;
    left: -18%;
    animation: floatTag 6s ease-in-out infinite 2s;
}
@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero — Live AI chat */
.hero__chat {
    position: relative;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}
.hero__chat-card {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, rgba(22,22,42,0.92), rgba(8,8,16,0.95));
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(139,92,246,0.35);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(139,92,246,0.1),
        0 24px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(139,92,246,0.25),
        inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}
.hero__chat-card::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(139,92,246,0.5), transparent 40%, transparent 60%, rgba(99,102,241,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.hero__chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(139,92,246,0.04);
}
.hero__chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.hero__chat-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hero__chat-id strong {
    font-size: 0.9rem;
    color: var(--text);
}
.hero__chat-id span {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}
.hero__chat-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: chatPulse 1.6s ease-in-out infinite;
}
@keyframes chatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero__chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}
.hero__chat-messages::-webkit-scrollbar { width: 6px; }
.hero__chat-messages::-webkit-scrollbar-thumb {
    background: rgba(139,92,246,0.2);
    border-radius: 3px;
}
.hero__chat-msg {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: msgIn 0.25s ease-out;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__chat-msg--assistant {
    align-self: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.hero__chat-msg--user {
    align-self: flex-end;
    background: var(--gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.hero__chat-msg a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.85;
}
.hero__chat-msg--typing {
    padding: 0.85rem 1rem;
}
.hero__chat-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.hero__chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.hero__chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.hero__chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}
.hero__chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    background: rgba(8,8,16,0.6);
}
.hero__chat-form input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.65rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease;
}
.hero__chat-form input:focus {
    border-color: rgba(139,92,246,0.5);
}
.hero__chat-form input::placeholder { color: var(--text-dim); }
.hero__chat-form button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    flex-shrink: 0;
}
.hero__chat-form button:hover { transform: scale(1.06); }
.hero__chat-form button:active { transform: scale(0.96); }
.hero__chat-form button:disabled { cursor: not-allowed; }
.hero__chat-suggestions {
    display: flex;
    gap: 6px;
    padding: 0 0.75rem 0.75rem;
    flex-wrap: wrap;
}
.hero__chat-suggestions button {
    padding: 0.4rem 0.8rem;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.18);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease;
}
.hero__chat-suggestions button:hover {
    background: rgba(139,92,246,0.18);
}
.hero__chat-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: rgba(8,8,12,0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hero__chat-float--1 {
    top: -14px;
    right: 5%;
    animation: floatTag 6s ease-in-out infinite;
}
.hero__chat-float-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: chatPulse 1.6s ease-in-out infinite;
}
@media (max-width: 700px) {
    .hero__chat-messages { height: 260px; }
    .hero__chat-card { max-width: 100%; }
    .hero__chat-float { display: none; }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.hero__scroll-track {
    width: 1px;
    height: 48px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}
.hero__scroll-thumb {
    width: 100%;
    height: 40%;
    background: var(--accent);
    position: absolute;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0% { top: -40%; }
    100% { top: 140%; }
}

/* --- Section common --- */
.label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.stag { margin-bottom: 3.5rem; }

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.glass-card:hover {
    border-color: rgba(139,92,246,0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(139,92,246,0.08), 0 16px 40px rgba(0,0,0,0.3);
}
.glass-card:hover::before { opacity: 1; }
.glass-card__icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139,92,246,0.15);
}
.glass-card h3 {
    position: relative;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.glass-card p {
    position: relative;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.glass-card ul {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.glass-card ul li {
    font-size: 0.9rem;
    color: var(--text-dim);
    padding-left: 1.25rem;
    position: relative;
}
.glass-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- Services --- */
.services {
    padding: 7rem 0;
}
.services__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* --- Process --- */
.process {
    padding: 7rem 0;
}
.process__track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.process__line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), var(--border) 50%, transparent);
}
.process__step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}
.process__num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    z-index: 1;
    transition: all 0.4s var(--ease);
}
.process__step:hover .process__num {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.process__info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.process__info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Work --- */
.work {
    padding: 7rem 0;
}
.work__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}
.work__card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.5s var(--ease);
    cursor: pointer;
}
.work__card:hover {
    border-color: var(--border-h);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.work__card--wide {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}
.work__card-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.work__card--wide .work__card-visual {
    flex: 1;
    height: auto;
    min-height: 300px;
}
.work__card-info {
    padding: 1.5rem;
}
.work__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(139,92,246,0.15);
}
.work__card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.work__card-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}
.work__url {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    letter-spacing: -0.01em;
    padding: 0.35rem 0.7rem;
    background: var(--accent-soft);
    border: 1px solid rgba(139,92,246,0.18);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}
.work__url svg {
    flex-shrink: 0;
    opacity: 0.8;
}
.work__card:hover .work__url {
    background: rgba(139,92,246,0.18);
    border-color: rgba(139,92,246,0.4);
    color: #c4b5fd;
}

/* Mockups */
.work__mockup {
    width: 75%;
    max-width: 260px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.work__mockup-bar {
    display: flex;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.work__mockup-bar span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.work__mockup-body {
    display: flex;
    padding: 8px;
    gap: 6px;
    min-height: 120px;
}
.work__mockup-side {
    width: 40px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}
.work__mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.work__mockup-line {
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.work__mockup-line.short { width: 60%; }
.work__mockup-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: auto;
}
.work__mockup-row div {
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.work__mockup--phone {
    width: 120px;
    border-radius: 1.25rem;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.work__mockup-notch {
    width: 40%;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
.work__mockup-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.work__mockup--chat {
    width: 180px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.work__mockup-bubble {
    height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
}
.work__mockup-bubble.left { width: 65%; align-self: flex-start; }
.work__mockup-bubble.right { width: 50%; align-self: flex-end; background: rgba(139,92,246,0.2); }
.work__mockup-bubble.small { width: 40%; height: 16px; }
.work__mockup-typing {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
.work__mockup-typing span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.4s infinite;
}
.work__mockup-typing span:nth-child(2) { animation-delay: 0.2s; }
.work__mockup-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* --- Stats --- */
.stats {
    padding: 5rem 0;
}
.stats__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
}
.stats__item { text-align: center; }
.stats__val {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stats__lbl {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}
.stats__sep {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* --- Testimonial --- */
.testi {
    padding: 7rem 0;
}
.testi__card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
}
.testi__quote {
    color: var(--accent);
    opacity: 0.3;
    margin: 0 auto 1.5rem;
}
.testi__card blockquote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 2rem;
}
.testi__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.testi__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(139,92,246,0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.testi__author strong {
    display: block;
    font-size: 0.9rem;
}
.testi__author span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Testimonials v2 (grid 2 colonnes) --- */
.testi__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.testi__card-v2 {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    transition: transform .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.testi__card-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.testi__card-v2:hover {
    transform: translateY(-4px);
    border-color: rgba(139,92,246,0.35);
}
.testi__card-v2:hover::before { opacity: 1; }
.testi__card-v2 .testi__quote {
    margin: 0 0 1rem;
    opacity: 0.4;
}
.testi__card-v2 blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 1.5rem;
    font-style: normal;
}
.testi__card-v2 blockquote strong {
    color: var(--text);
    background: linear-gradient(180deg, transparent 65%, rgba(139,92,246,0.25) 65%);
    padding: 0 2px;
}
.testi__card-v2 .testi__author {
    justify-content: flex-start;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.testi__card-v2 .testi__avatar {
    color: #fff;
    border: none;
    flex-shrink: 0;
}
.testi__author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.testi__author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}
.testi__author-info span {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.testi__link {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
    transition: opacity .2s ease;
}
.testi__link:hover { opacity: 0.7; }

.testi__cta-line {
    text-align: center;
    margin-top: 3rem;
    font-size: 1rem;
    color: var(--text-dim);
}
.testi__cta-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.4rem;
    transition: opacity .2s ease;
}
.testi__cta-link:hover { opacity: 0.7; }

/* --- FAQ --- */
.faq {
    padding: 5rem 0 7rem;
    position: relative;
    z-index: 2;
}
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq__item {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.faq__item[open] {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.05);
}
.faq__q {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #c4b5fd; }
.faq__icon {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.4s var(--spring);
}
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__a {
    padding: 0 1.5rem 1.4rem;
    animation: faqOpen 0.4s var(--ease);
}
.faq__a p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq__a strong {
    color: var(--text);
    font-weight: 600;
}
.faq__a a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(139,92,246,0.3);
    transition: text-decoration-color 0.3s;
}
.faq__a a:hover { text-decoration-color: var(--accent); }
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
}
.contact__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
}
.contact__sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}
.contact__perks {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.contact__perk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.contact__perk svg { color: var(--accent); flex-shrink: 0; }

/* Form */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}
.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    outline: none;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
    background: rgba(255,255,255,0.05);
}
.field textarea {
    resize: vertical;
    min-height: 100px;
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dimmer);
}

/* --- Footer --- */
.footer {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
}
.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer__brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.footer__cols {
    display: flex;
    gap: 4rem;
}
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.footer__col a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.3s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bot {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dimmer);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__made {
    color: var(--text-dim);
}
.footer__made a {
    color: var(--accent);
    transition: color 0.3s var(--ease);
}
.footer__made a:hover {
    color: #c4b5fd;
}

/* --- Reveal --- */
[data-r] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-r].vis {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__row { grid-template-columns: 1fr; }
    .work__grid { grid-template-columns: 1fr; }
    .work__card--wide { grid-row: span 1; }
    .contact__wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__grid-float--1 { right: 0; }
    .hero__grid-float--2 { left: 0; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .stats__row {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    .stats__sep { width: 48px; height: 1px; }
    .footer__top { flex-direction: column; gap: 2rem; }
    .contact__wrap { padding: 2rem; }
    .glass-card { padding: 2rem; }
    .hero__grid { display: none; }
}

@media (max-width: 480px) {
    .hero__btns { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
}

/* --- Project screenshots --- */
.work__card-visual--img {
    position: relative;
    overflow: hidden;
}
.work__card-visual--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease);
}
.work__card:hover .work__card-visual--img img {
    transform: scale(1.04);
}

/* --- Chatbot Widget --- */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.4s var(--spring);
    animation: botPulse 3s ease-in-out infinite;
}
.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 50px var(--accent-glow), 0 12px 32px rgba(0,0,0,0.5);
}
.chatbot-toggle svg { color: white; transition: transform 0.3s var(--ease); }
.chatbot-toggle.active svg { transform: rotate(45deg); }

@keyframes botPulse {
    0%, 100% { box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 50px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4); }
}

.chatbot-window {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    z-index: 199;
    width: 380px;
    max-height: 520px;
    background: rgba(14,14,20,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s var(--spring);
}
.chatbot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.chatbot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.chatbot-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
}
.chatbot-header__info strong {
    display: block;
    font-size: 0.9rem;
}
.chatbot-header__info span {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}
.chatbot-header__info span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 340px;
}
.chatbot-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: msgIn 0.3s var(--ease);
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg--bot {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chatbot-msg--user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chatbot-msg--typing {
    display: flex;
    gap: 4px;
    padding: 0.85rem 1.25rem;
}
.chatbot-msg--typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.4s infinite;
}
.chatbot-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}
.chatbot-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}
.chatbot-input input:focus { border-color: var(--accent); }
.chatbot-input input::placeholder { color: var(--text-dimmer); }
.chatbot-input button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s var(--spring);
}
.chatbot-input button:hover { transform: scale(1.08); }

@media (max-width: 480px) {
    .chatbot-window {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: 5.5rem;
        max-height: 70vh;
    }
    .chatbot-toggle {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }
}

/* --- Neural Net Canvas --- */
#neuralNet {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 201;
    transition: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Glitch on counters --- */
.stats__val.glitching {
    animation: glitchText 0.15s steps(2) 3;
}
@keyframes glitchText {
    0%   { text-shadow: 2px 0 #ff0040, -2px 0 #0ff; }
    25%  { text-shadow: -2px 0 #ff0040, 2px 0 #0ff; }
    50%  { text-shadow: 1px 1px #ff0040, -1px -1px #0ff; }
    75%  { text-shadow: -1px -1px #ff0040, 1px 1px #0ff; }
    100% { text-shadow: none; }
}

/* --- 3D Tilt glow overlay --- */
.glass-card,
.work__card {
    transform-style: preserve-3d;
}
.glass-card .tilt-glow,
.work__card .tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}
.glass-card:hover .tilt-glow,
.work__card:hover .tilt-glow {
    opacity: 1;
}


/* ========================================================
   AUDIT — section sur la home
   ======================================================== */
.audit {
    padding: 5rem 0 6rem;
    position: relative;
}
.audit__card {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(99,102,241,0.04));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 80px rgba(139,92,246,0.08);
    position: relative;
    overflow: hidden;
}
.audit__card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.audit__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.audit__badge-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: chatPulse 1.6s ease-in-out infinite;
}
.audit__title {
    font-family: 'Cabinet Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.audit__highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.audit__sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 540px;
}
.audit__form {
    display: flex;
    gap: 0.65rem;
    max-width: 560px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.audit__input-wrap {
    flex: 1;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: center;
}
.audit__input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-dim);
    pointer-events: none;
}
.audit__form input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.7rem;
    background: rgba(8,8,16,0.6);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease;
}
.audit__form input:focus {
    border-color: rgba(139,92,246,0.5);
}
.audit__form input::placeholder { color: var(--text-dim); }
.audit__form button {
    flex-shrink: 0;
    padding: 0.85rem 1.6rem;
}
.audit__hint {
    color: var(--text-dim);
    font-size: 0.78rem;
    margin: 0;
}

/* ========================================================
   AUDIT — page de résultat
   ======================================================== */
.audit-page { background: var(--bg); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.audit-result {
    padding: 4rem 0 5rem;
    min-height: 70vh;
}
.audit-result__loading {
    max-width: 460px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.audit-result__spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(139,92,246,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.audit-result__loading-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.audit-result__loading-sub {
    color: var(--text-dim);
    font-size: 0.85rem;
    word-break: break-all;
    margin: 0 0 2rem;
}
.audit-result__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.audit-result__steps .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color .3s ease;
}
.audit-result__steps .step span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    transition: all .3s ease;
}
.audit-result__steps .step.active {
    color: var(--text);
}
.audit-result__steps .step.active span {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(139,92,246,0.5);
}

.audit-result__error {
    max-width: 480px;
    margin: 4rem auto 0;
    padding: 3rem 2rem;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}
.audit-result__error h2 {
    color: #fca5a5;
    margin: 0 0 1rem;
    font-family: 'Cabinet Grotesk', sans-serif;
}
.audit-result__error p {
    color: var(--text-dim);
    margin: 0 0 2rem;
}

/* Result */
.audit-result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.audit-result__url-lbl {
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
}
.audit-result__url-val {
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    margin: 0;
    word-break: break-all;
}
.audit-result__score-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.audit-result__score-ring {
    transition: stroke-dasharray 1.2s ease-out;
}
.audit-result__score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.audit-result__score-text span {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: 'Cabinet Grotesk', sans-serif;
    line-height: 1;
}
.audit-result__score-text small {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin-top: 4px;
}
.audit-result__verdict {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    border-left: 3px solid var(--accent);
}
.audit-result__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.audit-result__panel {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.audit-result__panel h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cabinet Grotesk', sans-serif;
}
.audit-result__panel--ok h3 { color: #86efac; }
.audit-result__panel--bad h3 { color: #fca5a5; }
.audit-result__panel--reco h3 { color: var(--accent); }
.audit-result__panel ul,
.audit-result__panel ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}
.audit-result__panel--reco {
    margin-bottom: 1.5rem;
}
.audit-result__panel--reco ol li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.audit-result__panel--reco ol li:last-child { border-bottom: none; }
.audit-result__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.audit-result__metric {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}
.audit-result__metric-lbl {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}
.audit-result__metric-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Cabinet Grotesk', sans-serif;
    margin: 0;
}
.audit-result__cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(99,102,241,0.05));
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: var(--radius-xl);
}
.audit-result__cta h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}
.audit-result__cta p {
    color: var(--text-dim);
    margin: 0 0 1.75rem;
}
.audit-result__cta-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================================
   STICKY MOBILE CTA
   ======================================================== */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(99,102,241,0.4), 0 0 32px rgba(139,92,246,0.3);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.sticky-cta svg { flex-shrink: 0; }
@media (max-width: 768px) {
    .sticky-cta { display: flex; }
}

/* ========================================================
   WHATSAPP — bouton dans la page audit (CTA principal)
   ======================================================== */
.btn--whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35), 0 0 32px rgba(37,211,102,0.25) !important;
}
.btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,211,102,0.5), 0 0 40px rgba(37,211,102,0.35) !important;
}
.audit-result__cta-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.85;
}

/* ========================================================
   WHATSAPP FAB — bouton flottant bottom-right (toutes pages)
   ======================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 49;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem 0.85rem 0.9rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 32px rgba(37,211,102,0.25);
    transition: transform .25s var(--spring), box-shadow .25s var(--spring);
}
.whatsapp-fab:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 12px 32px rgba(37,211,102,0.55), 0 0 40px rgba(37,211,102,0.4);
}
.whatsapp-fab svg { flex-shrink: 0; }
.whatsapp-fab__lbl { white-space: nowrap; }

/* On mobile, hide the label, just show the icon */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 5rem; /* clear the sticky-cta which is at 1rem */
        padding: 0.85rem;
        gap: 0;
    }
    .whatsapp-fab__lbl { display: none; }
}

/* === Page MERCI (post-paiement Stripe) === */
.merci {
    padding: 8rem 0 5rem;
    min-height: 90vh;
    position: relative;
    z-index: 2;
}
.merci .container { width: 100%; }
.merci__card {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 3rem 2.5rem;
    background: linear-gradient(180deg, rgba(22,22,42,0.95), rgba(8,8,16,0.92));
    backdrop-filter: blur(24px);
    border: 1.5px solid rgba(34,197,94,0.4);
    border-radius: 2rem;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(34,197,94,0.08),
        0 32px 80px rgba(0,0,0,0.6),
        0 0 100px rgba(34,197,94,0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.merci__card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.merci__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow:
        0 12px 32px rgba(34,197,94,0.5),
        0 0 0 6px rgba(34,197,94,0.12),
        0 0 0 12px rgba(34,197,94,0.06);
    animation: merciPop 0.6s var(--spring) both;
    position: relative;
    z-index: 1;
}
@keyframes merciPop {
    0%   { transform: scale(0) rotate(-90deg); opacity: 0; }
    50%  { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.merci__title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    color: var(--text);
    margin: 0 0 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.merci__lead {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 2.75rem;
    max-width: 480px;
    position: relative;
    z-index: 1;
}
.merci__steps {
    text-align: left;
    background: rgba(8,8,16,0.7);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}
.merci__steps-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 0 0 1.5rem;
    text-align: center;
    font-weight: 600;
}
.merci__step {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.merci__step:first-of-type { padding-top: 0; }
.merci__step:last-child { border-bottom: none; padding-bottom: 0; }
.merci__step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
.merci__step > div:last-child { flex: 1; min-width: 0; }
.merci__step strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.merci__step p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}
.merci__support {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.merci__support p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}
.merci__support-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.merci__support-btns .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
}
.merci__small {
    font-size: 0.7rem;
    color: var(--text-dimmer);
    margin: 1.5rem 0 0;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .merci { padding: 6rem 0 3rem; }
    .merci__card { padding: 2rem 1.5rem 1.75rem; border-radius: 1.5rem; }
    .merci__icon { width: 76px; height: 76px; }
    .merci__steps { padding: 1.5rem 1.25rem; }
}

/* === MERCI v2 — bouton CTA + états === */
.merci__loading {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}
.merci__spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.75rem;
    border: 3px solid rgba(139,92,246,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
.merci__loading p { font-size: 0.9rem; margin: 0; }

.merci__ready {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 1rem 0 2rem;
    position: relative;
    z-index: 1;
}
.merci__big-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff !important;
    border-radius: 1.25rem;
    text-decoration: none;
    box-shadow:
        0 10px 30px rgba(139,92,246,0.45),
        0 0 50px rgba(139,92,246,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform .25s var(--spring), box-shadow .25s ease;
    animation: ctaPulse 2.4s ease-in-out infinite;
}
.merci__big-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 36px rgba(139,92,246,0.55),
        0 0 60px rgba(139,92,246,0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.merci__big-cta:active { transform: translateY(0); }
.merci__big-cta-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.merci__big-cta-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}
.merci__big-cta-text small {
    font-size: 0.78rem;
    opacity: 0.85;
    font-weight: 500;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(139,92,246,0.45), 0 0 50px rgba(139,92,246,0.25), inset 0 1px 0 rgba(255,255,255,0.2); }
    50%      { box-shadow: 0 10px 30px rgba(139,92,246,0.55), 0 0 65px rgba(139,92,246,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
}
.merci__alt {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.5;
}
.merci__alt strong { color: var(--text); }

.merci__submitted {
    background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin: 1rem 0 2rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    position: relative;
    z-index: 1;
}
