/* ============================================================
    INDEX PAGE - STRUCTURE MAP
    1) Floating cursor and helper UI
    2) Header/menu/preloader
    3) Theme and base typography
    4) Video engine and sections
    5) Buttons/cards/components
    6) Reveal/stat animations
    7) Minimal video overlay
    8) Step flow system
    9) Responsive rules
    10) About page styles
    ============================================================ */

/* ===== 1) Floating cursor and helper UI ===== */
/* Floating Cursor Message */
.cursor-message {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    background: var(--sapios-orange, #FF4D00);
    color: var(--sapios-darkk, #0A0A1A);
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(10,10,26,0.22), 0 4px 12px rgba(255,77,0,0.22);
    opacity: 0;
    transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    will-change: opacity, transform;
    transform: translate3d(0, 0, 0);
}
.page-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 160;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.page-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #ff4d00 0%, #ff8d4a 55%, #ff4d00 100%);
    will-change: transform;
}
.cursor-message.visible {
    opacity: 1;
    transition: opacity 0.2s var(--easing), transform 0.2s var(--easing);
}
.cursor-message.fading-out {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity 0.95s var(--easing), transform 0.95s var(--easing);
}
/* Clients logo grid (section data-video=7) */
.clients-grid-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 32px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-items: center;
}
.clients-grid img {
    max-width: 180px;
    max-height: 90px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px #0003);
    opacity: 0.92;
    background: none;
    border-radius: 12px;
    transition: transform 0.3s, opacity 0.3s;
}
.clients-grid img:hover {
    opacity: 1;
    transform: scale(1.12);
    background: none;
}
@media (max-width: 1199px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 16px;
        max-width: 98vw;
    }
    .clients-grid img {
        max-width: 140px;
        max-height: 70px;
    }
}
@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 8px;
    }
    .clients-grid img {
        max-width: 90px;
        max-height: 44px;
    }
}

/* Espaçamento entre stat cards na seção de resultados em telas pequenas */
@media (max-width: 575.98px) {
    .scroll-section[data-video="5"] .row > .col-md-4 {
        margin-bottom: 18px;
    }
    .scroll-section[data-video="5"] .row > .col-md-4:last-child {
        margin-bottom: 0;
    }
}
/* Cards da segunda seção: ícone ao lado do texto em telas pequenas */
@media (max-width: 575.98px) {
    .scroll-section[data-video="1"] .card-glass.tub {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding-top: 16px;
        padding-bottom: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .scroll-section[data-video="1"] .card-glass.tub .ph {
        margin-bottom: 0;
        margin-right: 8px;
        font-size: 2.1rem;
        min-width: 2.1rem;
        min-height: 2.1rem;
        align-self: flex-start;
    }
    .scroll-section[data-video="1"] .card-glass.tub h3,
    .scroll-section[data-video="1"] .card-glass.tub p {
        margin-bottom: 0;
    }
    .scroll-section[data-video="1"] .card-glass.tub h3 {
        font-size: 1.08rem;
        margin-right: 0;
        margin-bottom: 2px;
    }
    .scroll-section[data-video="1"] .card-glass.tub p {
        font-size: 0.97rem;
        line-height: 1.5;
    }
    .scroll-section[data-video="1"] .card-glass.tub {
        min-height: 0;
    }
    .scroll-section[data-video="1"] .card-glass.tub > .ph + h3,
    .scroll-section[data-video="1"] .card-glass.tub > .ph + h3 + p {
        display: block;
    }
    .scroll-section[data-video="1"] .card-glass.tub > .ph + h3 + p {
        margin-top: 2px;
    }
}
/* ===== Helper mobile adjustments ===== */
/* Ajustes mobile básicos */
@media (max-width: 575.98px) {
    .hero-btns {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hero-btns .btn-sapios,
    .hero-btns .btn-outline-white {
        width: 100%;
        display: block;
        text-align: center;
    }
    .logo-marquee img {
        height: 28px;
    }
    .container,
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
/* ===== Generic icon/text helpers ===== */
/* Ícone play alinhado nos botões 'Watch how it works' */
.play-icon {
    font-size: 24px !important;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    top: -2px;
}
/* Todos os <p> da index: peso 300 e tamanho 1.3rem */
body p {
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
}
/* Logo Marquee (faixa animada de logos) */
.logo-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 12px 0 8px 0;
}
.logo-marquee {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: marquee-logos 32s linear infinite;
    will-change: transform;
}
.logo-marquee img {
    height: 56px;
    opacity: 0.8;
    transition: transform 0.5s var(--easing), opacity 0.3s var(--easing);
    filter: drop-shadow(0 2px 8px #0004);
    cursor: pointer;
}
.logo-marquee img:hover {
    opacity: 1;
    transform: scale(1.12);
    z-index: 2;
}
@keyframes marquee-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pausa animação ao hover */
.logo-marquee-wrapper:hover .logo-marquee {
    animation-play-state: paused;
}
.scroll-section.fading-out {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-80px) scale(0.98);
    transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
    z-index: 2;
}
/* ===== 2) Header, menu and preloader ===== */
/* Header fixo */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    background: rgba(10,10,26,0);
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0);
    transition: transform 0.5s var(--easing), opacity 0.5s var(--easing);
    will-change: transform, opacity;
}
#site-header.hide {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    height: 32px;
    width: auto;
    display: block;
}
.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.language-switch-separator {
    color: rgba(255,255,255,0.38);
    font-size: 0.9rem;
    line-height: 1;
}
.language-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.25s var(--easing), opacity 0.25s var(--easing);
}
.language-link:hover,
.language-link:focus-visible,
.language-link.is-active {
    color: #fff;
    opacity: 1;
    outline: none;
}
.menu-toggle {
    width: 56px;
    height: 56px;
    border: 0;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: pointer;
    transition: transform 0.35s var(--easing), background 0.35s var(--easing), box-shadow 0.35s var(--easing);
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: none;
    box-shadow: none;
    outline: none;
    filter: brightness(1.3) drop-shadow(0 2px 8px rgba(255,255,255,0.08));
    transform: scale(1.08);
}
.menu-toggle-line {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.35s var(--easing), opacity 0.25s var(--easing), background 0.35s var(--easing);
}
.menu-open .menu-toggle-line {
    background: #fff;
}
.menu-open .menu-toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.site-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sapios-darkk);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s var(--easing), visibility 0.5s var(--easing);
}
.site-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transform: translateY(28px) scale(0.98);
    transition: transform 0.45s var(--easing);
}
.site-menu-link {
    min-width: 260px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: none;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem);
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: color 0.25s var(--easing), filter 0.25s var(--easing), transform 0.25s var(--easing);
}
.site-menu-link:hover,
.site-menu-link:focus-visible {
    background: none;
    color: #fff;
    filter: brightness(1.3) drop-shadow(0 2px 8px rgba(255,255,255,0.08));
    transform: scale(1.04);
    outline: none;
}
.disabled {
    opacity: 0.33333;
    cursor: not-allowed;
    pointer-events: none;
    filter: none;
    transform: none;
}
.menu-open .site-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.menu-open .site-menu-panel {
    transform: translateY(0) scale(1);
}
.menu-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .header-inner {
        padding: 12px 16px;
    }
    .header-actions {
        gap: 10px;
    }
    .language-switch {
        gap: 6px;
    }
    .language-link {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }
    .menu-toggle {
        width: 48px;
        height: 48px;
    }
    .site-menu-link {
        min-width: min(86vw, 320px);
    }
}

/* Preloader overlay */
#preloader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,26,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}
#preloader-overlay img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px #0008);
}
/* ===== 3) Theme tokens and base primitives ===== */
:root {
    --sapios-orange: #FF4D00;
    --sapios-dark: hsl(240, 51%, 15%);
    --sapios-darkk: hsl(240, 71%, 3%);
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --viewport-height: 100svh;
}



body {
    background-color: var(--sapios-dark);
    color: white;
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.45;
}

.text-serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; }
.text-sapios { color: var(--sapios-orange); }
.fw-900 { font-weight: 700; }
.bg-darkk{ background: var(--sapios-darkk);}

/* ===== 4) Video engine and section scaffold ===== */
/* Video Engine */
#video-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: var(--viewport-height);
    min-height: var(--viewport-height);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(10,10,26,0.5) 0%, rgba(10,10,26,0.8) 100%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
    transition: opacity 1.5s var(--easing);
}


.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s var(--easing);
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
    mix-blend-mode: lighten;
}

.bg-video.active { opacity: 1; }

/* Sections */
.scroll-section {
    min-height: 100vh;
    min-height: var(--viewport-height);
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

html.mobile-light-media .cursor-message {
    display: none;
}

html.mobile-light-media .video-overlay {
    background: linear-gradient(180deg, rgba(10,10,26,0.28) 0%, rgba(10,10,26,0.62) 100%);
    mix-blend-mode: normal;
}

html.mobile-light-media .bg-video {
    filter: brightness(0.82) contrast(1.02) saturate(1.02);
    mix-blend-mode: normal;
}

html.mobile-light-media .site-menu-overlay,
html.mobile-light-media .card-glass,
html.mobile-light-media .p-4.border-start,
html.mobile-light-media .flow-step,
html.mobile-light-media .section-cards-preview-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ===== 5) UI components ===== */
/* UI Components */

/* Botões sofisticados */

.btn-sapios, .btn-outline-white {
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 100px;
    padding: 16px 40px;
    border: 1px solid rgba(255,255,255,0.08); /* borda super sutil */
    outline: none;
    text-transform: none;
    letter-spacing: 0em;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    /* Transições world-class, suaves e com delays para hover/focus */
    transition:
        background 1.55s cubic-bezier(.4,1,.3,1) 0s,
        color 1.32s cubic-bezier(.4,1,.3,1) 0s,
        box-shadow 0.45s cubic-bezier(.4,1,.3,1) 0s,
        border-color 1.45s cubic-bezier(.4,1,.3,1) 0s,
        transform 1.28s cubic-bezier(.4,1,.3,1) 0s,
        filter 0.32s cubic-bezier(.4,1,.3,1) 0s;
}

/* Efeito de luz sutil ao passar o mouse */
.btn-sapios::before, .btn-outline-white::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180%;
    height: 180%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.01) 80%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 1.5s var(--easing), transform 3s var(--easing);
    z-index: 1;
}
.btn-sapios:hover::before, .btn-outline-white:hover::before,
.btn-sapios:focus::before, .btn-outline-white:focus::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Ripple microinteraction */
.btn-sapios:active::after, .btn-outline-white:active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: btn-ripple 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
@keyframes btn-ripple {
    0% { width: 0; height: 0; opacity: 0.7; }
    70% { width: 180%; height: 180%; opacity: 0.25; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

.btn-sapios {
    background: linear-gradient(90deg, #FF4D00 0%, #FF7A29 100%);
    color: #fff;
    border: 1px solid rgba(255,77,0,0.13);
    text-shadow: 1px 2px 0px rgba(220, 88, 0, 0.509);
}
.btn-sapios:hover, .btn-sapios:focus {
    background: linear-gradient(90deg, #FF7A29 0%, #FF4D00 100%);
    color: #fff;
    box-shadow: 0 4px 32px 0 rgba(255,77,0,0.18);
    border-color: #FF7A29;
    transform: translateY(-2px) scale(1.045);
    filter: brightness(1.08);
}
.btn-sapios:active {
    background: linear-gradient(90deg, #FF4D00 0%, #FF7A29 100%);
    box-shadow: 0 1px 6px 0 rgba(255,77,0,0.10);
    border-color: #FF4D00;
    transform: scale(0.98);
}
.btn-sapios:disabled, .btn-sapios[disabled] {
    background: linear-gradient(90deg, #bdbdbd 0%, #e0e0e0 100%);
    color: #888;
    border-color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.3) brightness(0.92);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}
.btn-outline-white:hover, .btn-outline-white:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: #FF4D00;
    box-shadow: 0 4px 32px 0 rgba(255,255,255,0.10);
    transform: translateY(-2px) scale(1.045);
    filter: brightness(1.08);
}
.btn-outline-white:active {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: #FF4D00;
    box-shadow: 0 1px 6px 0 rgba(255,255,255,0.08);
    transform: scale(0.98);
}
.btn-outline-white:disabled, .btn-outline-white[disabled] {
    background: transparent;
    color: #888;
    border-color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.3) brightness(0.92);
}

.btn-sapios {
    background: linear-gradient(90deg, #FF4D00 0%, #FF7A29 100%);
    color: #fff;
    border: none;
}
.btn-sapios:hover, .btn-sapios:focus {
    background: linear-gradient(90deg, #FF7A29 0%, #FF4D00 100%);
    color: #fff;
    box-shadow: 0 4px 32px 0 rgba(255,77,0,0.18);
    transform: translateY(-2px) scale(1.045);
    filter: brightness(1.08);
}
.btn-sapios:active {
    background: linear-gradient(90deg, #FF4D00 0%, #FF7A29 100%);
    box-shadow: 0 1px 6px 0 rgba(255,77,0,0.10);
    transform: scale(0.98);
}
.btn-sapios:disabled, .btn-sapios[disabled] {
    background: linear-gradient(90deg, #bdbdbd 0%, #e0e0e0 100%);
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.3) brightness(0.92);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}
.btn-outline-white:hover, .btn-outline-white:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: #FF4D00;
    box-shadow: 0 4px 32px 0 rgba(255,255,255,0.10);
    transform: translateY(-2px) scale(1.045);
    filter: brightness(1.08);
}
.btn-outline-white:active {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: #FF4D00;
    box-shadow: 0 1px 6px 0 rgba(255,255,255,0.08);
    transform: scale(0.98);
}
.btn-outline-white:disabled, .btn-outline-white[disabled] {
    background: transparent;
    color: #888;
    border-color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.3) brightness(0.92);
}

/* ===== Card system ===== */
/* Card Glass Affordance */
/* Card icon: grande, alinhado, duotone, animado */

/* Card Glass - layout fixo para ícone, título e texto */
.card-glass {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-top: 40px;
    padding-bottom: 40px; 
}
.card-glass.tub .ph {
    color: var(--sapios-orange) !important;
    font-variation-settings: 'wght' 700, 'opsz' 64;
    font-size: 3.2rem;
    min-width: 3.2rem;
    min-height: 3.2rem;
    --phosphor-primary: var(--sapios-orange);
    --phosphor-secondary: #fff2;
    transition: transform 0.5s var(--easing), filter 0.5s var(--easing);
    filter: drop-shadow(0 2px 12px #FF4D0033);
    will-change: transform, filter;
    /* animação só ao hover, não contínua */
    animation: none;
    margin-bottom: 18px;
}
.card-glass .ph {
    color: var(--sapios-orange) !important;
    font-variation-settings: 'wght' 700, 'opsz' 64;
    font-size: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    --phosphor-primary: var(--sapios-orange);
    --phosphor-secondary: #fff2;
    transition: transform 0.5s var(--easing), filter 0.5s var(--easing);
    filter: drop-shadow(0 2px 12px #FF4D0033);
    will-change: transform, filter;
    /* animação só ao hover, não contínua */
    animation: none;
    margin-bottom: 18px;
}
.card-glass:hover .ph {
    animation: icon-bounce 0.7s cubic-bezier(.4,1,.3,1) 1;
    transform: scale(1.12) rotate(-4deg);
    filter: drop-shadow(0 8px 32px #FF4D0066) brightness(1.10);
}
@keyframes icon-bounce {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    60% { transform: translateY(-8px) scale(1.08) rotate(-2deg); }
    100% { transform: translateY(0) scale(1.12) rotate(-4deg); }
}
.card-glass h3 {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Zalando Sans', Arial, sans-serif;
    margin: 0 0 12px 0;
    line-height: 1.1;
    display: block;
}
.card-glass h4 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Zalando Sans', Arial, sans-serif;
    margin: 0 0 10px 0;
    line-height: 1.15;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-weight: 500;
}

.card-glass p {
    font-size: 1.05rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.55;
}
@media (max-width: 991px) {
    .card-glass {
        min-height: unset;
        height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
        padding-left: 12px;
        padding-right: 12px;
        align-items: stretch;
        justify-content: flex-start;
    }
    .card-glass .ph {
        font-size: 2.2rem;
        min-width: 2.2rem;
        min-height: 2.2rem;
    }
    .card-glass h3 {
        font-size: 1.1rem;
    }
    .card-glass p {
        font-size: 1rem;
    }
}
.card-glass, .p-4.border-start, .flow-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: .5px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 4px 32px 0 rgba(10,10,26,0.10);
    border-radius: 24px;
    padding: 32px 28px;
    height: 100%;
    transition: box-shadow 0.35s var(--easing), border-color 0.35s var(--easing), background 0.35s var(--easing), transform 0.25s var(--easing);
    position: relative;
    overflow: hidden;
}
.card-glass:hover, .p-4.border-start:hover, .flow-step:hover {
    box-shadow: 0 8px 48px 0 rgba(255,77,0,0.13), 0 2px 16px 0 rgba(10,10,26,0.13);
    border-color: #FF7A29;
    background: rgba(255,255,255,0.09);
    transform: translateY(-2px) scale(1.025);
    z-index: 2;
}
.flow-step {
    min-width: 180px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 8px 0;
    cursor: pointer;
}

/* ===== Sapiotech formula and preview cards ===== */
/* Sapiotech Formula */

.sapiotech-anim-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 1.45rem;
    font-weight: 700;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.sapiotech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: #fff;
    font-size: 1.25em;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
    font-weight: 700;
}
.sapiotech-op {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1.3em;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
    font-weight: 400;
}
.sapiotech-label {
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 0.01em;
}
.sapiotech-item i, .sapiotech-op i {
    color: var(--sapios-orange);
    font-size: 1.2em;
    margin-right: 0.18em;
}
.sapiotech-item[data-anim].active, .sapiotech-op[data-anim].active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@media (max-width: 991px) {
    .sapiotech-anim-simple {
        font-size: 1.1rem;
        gap: 10px;
    }
    .sapiotech-item, .sapiotech-op {
        font-size: 1em;
    }
}

.sapiotech-card {
    cursor: pointer;
}

.section-cards-preview-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.section-cards-preview-stack {
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-cards-preview-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    border-radius: 24px;
    overflow: hidden;
    border: .5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(10, 10, 26, 0.3);
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-cards-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s var(--easing);
    filter: brightness(0.82) saturate(1.08);
}

.section-cards-preview-video.active {
    opacity: 1;
}

.section2-card,
.sapiotech-card {
    width: 100%;
    max-width: 360px;
}

.section2-preview-layout .section2-card,
.section4-preview-layout .sapiotech-card {
    padding: 16px 16px;
    border-radius: 18px;
    gap: 6px;
}

.section2-preview-layout .section2-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        'icon title'
        'text text';
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
}

.section2-preview-layout .section2-card .ph {
    grid-area: icon;
    font-size: 1.05rem;
    min-width: 1.05rem;
    min-height: 1.05rem;
    margin: 0;
}

.section2-preview-layout .section2-card h3 {
    grid-area: title;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
    font-weight: 700;
}

.section2-preview-layout .section2-card p {
    grid-area: text;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.38;
}

.section4-preview-layout .sapiotech-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section4-preview-layout .sapiotech-card h4 .ph {
    font-size: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin: 0;
}

.section4-preview-layout .sapiotech-card .sapiotech-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.12rem;
    margin: 0;
}

.section4-preview-layout .sapiotech-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
}

.section2-card.is-active,
.sapiotech-card.is-active {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,122,41,0.8);
    box-shadow: 0 14px 48px rgba(255,77,0,0.16), 0 8px 28px rgba(10,10,26,0.18);
    transform: translateY(-2px);
}

.sapiotech-subtitle{
    color: aquamarine;
    font-weight: 300;
    font-size: smaller;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .2rem;
}

.sapiotech-card:hover,
.sapiotech-card:focus-visible {
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,122,41,0.75);
    box-shadow: 0 14px 48px rgba(255,77,0,0.16), 0 8px 28px rgba(10,10,26,0.18);
    outline: none;
}

b, strong {
    font-weight: 700;
}

@keyframes sapiotech-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes sapiotech-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 14px 30px rgba(0,0,0,0.14); }
    50% { transform: scale(1.06); box-shadow: 0 18px 38px rgba(255,77,0,0.12); }
}

.stat-num {
    /* Números em geral */
    .number, .num, .numeric, .count, .stat, .stat-num, [data-number], [data-stat] {
        font-family: 'Zalando Sans Expanded', 'Zalando Sans', Arial, sans-serif !important;
        font-weight: 900 !important;
        font-style: normal;
    }
    font-size: 5rem;
        font-family: 'Zalando Sans Expanded', 'Zalando Sans', Arial, sans-serif;
         font-weight: 700;
        font-style: normal;
    letter-spacing: 0.01em;
    color: var(--sapios-orange);
}

/* ===== 6) Reveal and stat animations ===== */
/* Reveal Animations */

.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96) skewY(2deg);
    filter: blur(6px);
    transition: all 1.1s var(--easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1) skewY(0);
    filter: blur(0);
    transition: all 0.7s var(--easing);
}

.reveal.exit {
    opacity: 0;
    transform: translateY(-60px) scale(0.96) skewY(-2deg);
    filter: blur(6px);
    transition: all 0.7s var(--easing);
}

/* Números animados */
.stat-num {
    font-variant-numeric: tabular-nums;
    transition: color 0.5s;
}

.bkg-blur.active {
    backdrop-filter: blur(6px) !important; 
    -webkit-backdrop-filter: blur(6px) !important;
}

/* Animação em cascata para múltiplos elementos */
.reveal {
     will-change: opacity, transform;
}
.reveal[data-reveal-delay="1"] { transition-delay: 0.15s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.45s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.6s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.75s; }
.reveal[data-reveal-delay="6"] { transition-delay: 0.9s; }
.reveal[data-reveal-delay="7"] { transition-delay: 1.05s; }
.reveal[data-reveal-delay="8"] { transition-delay: 1.2s; }
.reveal[data-reveal-delay="9"] { transition-delay: 1.35s; }
.reveal[data-reveal-delay="10"] { transition-delay: 1.5s; }

/* ===== 7) Minimal video overlay ===== */
/* Overlay de vídeo minimalista */
#minimal-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.minimal-video-bg {
    position: absolute;
    inset: 0;
    background: var(--sapios-darkk);
    opacity: 0.9;
    z-index: 1;
}
#minimal-video {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 18px;
    box-shadow: 0 8px 48px 0 rgba(10,10,26,0.35);
    background: #000;
}
.close-minimal-video {
    position: absolute;
    top: 32px;
    right: 40px;
    z-index: 3;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}
.close-minimal-video:hover {
    background: rgba(255,255,255,0.0);
}
/* ===== 8) Step flow system ===== */
                .step-flow-wrapper {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-height: 260px;
                    position: relative;
                    padding: 8px 0;
                }
                .step-flow {
                    display: grid;
                    grid-template-columns: minmax(220px, 390px) minmax(520px, 760px) minmax(220px, 390px);
                    grid-template-rows: auto auto;
                    align-items: center;
                    justify-content: center;
                    gap: 12px 14px;
                    position: relative;
                    width: 100%;
                    max-width: 1680px;
                }
                .step-item {
                    min-height: 0;
                    width: fit-content;
                    max-width: min(100%, 312px);
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: flex-start;
                    gap: 6px;
                    padding: 15px 15px 13px;
                    background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
                    backdrop-filter: blur(12px);
                    -webkit-backdrop-filter: blur(12px);
                    border: .5px solid rgba(255,255,255,0.2);
                    border-radius: 20px;
                    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
                    color: #fff;
                    position: relative;
                    overflow: hidden;
                    transform: translateY(0) scale(0.985);
                    opacity: 0.56;
                    z-index: 2;
                    transition: transform 0.45s var(--easing), opacity 0.45s var(--easing), border-color 0.45s var(--easing), box-shadow 0.45s var(--easing), background 0.45s var(--easing);
                }
                .step-item[data-step="1"] {
                    grid-column: 1;
                    grid-row: 1;
                    justify-self: end;
                }
                .step-item[data-step="2"] {
                    grid-column: 3;
                    grid-row: 1;
                    justify-self: start;
                }
                .step-item[data-step="3"] {
                    grid-column: 3;
                    grid-row: 2;
                    justify-self: start;
                }
                .step-item[data-step="4"] {
                    grid-column: 1;
                    grid-row: 2;
                    justify-self: end;
                }
                .step-flow-network {
                    position: absolute;
                    inset: 0;
                    pointer-events: none;
                    z-index: 1;
                }
                .step-flow-network-svg {
                    width: 100%;
                    height: 100%;
                    overflow: visible;
                }
                .step-flow-track {
                    fill: none;
                    stroke: rgba(255, 122, 41, 0.46);
                    stroke-width: 2.2;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                    stroke-dasharray: 3 11;
                    filter: drop-shadow(0 0 10px rgba(255, 122, 41, 0.12));
                }
                .step-flow-train-glow {
                    fill: rgba(255, 122, 41, 0.26);
                    filter: blur(4px);
                }
                .step-flow-train-core {
                    fill: #ff7a29;
                    filter: drop-shadow(0 0 10px rgba(255, 122, 41, 0.9));
                }
                .step-flow-center {
                    grid-column: 2;
                    grid-row: 1 / span 2;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0;
                    z-index: 1;
                    pointer-events: none;
                }
                .step-flow-logo-shell {
                    position: relative;
                    width: min(100%, 660px);
                    aspect-ratio: 1;
                    border-radius: 50%;
                    background: none;
                    border: none;
                    box-shadow: none;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    overflow: visible;
                }
                .step-flow-logo-shell::before {
                    display: none;
                }
                .step-flow-logo {
                    width: min(100%, 660px);
                    max-width: 660px;
                    position: relative;
                    z-index: 1;
                    opacity: 0.95;
                    filter: drop-shadow(0 20px 44px rgba(0,0,0,0.42));
                }
                .step-item::before {
                    content: '';
                    position: absolute;
                    inset: auto -18% -32% 30%;
                    height: 120px;
                    background: radial-gradient(circle, rgba(255,77,0,0.30) 0%, rgba(255,77,0,0) 72%);
                    opacity: 0;
                    transition: opacity 0.45s var(--easing);
                    pointer-events: none;
                }
                .step-item.active {
                    opacity: 1;
                    transform: translateY(-8px) scale(1.02);
                    border-color: rgba(255,122,41,0.58);
                    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
                    box-shadow: 0 24px 52px rgba(255,77,0,0.14), 0 18px 40px rgba(0,0,0,0.18);
                }
                .step-flow.is-interactive .step-item:hover,
                .step-flow.is-interactive .step-item:focus-visible {
                    opacity: 1;
                    transform: translateY(-8px) scale(1.02);
                    border-color: rgba(255,122,41,0.58);
                    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
                    box-shadow: 0 24px 52px rgba(255,77,0,0.14), 0 18px 40px rgba(0,0,0,0.18);
                    outline: none;
                }
                .step-item.active::before {
                    opacity: 1;
                }
                .step-flow.is-interactive .step-item:hover::before,
                .step-flow.is-interactive .step-item:focus-visible::before {
                    opacity: 1;
                }
                .step-kicker {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    min-width: 32px;
                    height: 22px;
                    padding: 0 7px;
                    border-radius: 999px;
                    background: rgba(255,255,255,0.08);
                    color: rgba(255,255,255,0.72);
                    font-size: 0.62rem;
                    font-weight: 700;
                    letter-spacing: 0.1em;
                }
                .step-item .step-icon {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 54px;
                    height: 54px;
                    border-radius: 16px;
                    background: rgba(255,255,255,0.05);
                    color: #fff;
                    font-size: 1.65rem;
                    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
                    transition: transform 0.45s var(--easing), background 0.45s var(--easing), color 0.45s var(--easing);
                }
                .step-item.active .step-icon {
                    background: rgba(255,77,0,0.12);
                    color: #ffb287;
                    transform: scale(1.05);
                }
                .step-flow.is-interactive .step-item:hover .step-icon,
                .step-flow.is-interactive .step-item:focus-visible .step-icon {
                    background: rgba(255,77,0,0.12);
                    color: #ffb287;
                    transform: scale(1.05);
                }
                .step-item .step-label {
                    font-size: 1.06rem;
                    font-weight: 700;
                    line-height: 1.08;
                    letter-spacing: -0.02em;
                    text-align: left;
                }
                .step-item .step-copy {
                    margin: 0;
                    font-size: 0.8rem;
                    line-height: 1.34;
                    color: rgba(255,255,255,0.82);
                    text-align: left;
                    max-width: 24ch;
                }
                .step-connector {
                    position: relative;
                    flex: 1 1 72px;
                    min-width: 72px;
                    max-width: 124px;
                    height: 2px;
                    margin: 0 14px;
                    opacity: 0.55;
                }
                .step-connector::before,
                .step-connector::after {
                    content: '';
                    position: absolute;
                    left: 0;
                    right: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    border-top: 2px dashed rgba(255,255,255,0.20);
                }
                .step-connector::after {
                    width: 42%;
                    right: auto;
                    border-top-color: rgba(255,122,41,0.7);
                    opacity: 0;
                    transition: transform 0.55s var(--easing), opacity 0.35s var(--easing);
                    transform: translateY(-50%) scaleX(0.2);
                    transform-origin: left center;
                }
                .step-connector.active::after {
                    opacity: 1;
                    transform: translateY(-50%) scaleX(1);
                }
                .step-tooltip {
                    position: absolute;
                    left: 50%;
                    top: 100%;
                    transform: translate(-50%, 32px);
                    min-width: 260px;
                    max-width: 340px;
                    background: rgba(20,20,20,0.98);
                    color: #fff;
                    border-radius: 18px;
                    box-shadow: 0 4px 32px 0 rgba(10,10,26,0.18);
                    padding: 22px 28px 18px 28px;
                    font-size: 0.98rem;
                    opacity: 0;
                    pointer-events: none;
                    z-index: 10;
                    transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
                }
                .step-tooltip.visible {
                    opacity: 1;
                    pointer-events: auto;
                    transform: translate(-50%, 0);
                }
                .step-tooltip-title {
                    font-size: 1.08rem;
                    font-weight: 700;
                    margin-bottom: 6px;
                }
                .step-tooltip-desc {
                    font-size: 0.98rem;
                    font-weight: 400;
                    color: #e0e0e0;
                }
                @media (max-width: 991px) {
                    .step-flow-wrapper {
                        min-height: 0;
                    }
                    .step-flow {
                        flex-direction: column;
                        display: flex;
                        gap: 8px;
                        max-width: 100%;
                        grid-template-columns: none;
                        grid-template-rows: none;
                    }
                    .step-flow-center {
                        display: flex;
                        order: 3;
                        width: 100%;
                        justify-content: center;
                        margin: 4px 0 12px;
                    }
                    .step-flow-network {
                        display: none;
                    }
                    .step-flow-logo-shell {
                        width: min(100%, 280px);
                        padding: 0;
                        background: transparent;
                        box-shadow: none;
                    }
                    .step-flow-logo {
                        width: min(100%, 280px);
                        max-width: 280px;
                        opacity: 0.98;
                        filter: drop-shadow(0 14px 28px rgba(0,0,0,0.28));
                    }
                    .step-item {
                        width: 100%;
                        max-width: 420px;
                        min-height: 110px;
                        align-items: center;
                        text-align: center;
                    }
                    .step-item .step-label {
                        text-align: center;
                    }
                    .step-item .step-copy {
                        max-width: none;
                        text-align: center;
                    }
                    .step-connector {
                        flex: 0 0 32px;
                        width: 2px;
                        min-width: 2px;
                        max-width: 2px;
                        height: 32px;
                        min-height: 32px;
                        margin: 0;
                        opacity: 0.65;
                    }
                    .step-connector::before,
                    .step-connector::after {
                        left: 50%;
                        right: auto;
                        top: 0;
                        bottom: 0;
                        width: 0;
                        height: 100%;
                        border-top: none;
                        border-left: 2px dashed rgba(255,255,255,0.20);
                        transform: translateX(-50%);
                    }
                    .step-connector::after {
                        height: 42%;
                        border-left-color: rgba(255,122,41,0.7);
                        opacity: 0;
                        transform: translateX(-50%) scaleY(0.2);
                        transform-origin: top center;
                    }
                    .step-connector.active::after {
                        transform: translateX(-50%) scaleY(1);
                    }
                    .step-tooltip {
                        left: 100%;
                        top: 50%;
                        transform: translate(24px, -50%);
                    }
                }

                @media (max-width: 575.98px) {
                    .step-flow-center {
                        margin: 0 0 8px;
                    }
                    .step-flow-logo-shell,
                    .step-flow-logo {
                        width: min(100%, 220px);
                        max-width: 220px;
                    }
                }

                footer p {
                    font-size: 0.8rem;
                }

                
.display-1 {
    line-height: 1.1;
}

.display-2 {
    line-height: 1.1;
}

.display-3 {
    line-height: 1.1;
}

.display-4 {
    line-height: 1.1;
}

/* ===== 9) Responsive layout ===== */
@media (max-width: 767.98px) {
    body p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .header-inner {
        padding: 12px 18px;
    }

    .logo {
        height: 28px;
    }

    .scroll-section {
        min-height: auto;
        align-items: center;
        padding: 108px 0 72px;
    }

    .scroll-section + .scroll-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: min(86vw, 560px);
        height: 1px;
        transform: translateX(-50%);
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 28%,
            rgba(255, 77, 0, 0.22) 50%,
            rgba(255, 255, 255, 0.2) 72%,
            rgba(255, 255, 255, 0) 100%
        );
        opacity: 0.72;
        pointer-events: none;
    }

    .scroll-section[data-video="6"] .row {
        row-gap: 14px;
    }

    .scroll-section[data-video="6"] .row > .col-md-4:last-child {
        margin-bottom: 0;
    }

    .scroll-section .container,
    .scroll-section .container-fluid {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .display-1,
    .display-2,
    .display-3,
    .display-4 {
        font-size: clamp(2rem, 7.2vw, 2.9rem);
        line-height: 1.02;
        letter-spacing: -0.03em;
        text-wrap: balance;
    }

    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn-sapios,
    .btn-outline-white {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 20px;
    }

    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .card-glass,
    .p-4.border-start,
    .flow-step {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .card-glass {
        min-height: 0;
        gap: 8px;
        height: auto;
    }

    .section2-preview-layout .section2-card,
    .section4-preview-layout .sapiotech-card {
        height: auto;
    }

    .section2-preview-layout .section2-card p,
    .section4-preview-layout .sapiotech-card p {
        overflow-wrap: break-word;
    }

    .card-glass .ph {
        font-size: 1.8rem;
        min-width: 1.8rem;
        min-height: 1.8rem;
        margin-bottom: 10px;
    }

    .card-glass h3,
    .card-glass h4 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .card-glass p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .sapiotech-anim {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 560px;
    }

    .sapiotech-node,
    .sapiotech-result {
        min-height: 0;
        padding: 20px 20px 18px;
        border-radius: 24px;
    }

    .sapiotech-link {
        width: 54px;
        height: 54px;
        justify-self: center;
        font-size: 1.25rem;
        border-radius: 18px;
    }

    .step-flow-wrapper {
        padding-top: 0;
    }

    .step-item {
        max-width: none;
        min-height: 108px;
        padding: 22px 18px;
        border-radius: 24px;
        gap: 10px;
    }

    .step-item .step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
        border-radius: 14px;
    }

    .step-item .step-label {
        font-size: 1.28rem;
    }

    .step-kicker {
        min-width: 38px;
        height: 26px;
        font-size: 0.72rem;
    }

    .stat-num {
        font-size: clamp(2.8rem, 13vw, 3.6rem);
        line-height: 1;
    }

    .logo-marquee {
        gap: 28px;
    }

    .logo-marquee img {
        height: 32px;
    }

    .section-cards-preview-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-cards-preview-stack {
        width: 100%;
        max-width: none;
        order: 1;
    }

    .section-cards-preview-frame {
        order: 2;
        min-height: 200px;
    }

    .section2-preview-layout .section2-card,
    .section4-preview-layout .sapiotech-card {
        padding: 14px 14px;
        row-gap: 5px;
        column-gap: 7px;
    }

    .section2-preview-layout .section2-card h3,
    .section4-preview-layout .sapiotech-card h4 {
        font-size: 0.95rem;
    }

    .section2-preview-layout .section2-card p,
    .section4-preview-layout .sapiotech-card p {
        font-size: 0.8rem;
    }

    .section2-card,
    .sapiotech-card {
        max-width: none;
    }

    footer {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
}

@media (max-width: 430px) {
    .container,
    .container-fluid {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .scroll-section {
        padding-top: 96px;
        padding-bottom: 96px;
    }

    .display-1,
    .display-2,
    .display-3,
    .display-4 {
        font-size: clamp(1.85rem, 8.4vw, 2.45rem);
    }

    .hero-btns {
        margin-top: 28px !important;
    }

    .card-glass,
    .p-4.border-start,
    .flow-step {
        padding: 20px 16px;
        border-radius: 20px;
        backdrop-filter: blur(12px);
    }

    .step-item {
        min-height: 100px;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .step-item .step-label {
        font-size: 1.15rem;
    }

    .card-glass h3,
    .card-glass h4 {
        font-size: 1.15rem;
    }

    .card-glass p {
        font-size: 0.95rem;
    }

    .sapiotech-node-title,
    .sapiotech-result-title {
        font-size: 1.2rem;
    }

    .sapiotech-node p,
    .sapiotech-result p {
        font-size: 0.95rem;
    }

    .sapiotech-card::after {
        display: none;
    }

    .stat-num {
        font-size: 2.75rem;
    }
}

@media (max-width: 430px) and (max-height: 700px) {
    .scroll-section {
        justify-content: flex-start;
    }

    .scroll-section .container {
        padding-top: 8px;
    }

    .display-1,
    .display-2,
    .display-3,
    .display-4 {
        font-size: clamp(1.8rem, 7.8vw, 2.3rem);
    }

    .lead,
    body p {
        font-size: 0.96rem;
    }

    .centter{
        text-align: center;
    }
}

/* ===== 10) About page ===== */
/* About Page */
.about-page {
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 122, 41, 0.14), transparent 42%),
        radial-gradient(circle at 88% 6%, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, #090915 0%, #0d1020 52%, #090915 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.about-page .about-main {
    padding-top: 110px;
    padding-bottom: 110px;
}

.about-page .about-section {
    padding: 120px 0;
}

.about-page .about-section + .about-section {
    margin-top: 12px;
}

.about-hero-panel,
.about-highlight-card,
.about-story-card,
.about-closing-card {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.035) 100%);
    box-shadow: 0 24px 54px rgba(3, 8, 20, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.about-hero-panel {
    padding: clamp(28px, 3vw, 46px);
}

.about-eyebrow,
.about-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 28px;
    margin-top: 34px;
}

.about-page .about-intro-copy {
    margin: 0 0 28px;
    max-width: 980px;
    font-size: clamp(1.15rem, 0.95rem + 0.62vw, 1.58rem);
    line-height: 1.6;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
}

.about-page .about-intro-lead {
    max-width: 920px;
    margin-bottom: 0;
    font-size: clamp(1.25rem, 1.02rem + 0.78vw, 1.8rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.98);
}

.about-page .about-title {
    max-width: 980px;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.about-section-title {
    margin: 0 0 18px;
    max-width: 14ch;
    letter-spacing: -0.03em;
    line-height: 1.06;
}

.about-section-title-sm {
    font-size: clamp(1.55rem, 1.16rem + 0.9vw, 2.15rem);
    max-width: none;
}

.about-page .about-subtitle {
    margin: 12px 0 40px;
    max-width: 980px;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 0.92rem + 0.2vw, 1.2rem);
    line-height: 1.55;
}

.about-highlight-card,
.about-story-card,
.about-closing-card {
    padding: clamp(24px, 2.4vw, 34px);
    height: 100%;
}

.about-story-card-accent {
    background:
        radial-gradient(circle at top right, rgba(255, 122, 41, 0.2), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.04) 100%);
}

.about-highlight-copy {
    margin: 0 0 20px;
    font-size: 1.04rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.about-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-chip-group-wide {
    margin-top: 6px;
}

.about-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.2;
}

.about-placeholder {
    width: 100%;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-family: 'Zalando Sans', Arial, sans-serif;
    font-size: clamp(0.9rem, 0.8rem + 0.28vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 122, 41, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 18px 38px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-placeholder-network {
    min-height: 300px;
}

.about-placeholder-bridge {
    min-height: 380px;
}

.about-placeholder-portrait {
    min-height: 220px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.about-portrait-initials {
    font-size: clamp(2.4rem, 1.85rem + 1.25vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.about-placeholder-footer {
    min-height: 220px;
}

.about-leader-card {
    height: 100%;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 44px rgba(5, 9, 22, 0.4);
}

.about-leader-name {
    font-size: clamp(1.4rem, 1.25rem + 0.3vw, 1.75rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.02em;
}

.about-page .about-leader-role {
    margin: 6px 0 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: rgba(255, 161, 108, 0.96);
}

.about-page .about-leader-bio {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.about-page .about-leadership .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.about-footer-copy {
    margin-top: 0;
    text-align: center;
}

.about-footer-copy h4 {
    margin: 0;
    font-size: clamp(1.22rem, 1.08rem + 0.4vw, 1.7rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.about-page .about-footer-copy p {
    margin: 8px auto 0;
    max-width: 760px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 991.98px) {
    .about-page .about-main {
        padding-top: 94px;
        padding-bottom: 88px;
    }

    .about-page .about-section {
        padding: 42px 0;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .about-placeholder-network {
        min-height: 250px;
    }

    .about-placeholder-portrait {
        min-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .about-page .about-main {
        padding-top: 84px;
        padding-bottom: 62px;
    }

    .about-page .about-section {
        padding: 30px 0;
    }

    .about-page .about-section + .about-section {
        margin-top: 6px;
    }

    .about-hero-panel,
    .about-highlight-card,
    .about-story-card,
    .about-closing-card {
        border-radius: 22px;
        padding: 20px;
    }

    .about-placeholder {
        border-radius: 20px;
        padding: 16px;
    }

    .about-placeholder-network {
        min-height: 210px;
    }

    .about-placeholder-portrait {
        min-height: 180px;
    }

    .about-leader-card {
        border-radius: 20px;
        padding: 18px;
    }

    .about-chip {
        font-size: 0.88rem;
    }
}