/* Corvex — complements Tailwind (bundled locally) */
[x-cloak] {
    display: none !important;
}

:root {
    --cv-bg: #0b0b0f;
    --cv-line: rgba(255, 255, 255, 0.07);
    --cv-line-soft: rgba(255, 255, 255, 0.035);
    --cv-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --cv-duration: 0.35s;
}

html,
body {
    background-color: var(--cv-bg);
    overflow-x: hidden;
}

body {
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        radial-gradient(110% 70% at 50% -10%, rgba(124, 58, 237, 0.16), transparent 55%),
        radial-gradient(70% 50% at 88% 18%, rgba(59, 130, 246, 0.12), transparent 56%),
        radial-gradient(65% 50% at 12% 70%, rgba(124, 58, 237, 0.08), transparent 58%);
    opacity: 1;
}

body::after {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.33;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.66));
}

.main-page-spot-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124, 58, 237, 0.12), transparent 70%);
}

/* Seamless horizontal rules (fade at edges — no harsh cutoffs) */
.cv-seam-top {
    position: relative;
}

.cv-seam-top::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--cv-line-soft) 6%,
        var(--cv-line) 45%,
        var(--cv-line) 55%,
        var(--cv-line-soft) 94%,
        transparent 100%
    );
    pointer-events: none;
}

.cv-seam-bottom {
    position: relative;
}

.cv-seam-bottom::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--cv-line-soft) 6%,
        var(--cv-line) 45%,
        var(--cv-line) 55%,
        var(--cv-line-soft) 94%,
        transparent 100%
    );
    pointer-events: none;
}

.cv-seam-inner {
    position: relative;
}

.cv-seam-inner::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.06) 35%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.06) 65%,
        transparent
    );
    pointer-events: none;
}

.cv-seam-left {
    border-left: none !important;
    position: relative;
    padding-left: 2rem;
}

.cv-seam-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.12) 25%,
        rgba(255, 255, 255, 0.08) 75%,
        transparent
    );
}

@media (min-width: 768px) {
    .cv-seam-left {
        padding-left: 2.5rem;
    }
}

/* Background is intentionally static: no decorative motion. */

.site-header,
#main-content,
#main-content section,
footer {
    position: relative;
    z-index: 1;
}

/* Homepage body sections — one continuous band (no harsh cuts) */
.home-sections-flow {
    position: relative;
}

@media (prefers-reduced-motion: no-preference) {
    .home-sections-flow {
        animation: home-sections-enter 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.08s;
    }

    @keyframes home-sections-enter {
        from {
            opacity: 0.88;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.home-page-bg .home-content-section + .home-content-section::before {
    content: '';
    display: block;
    width: min(72rem, calc(100% - 3rem));
    margin: 0 auto 1.35rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.045) 18%,
        rgba(255, 255, 255, 0.085) 50%,
        rgba(255, 255, 255, 0.045) 82%,
        transparent 100%
    );
}

.home-page-bg .home-content-section .card-system,
.home-page-bg .home-content-section .cv-glass-panel {
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        box-shadow 0.55s ease;
}

.systems-grid > .card-system:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 32rem;
    width: 100%;
}

@media (min-width: 768px) {
    .workforce-grid > .card-system:only-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 1.5rem) / 2) !important;
        max-width: none !important;
        min-width: calc((100% - 1.5rem) / 2);
    }
}

.workforce-grid > .card-system:only-child {
    width: 100%;
    max-width: none;
}

.systems-grid > .card-system {
    height: 100%;
    min-height: 340px;
}

@media (min-width: 1024px) {
    .systems-grid > .card-system:last-child:nth-child(3n + 1) {
        grid-column: 2 / span 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-sections-flow {
        animation: none;
    }

    .home-page-bg .home-content-section .card-system,
    .home-page-bg .home-content-section .cv-glass-panel {
        transition: none;
    }
}

.site-header {
    border: 0;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    transition:
        background-color 0.28s var(--cv-ease-out),
        border-color 0.28s var(--cv-ease-out),
        backdrop-filter 0.28s var(--cv-ease-out);
}

.site-header.header-scrolled {
    background: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.system-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    align-self: flex-start;
    border-radius: 9999px;
    border: 1px solid;
    padding: 0.3125rem 0.9375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.badge-it-operations {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.4);
}

.badge-communication {
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.14);
    border-color: rgba(34, 211, 238, 0.38);
}

.badge-retail-pos {
    color: #f9a8d4;
    background: rgba(190, 24, 93, 0.14);
    border-color: rgba(244, 114, 182, 0.38);
}

.badge-operations {
    color: #86efac;
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(74, 222, 128, 0.38);
}

.badge-workflow-approvals {
    color: #c4b5fd;
    background: rgba(109, 40, 217, 0.14);
    border-color: rgba(167, 139, 250, 0.4);
}

.badge-task-execution {
    color: #fdba74;
    background: rgba(194, 65, 12, 0.14);
    border-color: rgba(251, 146, 60, 0.38);
}

.badge-workforce-management {
    color: #f5d0fe;
    background: rgba(162, 28, 175, 0.14);
    border-color: rgba(232, 121, 249, 0.38);
}

.text-gradient {
    background: linear-gradient(120deg, #c4b5fd 0%, #a78bfa 35%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation — subtle underline reveal */
.nav-link {
    position: relative;
    transition:
        color var(--cv-duration) var(--cv-ease-out),
        opacity var(--cv-duration) var(--cv-ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.65), rgba(96, 165, 250, 0.45));
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition:
        opacity 0.3s var(--cv-ease-out),
        transform 0.35s var(--cv-ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-link.text-white::after {
    opacity: 0.85;
    transform: scaleX(1);
}

/* Cards */
.card-system {
    transition:
        transform var(--cv-duration) var(--cv-ease-out),
        box-shadow 0.45s ease,
        border-color var(--cv-duration) ease,
        background-color 0.4s ease;
}

.card-system:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.12),
        0 24px 48px -24px rgba(124, 58, 237, 0.2),
        0 0 80px -20px rgba(59, 130, 246, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
}

.platform-system {
    transition:
        transform 0.32s var(--cv-ease-out),
        border-color 0.32s ease,
        box-shadow 0.38s ease,
        background-color 0.35s ease;
    min-height: 357px;
    position: relative;
}

@media (min-width: 768px) {
    .platform-core-grid > .platform-system:last-child:nth-child(odd),
    .advanced-systems-grid > .platform-system:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 1.5rem) / 2);
        max-width: none;
    }
}

.platform-system:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.028);
    box-shadow: 0 16px 38px -26px rgba(124, 58, 237, 0.25);
}

.platform-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    width: 100%;
    border-radius: 16px;
    padding: 0.85rem;
}

.platform-logo-shell--white {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.88);
}

.platform-logo-shell--gray {
    background: rgba(56, 61, 70, 0.88);
    border: 1px solid rgba(130, 139, 156, 0.38);
}

.platform-logo-shell--black {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-logo-img {
    height: 61px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.platform-price-tag {
    position: absolute;
    right: 1.75rem;
    bottom: 1.75rem;
    max-width: min(21.84rem, calc(100% - 3.5rem));
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(59, 130, 246, 0.92));
    border: 1px solid rgba(196, 181, 253, 0.45);
    box-shadow: 0 14px 32px -18px rgba(124, 58, 237, 0.55);
    padding: 0.672rem 0.84rem;
    color: #ffffff;
}

.platform-price-tag__value {
    font-size: 0.798rem;
    font-weight: 700;
    line-height: 1.25;
}

.platform-price-tag__meta {
    margin-top: 0.252rem;
    font-size: 0.651rem;
    line-height: 1.35;
    color: rgba(243, 244, 246, 0.95);
}

@media (max-width: 1023px) {
    .platform-price-tag {
        position: static;
        margin-top: 1.1rem;
        max-width: 100%;
    }
}

.advanced-system {
    border-color: rgba(124, 92, 255, 0.18);
}

.advanced-system-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(196, 181, 253, 0.55);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.72), rgba(79, 70, 229, 0.7));
    color: rgba(250, 250, 255, 0.98);
    padding: 0.4rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    box-shadow: 0 10px 26px -16px rgba(124, 58, 237, 0.75);
}

.advanced-price-block {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0.95rem;
}

.advanced-price-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(250, 250, 255, 0.95);
}

.advanced-price-meta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.52);
}

.testimonial-block {
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.testimonial-block:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
}

.testimonial-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-track {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0.35rem 0.6rem;
}

.testimonial-card {
    min-width: 320px;
    max-width: 420px;
    width: min(88vw, 420px);
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    scroll-snap-align: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(124, 92, 255, 0.4);
}

.testimonial-card.inactive {
    opacity: 0.4;
    transform: scale(0.95);
}

.cv-glass-panel {
    transition:
        border-color var(--cv-duration) ease,
        box-shadow 0.45s ease,
        background-color 0.45s ease,
        transform 0.45s var(--cv-ease-out);
}

.cv-glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.06),
        0 20px 50px -28px rgba(124, 58, 237, 0.15);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #2563eb 100%);
    color: white;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 8px 32px -8px rgba(124, 58, 237, 0.45);
    transition:
        opacity 0.28s var(--cv-ease-out),
        transform 0.28s var(--cv-ease-out),
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.btn-primary:hover {
    opacity: 0.98;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 12px 36px -8px rgba(124, 58, 237, 0.55);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.28s var(--cv-ease-out),
        box-shadow 0.35s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px -12px rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ecfdf5;
    background: linear-gradient(145deg, #059669 0%, #047857 45%, #065f46 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 10px 36px -12px rgba(16, 185, 129, 0.45);
    transition:
        transform 0.28s var(--cv-ease-out),
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 14px 40px -10px rgba(16, 185, 129, 0.55);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.field {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: white;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.field::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.045);
}

textarea.field {
    min-height: 8rem;
    resize: vertical;
}

.timeline-line {
    position: absolute;
    left: 0.55rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(167, 139, 250, 0.5), rgba(59, 130, 246, 0.25), transparent);
}

footer a {
    transition: color 0.3s var(--cv-ease-out), opacity 0.3s ease;
}

/* Responsive scaling pass (desktop -> laptop) */
:root {
    --cv-container-max: 1280px;
}

#main-content .mx-auto.max-w-6xl,
#main-content .mx-auto.max-w-7xl,
#main-content .mx-auto.max-w-4xl,
#main-content .mx-auto.max-w-3xl,
footer .mx-auto,
.site-header > div {
    width: min(100%, var(--cv-container-max));
}

.systems-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.platform-core-grid,
.advanced-systems-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .platform-core-grid,
    .advanced-systems-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card-system,
.platform-system {
    min-width: 0;
}

.systems-grid > *,
.platform-core-grid > *,
.advanced-systems-grid > * {
    min-width: 0;
}

.card-system p,
.card-system li,
.platform-system p,
.platform-system li {
    overflow-wrap: break-word;
    word-break: break-word;
}

.card-system > div,
.platform-system > div {
    min-width: 0;
}

.hero-section h1,
#main-content section h1 {
    font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem);
}

#main-content section h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.25vw, 2rem);
}

#main-content section p,
#main-content section li {
    max-width: min(100%, 72ch);
}

.card-system,
.platform-system,
.cv-glass-panel {
    min-width: 0;
}

@media (max-width: 1440px) {
    :root {
        --cv-container-max: 1240px;
    }

    .platform-system {
        min-height: 400px;
    }

    .platform-price-tag {
        position: static;
        margin-top: 1.1rem;
        max-width: 100%;
    }

    .platform-system {
        min-height: 0;
    }

}

@media (max-width: 1280px) {
    :root {
        --cv-container-max: 1180px;
    }

    .site-header > div,
    #main-content .mx-auto.max-w-6xl,
    #main-content .mx-auto.max-w-7xl,
    #main-content .mx-auto.max-w-4xl,
    #main-content .mx-auto.max-w-3xl,
    footer .mx-auto {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #main-content section {
        padding-top: clamp(3.25rem, 3vw, 4.5rem);
        padding-bottom: clamp(3.25rem, 3vw, 4.5rem);
    }

    .platform-system {
        min-height: 323px;
    }

    .platform-price-tag {
        margin-top: 1rem;
    }
}

@media (min-width: 1280px) {
    .platform-core-grid .platform-system,
    .advanced-systems-grid .platform-system {
        gap: 0.85rem;
        padding: 1.6rem;
        padding-bottom: 1.7rem;
    }

    .platform-core-grid .platform-system p,
    .advanced-systems-grid .platform-system p {
        font-size: 0.85em;
        line-height: 1.45;
    }

    .platform-core-grid .platform-system ul,
    .advanced-systems-grid .platform-system ul {
        margin-top: 0.85rem;
        font-size: 0.85em;
        line-height: 1.4;
    }
}

@media (max-width: 1024px) {
    :root {
        --cv-container-max: 100%;
    }

    .site-header > div,
    #main-content .mx-auto.max-w-6xl,
    #main-content .mx-auto.max-w-7xl,
    #main-content .mx-auto.max-w-4xl,
    #main-content .mx-auto.max-w-3xl,
    footer .mx-auto {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .systems-grid,
    .platform-core-grid,
    .advanced-systems-grid {
        gap: clamp(1rem, 2vw, 1.35rem);
    }

    /* Keep first section below fixed header on mobile/tablet */
    #main-content > section:first-of-type,
    #main-content > div > section:first-of-type {
        padding-top: calc(6.75rem + env(safe-area-inset-top)) !important;
    }

    /* Prevent mid-word hero title breaks on small screens */
    .hero-inner h1,
    .hero-inner [data-hero-type] {
        word-break: normal;
        overflow-wrap: normal;
        white-space: normal;
    }

    .hero-inner .hero-type-char {
        display: inline;
    }

.hero-inner .hero-type-space {
    display: inline;
    white-space: pre;
}
}
