* {
    box-sizing: border-box;
}

:root {
    --bg: #090b12;
    --surface: #10131d;
    --surface-2: #151925;
    --border: #282d3d;

    --text: #f4f5fa;
    --muted: #858b9e;

    --purple: #9b7cff;
    --cyan: #35d7d0;

    --client: #ff6f91;
    --client-soft: #321a28;

    --ai: #6ee7d8;
    --ai-soft: #132a29;

    --success: #69e49b;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(155,124,255,.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(53,215,208,.08),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button {
    font: inherit;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 76px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: rgba(9,11,18,.8);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;

    z-index: 20;
}

.brand {
    font-size: 21px;
    font-weight: 900;

    letter-spacing: -1.2px;
}

.brand strong {
    color: var(--purple);
}

.topbar-right {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.live-dot,
.status-pulse {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 5px rgba(105,228,155,.08),
        0 0 18px rgba(105,228,155,.5);

    animation: pulse 1.7s infinite;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    max-width: 1180px;

    margin: auto;

    padding: 85px 30px 50px;
}

.eyebrow {
    color: var(--purple);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2.5px;

    margin-bottom: 15px;
}

.intro h1 {
    max-width: 900px;

    margin: 0 0 23px;

    font-size: clamp(43px, 6vw, 76px);

    line-height: .97;

    letter-spacing: -4px;
}

.intro h1 span {
    display: block;

    color: #8e95a9;
}

.intro p {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.65;
}


/* =========================================================
   CARTES
========================================================= */

.demo-picker {
    max-width: 1180px;

    margin: auto;

    padding: 0 30px 65px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.demo-card {
    position: relative;

    min-height: 190px;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    color: var(--text);

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.demo-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -40px;
    bottom: -45px;

    background: var(--purple);

    filter: blur(45px);

    opacity: 0;

    transition: opacity .3s;
}

.demo-card:hover {
    transform: translateY(-4px);

    border-color: #555b78;
}

.demo-card.active {
    border-color: var(--purple);

    background:
        linear-gradient(
            145deg,
            rgba(155,124,255,.14),
            rgba(53,215,208,.035)
        );

    box-shadow:
        0 18px 45px rgba(0,0,0,.22),
        0 0 0 1px rgba(155,124,255,.06);
}

.demo-card.active::after {
    opacity: .22;
}

.card-number {
    color: #656c80;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

.card-icon {
    margin: 22px 0 18px;

    color: var(--cyan);

    font-size: 22px;

    font-weight: 700;
}

.demo-card h2 {
    margin: 0 0 9px;

    font-size: 16px;
}

.demo-card p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   DEMO
========================================================= */

.demo-container {
    max-width: 1180px;

    margin: auto;

    padding: 0 30px 90px;
}

.demo-heading {
    padding-top: 38px;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 25px;
}

.demo-heading h2 {
    margin: 0 0 9px;

    font-size: 36px;

    letter-spacing: -1.5px;
}

.demo-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.replay {
    padding: 10px 16px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: #d7dbea;

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .8px;

    transition: .2s;
}

.replay:hover {
    border-color: var(--purple);

    transform: translateY(-2px);
}


/* =========================================================
   BOUTON LANCER
========================================================= */

.launch-area {
    min-height: 115px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 9px;
}

.launch-area.hidden {
    display: none;
}

.launch-button {
    padding: 14px 22px;

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid rgba(155,124,255,.45);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(155,124,255,.18),
            rgba(53,215,208,.09)
        );

    color: white;

    cursor: pointer;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .5px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.25),
        0 0 30px rgba(155,124,255,.08);

    transition:
        transform .2s,
        border-color .2s;
}

.launch-button:hover {
    transform: translateY(-3px);

    border-color: var(--purple);
}

.launch-icon {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--purple);

    font-size: 9px;
}

.launch-hint {
    color: #656c80;

    font-size: 8px;

    letter-spacing: .3px;
}


/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
    margin-top: 10px;

    display: grid;

    grid-template-columns:
        minmax(350px, .9fr)
        minmax(450px, 1.1fr);

    gap: 15px;
}

.client-panel,
.system-panel {
    min-height: 650px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    box-shadow:
        0 25px 70px rgba(0,0,0,.2);
}


/* =========================================================
   PANEL HEADER
========================================================= */

.panel-header {
    height: 74px;

    padding: 0 19px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: rgba(255,255,255,.018);
}

.panel-person {
    display: flex;

    align-items: center;

    gap: 11px;
}

.panel-person strong {
    display: block;

    font-size: 11px;
}

.panel-person small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}

.avatar {
    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 900;
}

.client-avatar {
    background: rgba(255,111,145,.14);

    color: var(--client);
}

.system-avatar {
    background: rgba(53,215,208,.12);

    color: var(--cyan);
}

.panel-label {
    padding: 6px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}

.client-label {
    color: var(--client);

    background: rgba(255,111,145,.08);
}

.system-label {
    color: var(--cyan);

    background: rgba(53,215,208,.08);
}


/* =========================================================
   TÉLÉPHONE
========================================================= */

.client-screen {
    position: relative;

    width: 88%;

    min-height: 545px;

    margin: 22px auto;

    border: 1px solid #292e3e;

    border-radius: 25px;

    background:
        linear-gradient(
            180deg,
            #111521,
            #0c0f17
        );

    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 20px 45px rgba(0,0,0,.3);
}

.phone-status {
    height: 30px;

    padding: 0 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #697084;

    font-size: 8px;
}

.phone-title {
    height: 56px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    gap: 9px;

    border-bottom: 1px solid #252a38;
}

.phone-title strong {
    display: block;

    font-size: 10px;
}

.phone-title small {
    display: block;

    margin-top: 3px;

    color: #697084;

    font-size: 8px;
}

.mini-avatar {
    width: 27px;
    height: 27px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--cyan)
        );

    color: white;

    font-size: 9px;
    font-weight: 900;
}


/* =========================================================
   CONVERSATION
========================================================= */

.conversation {
    height: 458px;

    padding: 18px 14px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.bubble {
    max-width: 84%;

    padding: 11px 13px;

    border-radius: 16px;

    font-size: 11px;

    line-height: 1.5;

    animation:
        messageIn .45s cubic-bezier(.2,.8,.2,1);
}

.bubble.ai {
    align-self: flex-start;

    color: #d9fffb;

    background: var(--ai-soft);

    border:
        1px solid rgba(110,231,216,.13);

    border-bottom-left-radius: 5px;
}

.bubble.client {
    align-self: flex-end;

    color: #ffe8ee;

    background: var(--client-soft);

    border:
        1px solid rgba(255,111,145,.15);

    border-bottom-right-radius: 5px;
}

.bubble.system {
    align-self: center;

    max-width: 95%;

    color: #6f778b;

    background: transparent;

    font-size: 8px;

    text-align: center;
}


/* =========================================================
   CHOIX CLIENT
========================================================= */

.client-choice {
    width: 90%;

    align-self: flex-end;

    display: grid;

    gap: 7px;

    position: relative;

    animation: messageIn .45s ease;
}

.choice-button {
    position: relative;

    padding: 11px 12px;

    border: 1px solid #34394c;

    border-radius: 11px;

    background: #161a26;

    color: #dfe2eb;

    text-align: left;

    cursor: pointer;

    font-size: 10px;

    transition:
        border-color .2s,
        background .2s,
        transform .2s;
}

.choice-button:hover {
    border-color: var(--cyan);

    background: #19232a;

    transform: translateX(-3px);
}

.choice-button.highlighted {
    border-color: var(--cyan);

    box-shadow:
        0 0 0 1px rgba(53,215,208,.15),
        0 0 22px rgba(53,215,208,.08);
}


/* =========================================================
   CURSEUR ANIMÉ
========================================================= */

.demo-cursor {
    position: absolute;

    z-index: 10;

    width: 22px;
    height: 22px;

    pointer-events: none;

    opacity: 0;

    transform:
        translate(70px, 25px)
        rotate(-12deg);

    transition:
        transform 1.3s cubic-bezier(.2,.8,.2,1),
        opacity .3s;
}

.demo-cursor::before {
    content: "";

    position: absolute;

    left: 2px;
    top: 1px;

    width: 0;
    height: 0;

    border-left: 8px solid white;
    border-right: 4px solid transparent;
    border-top: 13px solid transparent;
    border-bottom: 4px solid transparent;

    filter:
        drop-shadow(0 0 2px #000)
        drop-shadow(0 0 5px rgba(53,215,208,.5));
}

.demo-cursor.show {
    opacity: 1;

    transform:
        translate(0, 0)
        rotate(-12deg);
}

.cursor-click {
    animation: cursorClick .7s ease;
}

@keyframes cursorClick {
    0% {
        transform: scale(1) rotate(-12deg);
    }

    40% {
        transform: scale(.75) rotate(-12deg);
    }

    100% {
        transform: scale(1) rotate(-12deg);
    }
}


/* =========================================================
   APPEL ENTRANT
========================================================= */

.incoming-call {
    position: absolute;

    inset: 86px 0 0;

    z-index: 30;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(155,124,255,.16),
            transparent 48%
        ),
        linear-gradient(
            180deg,
            #0d111c,
            #080b12
        );

    opacity: 0;

    visibility: hidden;

    transform: scale(.96);

    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s;
}

.incoming-call.visible {
    opacity: 1;

    visibility: visible;

    transform: scale(1);
}

.incoming-glow {
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(155,124,255,.12);

    filter: blur(35px);

    animation: callGlow 1.5s infinite;
}

.call-label {
    position: relative;

    margin-bottom: 20px;

    color: var(--cyan);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 2px;
}

.call-avatar {
    position: relative;

    width: 76px;
    height: 76px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border: 2px solid rgba(155,124,255,.45);

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--cyan)
        );

    color: white;

    font-size: 27px;
    font-weight: 900;

    box-shadow:
        0 0 0 10px rgba(155,124,255,.05),
        0 0 35px rgba(155,124,255,.2);

    animation: callAvatar 1.5s infinite;
}

.caller-name {
    position: relative;

    font-size: 20px;
    font-weight: 800;
}

.caller-number {
    position: relative;

    margin-top: 5px;

    color: #737b90;

    font-size: 9px;
}

.calling-animation {
    position: relative;

    margin-top: 14px;

    color: #697084;

    font-size: 8px;

    animation: callingText 1.2s infinite;
}

.call-actions {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: center;

    gap: 30px;

    margin-top: 35px;
}

.call-action {
    width: 75px;
    height: 75px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 0;

    border-radius: 50%;

    cursor: pointer;

    color: white;

    font-size: 7px;

    transition:
        transform .2s,
        filter .2s;
}

.call-action:hover {
    transform: scale(1.08);

    filter: brightness(1.15);
}

.call-action span {
    font-size: 19px;
}

.call-action.decline {
    background: #48202c;

    border: 1px solid rgba(255,111,145,.25);

    color: var(--client);
}

.call-action.accept {
    background: #173a35;

    border: 1px solid rgba(105,228,155,.25);

    color: var(--success);
}

@keyframes callGlow {
    0%,
    100% {
        opacity: .4;
        transform: scale(.9);
    }

    50% {
        opacity: .8;
        transform: scale(1.15);
    }
}

@keyframes callAvatar {
    0%,
    100% {
        box-shadow:
            0 0 0 10px rgba(155,124,255,.05),
            0 0 35px rgba(155,124,255,.2);
    }

    50% {
        box-shadow:
            0 0 0 16px rgba(155,124,255,.04),
            0 0 50px rgba(155,124,255,.35);
    }
}

@keyframes callingText {
    0%,
    100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}


/* =========================================================
   APPEL MANQUÉ
========================================================= */

.missed-call {
    position: absolute;

    inset: 86px 0 0;

    z-index: 25;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background:
        linear-gradient(
            180deg,
            #10141f,
            #0b0e15
        );

    opacity: 0;

    visibility: hidden;

    transform: scale(.97);

    transition:
        opacity .35s,
        transform .35s,
        visibility .35s;
}

.missed-call.visible {
    opacity: 1;

    visibility: visible;

    transform: scale(1);
}

.missed-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    margin-bottom: 5px;

    border-radius: 50%;

    background: rgba(255,111,145,.1);

    color: var(--client);

    font-size: 23px;

    box-shadow:
        0 0 30px rgba(255,111,145,.08);
}

.missed-call strong {
    font-size: 17px;
}

.missed-call span {
    color: #747c90;

    font-size: 8px;
}


/* =========================================================
   SYSTEME
========================================================= */

.system-content {
    padding: 20px;
}

.process-status {
    padding: 13px;

    display: flex;

    align-items: center;

    gap: 11px;

    border:
        1px solid #292f40;

    border-radius: 14px;

    background: #111520;
}

.process-status strong {
    display: block;

    font-size: 10px;
}

.process-status small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;
}

.activity-feed {
    height: 255px;

    margin-top: 12px;

    padding-right: 4px;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.activity {
    position: relative;

    padding: 12px 13px 12px 35px;

    border:
        1px solid #292f40;

    border-radius: 13px;

    background: #111520;

    animation:
        operationIn .4s cubic-bezier(.2,.8,.2,1);
}

.activity::before {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    left: 15px;
    top: 17px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 14px rgba(53,215,208,.5);
}

.activity strong {
    display: block;

    margin-bottom: 4px;

    color: #e8eaf0;

    font-size: 10px;
}

.activity span {
    color: #737b90;

    font-size: 8px;

    line-height: 1.5;
}


/* =========================================================
   CALENDRIER
========================================================= */

.calendar-area {
    margin-top: 12px;
}

.calendar {
    padding: 14px;

    border:
        1px solid #30364a;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #151a27,
            #10141e
        );

    animation: operationIn .5s ease;
}

.calendar-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;
}

.calendar-top strong {
    font-size: 10px;
}

.calendar-top span {
    color: var(--cyan);

    font-size: 8px;
    font-weight: 800;
}

.calendar-slots {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;
}

.slot {
    padding: 10px 7px;

    border-radius: 9px;

    text-align: center;

    font-size: 9px;
}

.slot small {
    display: block;

    margin-top: 4px;

    font-size: 7px;
}

.slot.busy {
    color: #777e90;

    background: #1b1d25;
}

.slot.available {
    color: var(--cyan);

    background: rgba(53,215,208,.09);

    border:
        1px solid rgba(53,215,208,.25);

    box-shadow:
        0 0 20px rgba(53,215,208,.07);
}

.slot.selected {
    color: #081012;

    background: var(--cyan);

    font-weight: 900;

    box-shadow:
        0 0 25px rgba(53,215,208,.25);
}


/* =========================================================
   FICHE CLIENT
========================================================= */

.client-record {
    margin-top: 12px;
}

.record {
    padding: 14px;

    border:
        1px solid #30364a;

    border-radius: 15px;

    background: #111520;

    animation: operationIn .5s ease;
}

.record-title {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 11px;
}

.record-title strong {
    font-size: 10px;
}

.record-title span {
    color: var(--success);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .7px;
}

.record-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;
}

.record-item {
    padding: 8px;

    border-radius: 8px;

    background: #171b27;
}

.record-item small {
    display: block;

    margin-bottom: 3px;

    color: #666e82;

    font-size: 7px;
}

.record-item strong {
    font-size: 8px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    max-width: 1180px;

    margin: auto;

    padding: 25px 30px 35px;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #666d80;

    font-size: 9px;
}

.footer-brand {
    color: white;

    font-weight: 900;
}

.footer-brand strong {
    color: var(--purple);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes messageIn {

    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes operationIn {

    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .65;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .demo-picker {
        grid-template-columns: 1fr 1fr;
    }

    .workspace {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 560px) {

    .topbar {
        padding: 0 20px;
    }

    .topbar-right {
        display: none;
    }

    .intro {
        padding: 60px 22px 40px;
    }

    .intro h1 {
        letter-spacing: -2.5px;
    }

    .demo-picker,
    .demo-container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .demo-picker {
        grid-template-columns: 1fr;
    }

    .demo-heading {
        display: block;
    }

    .replay {
        margin-top: 18px;
    }

    .client-screen {
        width: 94%;
    }

    .system-content {
        padding: 14px;
    }

    .calendar-slots {
        grid-template-columns: 1fr;
    }

    .call-actions {
        gap: 20px;
    }

    .call-action {
        width: 65px;
        height: 65px;
    }

    footer {
        margin: 0 22px;

        padding-left: 0;
        padding-right: 0;

        display: block;
    }
}