/* Shared-hosting friendly custom styles. Tailwind is loaded from the CDN in Blade. */
html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    overscroll-behavior: none;
}

.site-header {
    border-bottom: 1px solid rgba(70, 69, 84, 0.3);
    background: rgba(11, 15, 26, 0.88);
    color: #f9fafb;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}

.brand-mark {
    border: 1px solid rgba(192, 193, 255, 0.3);
    background: rgba(192, 193, 255, 0.15);
    color: #c0c1ff;
}

.site-brand-text {
    color: #f9fafb;
}

.site-nav-link,
.site-mobile-link,
.site-footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-nav-link:hover,
.site-footer-link:hover {
    color: #c0c1ff;
}

.site-nav-link.is-active,
.site-footer-link.is-active {
    color: #c0c1ff;
    font-weight: 700;
}

.site-cta {
    background: #c0c1ff;
    color: #1000a9;
    box-shadow: 0 10px 24px rgba(192, 193, 255, 0.18);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: #c0c1ff;
    color: #1000a9;
    box-shadow: 0 14px 30px rgba(192, 193, 255, 0.2);
}

.btn-secondary {
    border: 1px solid rgba(70, 69, 84, 0.55);
    color: #c0c1ff;
}

.btn-primary:hover,
.btn-secondary:hover,
.site-cta:hover {
    transform: scale(1.02);
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.btn-secondary:hover {
    background: rgba(38, 42, 54, 0.8);
}

.site-mobile-nav {
    border-top: 1px solid rgba(70, 69, 84, 0.2);
}

.site-mobile-link:hover {
    background: rgba(38, 42, 54, 0.9);
    color: #c0c1ff;
}

.site-mobile-link.is-active {
    background: #c0c1ff;
    color: #1000a9;
}

.site-footer {
    border-top: 1px solid rgba(70, 69, 84, 0.3);
    background: #1b1f2b;
    color: #f9fafb;
}

.site-muted {
    color: #9ca3af;
}

.site-footer-heading {
    color: #c0c1ff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(70, 69, 84, 0.3);
}

main > :first-child {
    margin-top: 0 !important;
}

main > :last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 1279px) {
    main {
        padding-top: 174px !important;
    }
}

::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-fade-in-up {
        animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }

    .animate-fade-in {
        animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }

    .animate-fade-in-scale {
        animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }

    .delay-100 {
        animation-delay: 100ms;
    }

    .delay-200 {
        animation-delay: 200ms;
    }

    .delay-300 {
        animation-delay: 300ms;
    }

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

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

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.95);
        }

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

@keyframes pulse-width {
    0% {
        width: 30%;
    }

    50% {
        width: 85%;
    }

    100% {
        width: 30%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-up.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .stagger-item {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .stagger-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .radial-segment {
        transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .radial-chart.is-visible .segment-1 {
        stroke-dashoffset: 62.8 !important;
    }

    .radial-chart.is-visible .segment-2 {
        stroke-dashoffset: 188.4 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .radial-segment {
        transition: none;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 7s ease-in-out 1s infinite;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.service-content.is-open {
    max-height: 900px;
    opacity: 1;
}

.service-item.is-active {
    background: #171b27;
    border-color: rgba(192, 193, 255, 0.45);
}

.service-item.is-active .service-icon {
    background: #c0c1ff;
    transform: rotate(180deg);
}

.service-item.is-active .service-icon .material-symbols-outlined {
    color: #1000a9;
}

.service-mini-visual,
.case-study-visual,
.active-dashboard,
.mock-video-frame,
.cta-dashboard,
.about-tool-card {
    position: relative;
    isolation: isolate;
}

.service-mini-visual::after,
.case-study-visual::after,
.mock-video-frame::after,
.cta-dashboard::after,
.about-tool-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(225, 255, 179, 0.12), transparent 42%, rgba(192, 193, 255, 0.12));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-mini-visual:hover::after,
.case-study-visual:hover::after,
.mock-video-frame:hover::after,
.cta-dashboard:hover::after,
.about-tool-card:hover::after {
    opacity: 1;
}

.about-tool-card > * {
    position: relative;
    z-index: 1;
}

.tool-hover-panel {
    opacity: 0.78;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.about-tool-card:hover .tool-hover-panel {
    border-color: rgba(192, 193, 255, 0.38);
    opacity: 1;
    transform: translateY(-2px);
}

.tool-pill {
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.about-tool-card:hover .tool-pill {
    border-color: rgba(79, 219, 200, 0.35);
    color: #dfe2f2;
}

.lead-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.lead-modal.is-open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.lead-modal-panel {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.lead-modal.is-open .lead-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.lead-modal-open {
    overflow: hidden;
}

.dashboard-row,
.tool-chip,
.cta-meter {
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-soft-fade {
        animation: softFade 4.8s ease-in-out infinite;
    }

    .dashboard-row {
        animation: rowGlow 4.5s ease-in-out infinite;
    }

    .workflow-line {
        width: 0;
        transition: width 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .workflow-step {
        opacity: 0.58;
        transform: translateY(8px);
        transition: opacity 0.55s ease, transform 0.55s ease, background-color 0.35s ease;
        transition-delay: var(--step-delay, 0s);
    }

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

    .workflow-rail.is-visible .workflow-step {
        opacity: 1;
        transform: translateY(0);
    }

    .video-bar {
        animation: videoPulse 3.8s ease-in-out infinite;
        transform-origin: left;
    }

    .tools-marquee {
        width: max-content;
        animation: toolsScroll 32s linear infinite;
    }

    .cta-dashboard.is-visible .cta-meter,
    .reveal-up.is-visible .cta-meter {
        animation: meterSettle 1.1s ease-out both;
    }

    .count-up {
        transition: color 0.35s ease, text-shadow 0.35s ease;
    }

    .count-up.is-visible,
    .count-up.is-counted {
        text-shadow: 0 0 28px rgba(225, 255, 179, 0.24);
    }

    @keyframes softFade {
        0%,
        100% {
            opacity: 0.82;
            transform: translateY(0);
        }

        50% {
            opacity: 1;
            transform: translateY(-6px);
        }
    }

    @keyframes rowGlow {
        0%,
        100% {
            border-color: rgba(192, 193, 255, 0.18);
            transform: translateX(0);
        }

        50% {
            border-color: rgba(225, 255, 179, 0.38);
            transform: translateX(4px);
        }
    }

    @keyframes videoPulse {
        0%,
        100% {
            transform: scaleX(0.72);
            opacity: 0.68;
        }

        50% {
            transform: scaleX(1);
            opacity: 1;
        }
    }

    @keyframes toolsScroll {
        from {
            transform: translateX(0);
        }

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

    @keyframes meterSettle {
        from {
            transform: scaleX(0.45);
            opacity: 0.5;
        }

        to {
            transform: scaleX(1);
            opacity: 1;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .workflow-line {
        width: 100%;
    }

    .workflow-step {
        opacity: 1;
        transform: none;
    }

    .tools-marquee {
        width: auto;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .lead-modal {
        align-items: flex-end;
        padding-bottom: 0;
    }

    .lead-modal-panel {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .tools-marquee {
        animation-duration: 44s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lead-modal,
    .lead-modal-panel {
        transition: none;
    }
}
