* {
    scroll-behavior: smooth;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.card-hover {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 185, 255, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, #00b9ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-visual {
    position: relative;
    isolation: isolate;
    padding: 2rem 0;
}

.hero-visual-glow {
    position: absolute;
    z-index: -3;
    inset: 12% 5% 4%;
    border-radius: 50%;
    background: rgba(0, 185, 255, 0.26);
    filter: blur(65px);
}

.hero-visual-backdrop {
    position: absolute;
    z-index: -2;
    inset: 8% 3% 9%;
    border: 1px solid rgba(0, 185, 255, 0.18);
    border-radius: 2.5rem;
    background:
        linear-gradient(145deg, rgba(0, 185, 255, 0.11), rgba(255, 255, 255, 0.025) 55%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 35px 75px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    backdrop-filter: blur(4px);
}

.hero-visual-orbit {
    position: absolute;
    z-index: -1;
    top: 0;
    right: -1rem;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(0, 185, 255, 0.25);
    border-radius: 50%;
}

.hero-visual-orbit::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #00b9ff;
    box-shadow: 0 0 22px rgba(0, 185, 255, 0.9);
}

.hero-visual-image {
    position: relative;
    display: block;
    width: 110%;
    max-width: none;
    margin-left: -5%;
    filter:
        drop-shadow(0 28px 28px rgba(0, 0, 0, 0.38))
        drop-shadow(0 0 18px rgba(0, 185, 255, 0.08));
    transform: translateY(0);
    animation: hero-visual-float 6s ease-in-out infinite;
}

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

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

.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #00b9ff 0%, #0099cc 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 185, 255, 0.4);
}

.pricing-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: scale(1.05);
}

.pricing-card.featured {
    border: 2px solid #00b9ff;
    position: relative;
}

.pricing-card.featured::before {
    content: "Mais Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00b9ff;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #00b9ff;
}

.erp-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(0, 185, 255, 0.08), transparent 24rem),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.erp-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8rem;
    width: 26rem;
    height: 26rem;
    border: 1px solid rgba(0, 185, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.erp-showcase {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
}

.erp-preview {
    position: relative;
    padding-bottom: 2rem;
}

.erp-preview-glow {
    position: absolute;
    inset: 10% 5% 0;
    border-radius: 2rem;
    background: rgba(0, 185, 255, 0.18);
    filter: blur(45px);
}

.erp-preview-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
}

.erp-preview-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}

.erp-preview-badge {
    position: absolute;
    right: -1rem;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(0, 185, 255, 0.18);
    border-radius: 0.85rem;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    font-size: 0.82rem;
    backdrop-filter: blur(10px);
}

.erp-preview-badge strong {
    display: block;
    color: #252525;
}

.erp-preview-badge-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    place-items: center;
    border-radius: 0.65rem;
    color: #fff;
    background: #00b9ff;
}

.erp-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    margin-top: 2.25rem;
}

.erp-module {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
}

.erp-module-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    place-items: center;
    border: 1px solid rgba(0, 185, 255, 0.25);
    border-radius: 0.55rem;
    color: #00b9ff;
    background: rgba(0, 185, 255, 0.06);
}

.erp-module-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.erp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.25rem;
    padding: 0.9rem 1.25rem;
    border-radius: 0.65rem;
    color: #fff;
    background: linear-gradient(135deg, #00b9ff 0%, #0099cc 100%);
    box-shadow: 0 10px 25px rgba(0, 185, 255, 0.22);
    font-weight: 600;
    transition: gap 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.erp-cta:hover {
    gap: 1rem;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 185, 255, 0.32);
}

.erp-process {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 3rem;
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.erp-process-intro h3 {
    margin-top: 0.75rem;
    color: #252525;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.erp-steps {
    display: flex;
    min-width: 0;
}

.erp-step {
    position: relative;
    display: grid;
    flex: 1;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    min-width: 0;
}

.erp-step-number {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    color: #252525;
    background: #fff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.06);
    font-size: 0.85rem;
    font-weight: 700;
}

.erp-step:first-child .erp-step-number {
    border-color: #00b9ff;
    color: #00b9ff;
    box-shadow: 0 5px 18px rgba(0, 185, 255, 0.15);
}

.erp-step-line {
    width: calc(100% - 0.75rem);
    height: 1px;
    margin-left: 0.75rem;
    background: #d1d5db;
}

.erp-step p {
    grid-column: 1 / -1;
    margin-top: 0.9rem;
    padding-right: 0.75rem;
    color: #4b5563;
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .erp-showcase {
        grid-template-columns: 1fr;
    }

    .erp-preview {
        max-width: 48rem;
        margin: 0 auto;
    }

    .erp-content {
        max-width: 48rem;
    }

    .erp-process {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .erp-preview-badge {
        right: 0.75rem;
    }

    .erp-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erp-steps {
        flex-direction: column;
        gap: 0;
    }

    .erp-step {
        grid-template-columns: 3rem 1fr;
        grid-template-rows: auto;
    }

    .erp-step-line {
        position: absolute;
        top: 3rem;
        left: 1.5rem;
        width: 1px;
        height: 2.5rem;
        margin: 0;
    }

    .erp-step p {
        grid-column: 2;
        margin: 0;
        padding: 0 0 2.5rem 1rem;
        font-size: 0.9rem;
    }
}

.cases-section {
    background:
        radial-gradient(circle at 85% 10%, rgba(0, 185, 255, 0.08), transparent 24rem),
        #fff;
}

.cases-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cases-all-link,
.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #00b9ff;
    font-weight: 600;
    transition: gap 0.3s ease, color 0.3s ease;
}

.cases-all-link:hover,
.case-link:hover {
    gap: 0.95rem;
    color: #0099cc;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.case-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 35px rgba(37, 37, 37, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.case-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0, 185, 255, 0.35);
    box-shadow: 0 22px 45px rgba(0, 185, 255, 0.12);
}

.case-cover {
    position: relative;
    height: 13rem;
    overflow: hidden;
    background: #111827;
}

.case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 44% 50%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-cover-orders img {
    object-position: 30% 45%;
}

.case-cover-analytics img {
    object-position: 75% 45%;
}

.case-card:hover .case-cover img {
    transform: scale(1.06);
}

.case-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 24, 38, 0.94), rgba(16, 24, 38, 0.45) 58%, rgba(16, 24, 38, 0.25));
}

.case-brand {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.04em;
}

.case-brand strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.case-brand-mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.65rem;
    color: #fff;
    background: rgba(0, 185, 255, 0.25);
    font-size: 1.35rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    color: #252525;
    font-size: 1.25rem;
    font-weight: 700;
}

.case-category {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.case-description {
    min-height: 4.5rem;
    margin-top: 1rem;
    color: #6b7280;
    line-height: 1.55;
}

.case-link {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .cases-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .case-cover {
        height: 12rem;
    }
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

.testimonials-section {
    position: relative;
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 185, 255, 0.16), transparent 30rem),
        #252525;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image: radial-gradient(rgba(0, 185, 255, 0.35) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to left, black, transparent 65%);
}

.testimonials-carousel {
    position: relative;
}

.testimonials-viewport {
    overflow: hidden;
    border-radius: 1.5rem;
}

.testimonials-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.testimonial-card {
    position: relative;
    min-height: 360px;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 185, 255, 0.2);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.testimonial-quote {
    position: absolute;
    top: -2.5rem;
    right: 1.5rem;
    color: rgba(0, 185, 255, 0.12);
    font-size: 13rem;
    font-family: Georgia, serif;
    line-height: 1;
    user-select: none;
}

.testimonial-stars {
    position: relative;
    margin-bottom: 1.5rem;
    color: #00b9ff;
    font-size: 1rem;
    letter-spacing: 0.25em;
}

.testimonial-card blockquote {
    position: relative;
    max-width: 58rem;
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.55;
}

.testimonial-author {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.25rem;
}

.testimonial-avatar {
    display: grid;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(0, 185, 255, 0.35);
    border-radius: 1rem;
    color: #00b9ff;
    background: rgba(0, 185, 255, 0.1);
    font-weight: 700;
}

.testimonial-name {
    color: #fff;
    font-weight: 700;
}

.testimonial-role {
    margin-top: 0.15rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    transition: width 0.3s ease, background 0.3s ease;
}

.testimonial-dot.active {
    width: 2rem;
    background: #00b9ff;
}

.testimonial-arrow {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
    border-color: #00b9ff;
    color: #00b9ff;
    background: rgba(0, 185, 255, 0.1);
    transform: translateY(-2px);
    outline: none;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-height: 390px;
        padding: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual-image {
        animation: none;
    }

    .testimonials-track {
        transition: none;
    }
}
