/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #ededed;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    cursor: none;
}

canvas#c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
}

/* ── Custom cursor ── */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease, top 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

a:hover~#cursor-dot,
button:hover~#cursor-dot {
    width: 16px;
    height: 16px;
}

/* ── Utility ── */
.glass-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background: linear-gradient(to right, #fff, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Nav ── */
nav a,
nav button {
    cursor: none;
}

/* ── Diagonal sections ── */
.diagonal-down {
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding-top: calc(8rem + 4vw) !important;
    padding-bottom: calc(8rem + 4vw) !important;
    width: 100%;
    max-width: 100%;
    margin-top: -2vw;
    margin-bottom: -2vw;
}

.diagonal-up {
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
    padding-top: calc(8rem + 4vw) !important;
    padding-bottom: calc(8rem + 4vw) !important;
    width: 100%;
    max-width: 100%;
    margin-top: -2vw;
    margin-bottom: -2vw;
}

/* ── FAQ ── */
details>summary {
    list-style: none;
    cursor: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* ── Testimonial hover lift ── */
.testi-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

.testi-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

/* ── Metric numbers ── */
.metric-num {
    font-variant-numeric: tabular-nums;
}

/* ── Logo strip marquee ── */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    gap: 5rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

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

/* ── Hero title animation - direct CSS, no JS clipping tricks ── */
.hero-title {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* ── Hero badge + body fade-in ── */
.hero-section>span:first-child {
    animation: hero-rise 0.6s ease 0s both;
}

.hero-section .hero-body {
    animation: hero-rise 0.8s ease 0.25s both;
}

/* ── Stat cards ── */
.stat-card {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Case study cards ── */
.case-card {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Pricing cards pop ── */
.price-card {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.price-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── CTA section glow pulse ── */
#start {
    position: relative;
    overflow: hidden;
}

#start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    animation: cta-breathe 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cta-breathe {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.15);
    }
}

/* CTA button scanline sweep */
.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: btn-sweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-sweep {
    0% {
        left: -80%;
    }

    60% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

/* ── Horizontal line that grows in (section dividers) ── */
.line-grow {
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.line-grow.is-visible {
    width: 100%;
}

/* ── FAQ open/close animation ── */
details[open] summary span {
    transform: rotate(180deg);
}

details summary span {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ── Mobile case grid scroll ── */
@media (max-width: 768px) {
    .cases-grid {
        overflow-x: auto;
        display: flex;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .cases-grid>* {
        flex: 0 0 85vw;
    }

    body {
        cursor: auto;
    }

    #cursor-dot,
    #cursor-ring {
        display: none;
    }

    .widget-arrow {
        transform: rotate(90deg);
    }
}


.li-widget-container {
    cursor: pointer;
}


/* Disable custom cursor when legal modal is open */
body.modal-open {
    cursor: auto;
}

body.modal-open #cursor-dot,
body.modal-open #cursor-ring {
    display: none;
}

/* Restore default cursor on modal content */
body.modal-open #legal-modal,
body.modal-open #legal-modal * {
    cursor: auto;
}

body.modal-open #legal-modal a,
body.modal-open #legal-modal button,
body.modal-open #legal-modal input[type="checkbox"],
body.modal-open #legal-modal label {
    cursor: pointer;
}

body.modal-open #legal-modal input[type="email"],
body.modal-open #legal-modal input[type="text"] {
    cursor: text;
}


#legal-check-privacy:checked,
#legal-check-dpa:checked,
#legal-check-terms:checked {
    background-color: #000;
    color: #fff;
}