:root {
    --color-primary: #073B7A;
    --color-primary-dark: #052B5C;
    --color-blue: #0A4C96;
    --color-accent: #80D420;
    --color-accent-light: #B7E66A;
    --color-cyan: #22B8CF;
    --color-white: #FFFFFF;
    --color-off-white: #F6F9FC;
    --color-text: #172033;
    --color-muted: #667085;
    --ease-out-expo: cubic-bezier(.22, 1, .36, 1);
    --ease-out-quart: cubic-bezier(.25, .46, .45, .94);
}

/* Premium visual system */
:root {
    --premium-shadow: 0 24px 70px rgba(5, 43, 92, .12);
    --premium-border: rgba(7, 59, 122, .10);
}

body { background: #fff; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.page-hero { position: relative; isolation: isolate; }
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 82% 20%, rgba(128,212,32,.22), transparent 24%), radial-gradient(circle at 12% 90%, rgba(34,184,207,.16), transparent 28%);
}

.breadcrumb-shell {
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid var(--premium-border);
    backdrop-filter: blur(18px);
    margin-top: 5rem;
}

.breadcrumb-list { display: flex; align-items: center; gap: .65rem; min-height: 52px; font-size: .82rem; color: #64748b; }
.breadcrumb-list a { color: #073B7A; font-weight: 600; transition: color .25s ease; }
.breadcrumb-list a:hover { color: #80D420; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; margin-left: .65rem; color: #cbd5e1; }

.premium-card, .card-hover {
    box-shadow: 0 1px 0 rgba(7,59,122,.03);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .45s ease;
}
.premium-card:hover, .card-hover:hover { transform: translateY(-9px); box-shadow: var(--premium-shadow); border-color: rgba(128,212,32,.38); }

.glass-panel { background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--premium-shadow); backdrop-filter: blur(20px); }

.orb { position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; animation: orb-drift 9s ease-in-out infinite; }
@keyframes orb-drift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(16px,-22px,0) scale(1.08); } }

[data-stagger] > * { opacity: 0; transform: translateY(24px); }
[data-stagger].is-visible > * { animation: premium-rise .7s cubic-bezier(.2,.8,.2,1) forwards; }
[data-stagger].is-visible > *:nth-child(2) { animation-delay: .08s; }
[data-stagger].is-visible > *:nth-child(3) { animation-delay: .16s; }
[data-stagger].is-visible > *:nth-child(4) { animation-delay: .24s; }
[data-stagger].is-visible > *:nth-child(5) { animation-delay: .32s; }
[data-stagger].is-visible > *:nth-child(6) { animation-delay: .40s; }
@keyframes premium-rise { to { opacity: 1; transform: translateY(0); } }

.catalog-toolbar { position: sticky; top: 88px; z-index: 20; background: rgba(246,249,252,.9); backdrop-filter: blur(18px); }
.catalog-chip { border: 1px solid #dbe4ee; padding: .65rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #475569; transition: .25s ease; }
.catalog-chip:hover, .catalog-chip.is-active { color: #052B5C; background: #80D420; border-color: #80D420; box-shadow: 0 8px 25px rgba(128,212,32,.25); }
.catalog-item[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .orb, [data-stagger].is-visible > * { animation: none !important; opacity: 1; transform: none; }
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-brand-logo {
    display: inline-flex !important;
    align-items: center;
    flex: none;
    padding: 0;
    background: transparent;
}

.site-brand-logo img {
    width: clamp(8.5rem, 13vw, 11rem);
    height: 4rem;
    object-fit: contain;
}

footer .site-brand-logo img {
    width: 9.5rem;
    height: 4.75rem;
}

@media (max-width: 430px) {
    .site-brand-logo { padding-inline: .25rem; }
    .site-brand-logo img { width: 7.75rem; height: 3.5rem; }
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
}

.section-padding {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
    border-radius: 0.5rem;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), background-color 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 212, 32, 0.3), 0 0 0 1px rgba(128, 212, 32, 0.2);
    background-color: var(--color-accent-light);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-primary .arrow {
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    backdrop-filter: blur(4px);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background-color: var(--color-accent);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark);
}

.card-hover {
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    background: linear-gradient(135deg, rgba(128, 212, 32, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(7, 59, 122, 0.12), 0 0 0 1px rgba(128, 212, 32, 0.1);
}

.card-hover:hover::before {
    opacity: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.7s var(--ease-out-expo);
}

.image-zoom:hover img {
    transform: scale(1.05);
}

.header-transparent {
    background-color: transparent;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(7, 59, 122, 0.08);
    box-shadow: 0 1px 3px rgba(7, 59, 122, 0.06);
}

[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(.22, 1, .36, 1), transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="down"] {
    transform: translateY(-40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal="scale"] {
    transform: scale(0.95);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

.client-logo {
    filter: grayscale(100%);
    transition: filter 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-ribbon {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 0;
    /* border-top: 1px solid rgba(7, 59, 122, .10); */
    /* border-bottom: 1px solid rgba(7, 59, 122, .10); */
    /* background: linear-gradient(90deg, #f6f9fc 0%, #fff 12%, #fff 88%, #f6f9fc 100%); */
    /* box-shadow: 0 18px 55px rgba(5, 43, 92, .08); */
}

.client-ribbon::before,
.client-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(2rem, 8vw, 7rem);
    pointer-events: none;
}

.client-ribbon::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.client-ribbon::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }

.client-ribbon__track {
    display: flex;
    width: max-content;
    animation: client-ribbon-scroll 34s linear infinite;
    will-change: transform;
}

.client-ribbon:hover .client-ribbon__track { animation-play-state: paused; }

.client-ribbon__group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-right: 1.25rem;
}

.client-ribbon__logo {
    width: clamp(9rem, 15vw, 12rem);
    height: 6.5rem;
    padding: 1rem 1.35rem;
    flex: none;
    display: grid;
    place-items: center;
    /* border: 1px solid rgba(7, 59, 122, .08); */
    border-radius: 1rem;
    background: #fff;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.text-shadow-lg {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.623),
        0 6px 18px rgba(0, 0, 0, 0.432);
}
.text-shadow-lg-w {
    text-shadow:
        0 2px 4px rgba(255, 255, 255, 0.623),
        0 6px 18px rgba(255, 255, 255, 0.432);
}

.client-ribbon__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .68;
    transition: filter .35s ease, opacity .35s ease;
}

.client-ribbon__logo:hover {
    transform: translateY(-4px);
    border-color: rgba(128, 212, 32, .55);
    box-shadow: 0 14px 32px rgba(5, 43, 92, .12);
}

.client-ribbon__logo:hover img { filter: grayscale(0); opacity: 1; }

.application-detail-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.application-sidebar {
    position: sticky;
    top: 9.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(7, 59, 122, .10);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #fff, #f6f9fc);
    box-shadow: 0 18px 45px rgba(5, 43, 92, .08);
}

.application-sidebar__title {
    margin: 0 0 .85rem;
    padding: 0 .5rem .85rem;
    border-bottom: 1px solid rgba(7, 59, 122, .10);
    color: var(--color-primary-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.application-sidebar__links { display: grid; gap: .35rem; }
.application-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .72rem .8rem;
    border-radius: .75rem;
    color: var(--color-muted);
    font-size: .85rem;
    font-weight: 650;
    line-height: 1.35;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}
.application-sidebar__link::after { content: '›'; color: var(--color-accent); font-size: 1.15rem; }
.application-sidebar__link:hover { color: var(--color-primary); background: #fff; transform: translateX(3px); }
.application-sidebar__link.is-active { color: var(--color-primary-dark); background: var(--color-accent); box-shadow: 0 8px 20px rgba(128,212,32,.22); }
.application-sidebar__link.is-active::after { color: var(--color-primary-dark); }

.application-article h2 { margin: 2rem 0 .8rem; color: var(--color-primary-dark); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
.application-article h3 { margin: 1.4rem 0 .55rem; color: var(--color-primary-dark); font-size: 1.15rem; font-weight: 750; }
.application-article p { margin-bottom: 1rem; color: var(--color-muted); line-height: 1.8; }
.application-article ul { display: grid; gap: .7rem; margin: 1rem 0 1.5rem; }
.application-article li { position: relative; padding-left: 1.6rem; color: var(--color-text); }
.application-article li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); font-weight: 900; }

.chat-fab {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 55;
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 4.25rem;
    padding: .55rem .6rem .55rem 1.15rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #073B7A, #052B5C 72%);
    box-shadow: 0 18px 48px rgba(5,43,92,.3), 0 0 0 0 rgba(128,212,32,.25);
    transition: transform .35s var(--ease-out-expo), box-shadow .35s ease;
    animation: chat-fab-enter .7s var(--ease-out-expo) .7s both, chat-fab-breathe 3s ease-in-out 1.5s infinite;
}

.chat-fab:hover,
.chat-fab:focus-visible {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(5,43,92,.38), 0 0 0 6px rgba(128,212,32,.15);
}

.chat-fab__copy { display: grid; line-height: 1.1; }
.chat-fab__copy small { margin-bottom: .3rem; color: rgba(255,255,255,.62); font-size: .67rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.chat-fab__copy strong { font-size: .88rem; font-weight: 750; white-space: nowrap; }

.chat-fab__icon {
    width: 3.15rem;
    height: 3.15rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color-primary-dark);
    background: linear-gradient(145deg, var(--color-accent-light), var(--color-accent));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 20px rgba(128,212,32,.25);
}
.chat-fab__icon svg { width: 1.55rem; height: 1.55rem; transition: transform .35s var(--ease-out-expo); }
.chat-fab:hover .chat-fab__icon svg { transform: scale(1.08) rotate(-5deg); }

.chat-fab__status {
    position: absolute;
    top: .25rem;
    right: .35rem;
    z-index: 2;
    width: .8rem;
    height: .8rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}

@keyframes chat-fab-enter { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes chat-fab-breathe { 0%,100% { box-shadow: 0 18px 48px rgba(5,43,92,.3), 0 0 0 0 rgba(128,212,32,.18); } 50% { box-shadow: 0 18px 48px rgba(5,43,92,.3), 0 0 0 9px rgba(128,212,32,0); } }

@media (max-width: 520px) {
    .chat-fab { width: 3.75rem; min-height: 3.75rem; padding: .3rem; justify-content: center; }
    .chat-fab__copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .chat-fab__icon { width: 3.15rem; height: 3.15rem; }
}

@media (max-width: 900px) {
    .application-detail-layout { grid-template-columns: 1fr; }
    .application-sidebar { position: relative; top: auto; }
    .application-sidebar__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .application-sidebar__links { grid-template-columns: 1fr; }
}

@keyframes client-ribbon-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .client-ribbon { overflow-x: auto; }
    .client-ribbon__track { animation: none; }
    .client-ribbon__group[aria-hidden="true"] { display: none; }
}

.testimonial-slide {
    transition: opacity 0.7s var(--ease-out-expo);
}

.faq-content {
    transition: height 0.4s var(--ease-out-expo);
}

.faq-icon {
    transition: transform 0.4s var(--ease-out-expo);
}

.faq-open .faq-icon {
    transform: rotate(45deg);
}

.process-line {
    position: relative;
}

.process-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-cyan) 100%);
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.3;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 700ms linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.btn-primary .ripple {
    background-color: rgba(5, 43, 92, 0.15);
}

.btn-secondary .ripple {
    background-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(128, 212, 32, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(128, 212, 32, 0); }
}

@keyframes waveFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(2px); }
    50% { transform: translateX(-20px) translateY(0); }
    75% { transform: translateX(-10px) translateY(-2px); }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { 
        transform: translateY(-100vh) translateX(20px) scale(0.5);
        opacity: 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.animate-reveal {
    opacity: 0;
    animation: revealUp 0.9s var(--ease-out-expo) forwards;
}

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

.animate-wave {
    animation: waveFloat 12s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
    pointer-events: none;
    z-index: 10;
}

.hero-wave svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-reveal {
        opacity: 1;
        transform: none;
    }

    .particle {
        display: none;
    }
}
