/* =========================================================
   KOUTAFA SERVICES
   Design professionnel - Mobile First
   ========================================================= */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --text: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #16a34a;

    --radius: 18px;
    --shadow: 0 15px 40px rgba(15, 23, 42, .08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,.95);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--accent);
    color: var(--white);

    font-size: 22px;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    font-size: 17px;
    letter-spacing: -.5px;
}

.logo-text small {
    margin-top: 4px;

    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-weight: 800;
}


/* MENU MOBILE */

.menu-toggle {
    border: 0;
    background: transparent;

    font-size: 27px;
    cursor: pointer;

    color: var(--primary);
}

.main-nav {
    position: absolute;

    top: 72px;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;

    padding: 20px;

    background: var(--white);
    border-bottom: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.main-nav.open {
    display: flex;
}

.main-nav a {
    padding: 12px 8px;

    font-size: 15px;
    font-weight: 600;
}

.nav-login {
    margin-top: 8px;

    text-align: center;

    background: var(--primary);
    color: var(--white);

    border-radius: 10px;
}


/* HERO */

.hero {
    padding: 65px 0 55px;

    background:
        radial-gradient(
            circle at top right,
            #dbeafe,
            transparent 35%
        ),
        var(--light);
}

.hero-grid {
    display: grid;
    gap: 45px;
}

.badge,
.section-label {
    display: inline-block;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    margin-top: 15px;

    font-size: clamp(40px, 10vw, 68px);

    line-height: 1.05;
    letter-spacing: -2.5px;
}

.hero h1 span {
    display: block;
    color: var(--accent);
}

.hero-content > p {
    max-width: 620px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 17px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 30px;
}

.btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border-radius: 12px;

    font-weight: 750;

    transition: .2s ease;
}

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

.btn-primary {
    background: var(--accent);
    color: var(--white);

    box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--white);
    border: 1px solid var(--border);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.hero-note {
    margin-top: 22px;

    color: var(--muted);

    font-size: 13px;
}

.status-dot {
    display: inline-block;

    width: 9px;
    height: 9px;

    margin-right: 7px;

    border-radius: 50%;

    background: var(--success);
}


/* HERO CARD */

.hero-card {
    padding: 22px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 22px;

    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--muted);
    font-weight: 800;
}

.card-header h3 {
    margin-top: 3px;
}

.notification {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--light);
}

.ticket-preview {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 25px;
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 14px;
}

.ticket-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #eff6ff;
}

.ticket-info {
    flex: 1;
}

.ticket-info strong {
    display: block;
    font-size: 13px;
}

.ticket-info span {
    font-size: 11px;
    color: var(--muted);
}

.ticket-status {
    font-size: 10px;
    font-weight: 800;

    color: var(--accent);
    background: #eff6ff;

    padding: 5px 8px;
    border-radius: 20px;
}

.message-preview {
    display: flex;
    gap: 12px;

    margin-top: 20px;
    padding: 16px;

    background: var(--light);
    border-radius: 14px;
}

.avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--primary);
    color: var(--white);

    font-size: 11px;
    font-weight: 800;
}

.message-preview strong {
    font-size: 12px;
}

.message-preview p {
    margin-top: 3px;

    font-size: 12px;
    color: var(--muted);
}

.progress {
    margin-top: 20px;
}

.progress-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 5px;
}

.progress-line span {
    height: 5px;

    background: var(--border);

    border-radius: 10px;
}

.progress-line span.active {
    background: var(--accent);
}

.progress small {
    display: block;

    margin-top: 8px;

    color: var(--muted);
}


/* STATS */

.stats {
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
}

.stat {
    padding: 25px 10px;

    text-align: center;

    border-bottom: 1px solid var(--border);
}

.stat:last-child {
    border-bottom: 0;
}

.stat strong {
    display: block;

    font-size: 28px;

    color: var(--accent);
}

.stat span {
    font-size: 13px;
    color: var(--muted);
}


/* SECTIONS */

.section {
    padding: 80px 0;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 45px;
}

.section-heading h2 {
    margin-top: 8px;

    font-size: clamp(30px, 7vw, 44px);

    line-height: 1.1;
    letter-spacing: -1.5px;
}

.section-heading p {
    margin-top: 15px;

    color: var(--muted);
}


/* STEPS */

.steps {
    display: grid;
    gap: 20px;
}

.step {
    display: flex;
    gap: 18px;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);
}

.step-number {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #eff6ff;
    color: var(--accent);

    font-weight: 800;
}

.step h3 {
    font-size: 17px;
}

.step p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 14px;
}


/* SERVICES */

.services-section {
    background: var(--light);
}

.services-grid {
    display: grid;
    gap: 16px;
}

.service-card {
    padding: 25px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--light);

    font-size: 23px;
}

.service-card h3 {
    margin-top: 17px;

    font-size: 17px;
}

.service-card p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 14px;
}

.service-card a {
    display: inline-block;

    margin-top: 18px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 750;
}


/* CTA */

.cta {
    padding: 70px 0;

    background: var(--primary);

    color: var(--white);
}

.cta-content {
    display: flex;
    flex-direction: column;

    gap: 30px;
}

.cta h2 {
    margin-top: 8px;

    font-size: clamp(28px, 7vw, 42px);

    line-height: 1.1;
}

.cta p {
    margin-top: 12px;

    max-width: 600px;

    color: #cbd5e1;
}

.cta .section-label {
    color: #93c5fd;
}


/* FOOTER */

.footer {
    background: #020617;

    color: var(--white);
}

.footer-content {
    display: grid;
    gap: 40px;

    padding: 55px 0;
}

.footer-brand p {
    max-width: 320px;

    margin-top: 15px;

    color: #94a3b8;

    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    margin-bottom: 5px;
}

.footer-links a {
    color: #94a3b8;

    font-size: 14px;
}

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

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid #1e293b;

    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 650px) {

    .hero-buttons {
        flex-direction: row;
    }

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

    .stat {
        border-bottom: 0;
        border-right: 1px solid var(--border);
    }

    .stat:last-child {
        border-right: 0;
    }

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

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

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

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 900px) {

    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;

        display: flex;

        flex-direction: row;

        align-items: center;

        padding: 0;

        background: transparent;

        border: 0;

        box-shadow: none;
    }

    .main-nav a {
        padding: 8px 12px;
    }

    .nav-login {
        margin: 0 0 0 10px;

        padding: 10px 17px !important;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-grid {
        grid-template-columns: 1.05fr .95fr;
        align-items: center;
    }

    .hero-card {
        padding: 28px;
    }

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

    .cta-content {
        flex-direction: row;

        align-items: center;
        justify-content: space-between;
    }

}