:root {
    --cybfx-duration-fast: 180ms;
    --cybfx-duration: 260ms;
    --cybfx-duration-reveal: 520ms;
    --cybfx-ease: cubic-bezier(.2, .75, .25, 1);
    --cybfx-lift: 4px;
}

/* Frontend-only motion layer. Content remains visible unless JS explicitly
   activates the reveal observer, and reduced-motion users see no movement. */
.cybfx-reveal {
    opacity: 1;
    transform: none;
}

.cybfx-motion-ready .cybfx-reveal.cybfx-pending {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity var(--cybfx-duration-reveal) var(--cybfx-ease),
        transform var(--cybfx-duration-reveal) var(--cybfx-ease);
    transition-delay: var(--cybfx-delay, 0ms);
    will-change: opacity, transform;
}

.cybfx-motion-ready .cybfx-reveal.cybfx-pending.cybfx-from-left { transform: translate3d(-18px, 0, 0); }
.cybfx-motion-ready .cybfx-reveal.cybfx-pending.cybfx-from-right { transform: translate3d(18px, 0, 0); }
.cybfx-motion-ready .cybfx-reveal.cybfx-visible { opacity: 1; transform: none; }

.cybfx-interactive {
    transition: transform var(--cybfx-duration) var(--cybfx-ease),
        box-shadow var(--cybfx-duration) var(--cybfx-ease),
        border-color var(--cybfx-duration) ease,
        background-color var(--cybfx-duration) ease,
        color var(--cybfx-duration) ease;
}

.cybfx-interactive:focus-visible,
.navbar a:focus-visible,
.cybfx-scroll-cue:focus-visible {
    outline: 3px solid #b84fff;
    outline-color: color-mix(in srgb, var(--footer-brand-purple, #9f17e8) 55%, white);
    outline-offset: 3px;
}

.cybfx-motion-ready .cybfx-card:hover,
.cybfx-motion-ready .cybfx-card:focus-within {
    transform: translate3d(0, calc(var(--cybfx-lift) * -1), 0);
    box-shadow: 0 20px 48px rgba(23, 52, 89, .11);
}

.navbar {
    transition: padding var(--cybfx-duration) var(--cybfx-ease),
        background-color var(--cybfx-duration) ease,
        box-shadow var(--cybfx-duration) ease,
        border-color var(--cybfx-duration) ease;
}

.navbar.cybfx-scrolled {
    padding-top: 9px;
    padding-bottom: 9px;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(228, 237, 246, .98);
    box-shadow: 0 8px 28px rgba(23, 52, 89, .08);
}

.navbar .nav-link { position: relative; transition: color var(--cybfx-duration-fast) ease; }
.navbar-expand-lg .navbar-nav > .nav-item > .nav-link::after {
    position: absolute;
    right: 8px;
    bottom: 3px;
    left: 8px;
    height: 2px;
    content: "";
    background: var(--brand-gradient, linear-gradient(135deg, #9f17e8, #9f2f28));
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--cybfx-duration) var(--cybfx-ease);
}

.navbar-expand-lg .navbar-nav > .nav-item > .nav-link:hover::after,
.navbar-expand-lg .navbar-nav > .nav-item > .nav-link.active::after { transform: scaleX(1); }

.navbar .dropdown-menu {
    transform: translateY(6px);
    opacity: 0;
    transition: opacity var(--cybfx-duration-fast) ease, transform var(--cybfx-duration-fast) var(--cybfx-ease);
}

.navbar .dropdown.show > .dropdown-menu,
.navbar .dropdown-menu.show { transform: translateY(0); opacity: 1; }

.navbar-toggler .navbar-toggler-icon {
    transition: transform var(--cybfx-duration) var(--cybfx-ease), filter var(--cybfx-duration) ease;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { transform: rotate(90deg); }

.btn,
.btn-main,
.btn-ghost,
.footer-btn,
.footer-newsletter-submit {
    transition: transform var(--cybfx-duration-fast) var(--cybfx-ease),
        box-shadow var(--cybfx-duration) var(--cybfx-ease),
        background-color var(--cybfx-duration) ease,
        border-color var(--cybfx-duration) ease,
        color var(--cybfx-duration) ease;
}

.btn:active,
.btn-main:active,
.btn-ghost:active,
.footer-btn:active,
.footer-newsletter-submit:active { transform: translateY(1px) scale(.99); }

.form-control,
.form-select,
textarea.form-control {
    transition: border-color var(--cybfx-duration-fast) ease,
        box-shadow var(--cybfx-duration-fast) ease,
        background-color var(--cybfx-duration-fast) ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: color-mix(in srgb, var(--footer-brand-purple, #9f17e8) 55%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--footer-brand-purple, #9f17e8) 13%, transparent);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, .12); }

.site-toast { animation: cybfx-toast-in 280ms var(--cybfx-ease) both; }
.site-toast.is-leaving { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 180ms ease, transform 180ms ease; }

@keyframes cybfx-toast-in {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: none; }
}

.home-page .hero { isolation: isolate; }
.home-page .hero::before,
.home-page .hero::after {
    position: absolute;
    z-index: -1;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    pointer-events: none;
    content: "";
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
}

.home-page .hero::before {
    top: 8%;
    right: -15%;
    background: radial-gradient(circle, rgba(159, 23, 232, .11), transparent 68%);
    animation: cybfx-glow-drift 12s ease-in-out infinite alternate;
}

.home-page .hero::after {
    bottom: -22%;
    left: -18%;
    width: min(35vw, 420px);
    background: radial-gradient(circle, rgba(24, 181, 164, .09), transparent 70%);
    animation: cybfx-glow-drift 16s ease-in-out infinite alternate-reverse;
}

@keyframes cybfx-glow-drift {
    from { transform: translate3d(0, 0, 0) scale(.94); }
    to { transform: translate3d(8px, -12px, 0) scale(1.04); }
}

.cybfx-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-top: 18px;
    color: var(--text-muted, #5f7284);
    border: 1px solid var(--border-soft, #e4edf6);
    border-radius: 50%;
    transition: color var(--cybfx-duration-fast) ease, border-color var(--cybfx-duration-fast) ease,
        transform var(--cybfx-duration) var(--cybfx-ease);
    animation: cybfx-scroll-nudge 1.8s ease-in-out infinite;
}

.cybfx-scroll-cue:hover { color: var(--brand-accent-text, #8e24d6); border-color: currentColor; }

@keyframes cybfx-scroll-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.pricing-card,
.card-modern,
.service-card,
.integration-card,
.int-card,
.trust-card,
.process-step,
.testimonial,
.content-card,
.contact-card,
.showcase-box,
.company-point,
.platform-box,
.platform-stat,
.info-panel,
.legal-card,
.service-faq,
.cms-section {
    transition: transform var(--cybfx-duration) var(--cybfx-ease),
        box-shadow var(--cybfx-duration) var(--cybfx-ease), border-color var(--cybfx-duration) ease;
}

.service-faq[open] { border-color: var(--brand-soft-border, rgba(159, 23, 232, .14)); }
.service-faq summary { cursor: pointer; }
.service-faq summary::marker { color: var(--brand-accent-text, #8e24d6); }
.service-faq > p { animation: cybfx-faq-in 220ms var(--cybfx-ease) both; }

@keyframes cybfx-faq-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}

.cybinix-footer .footer-links a,
.cybinix-footer .footer-contact-card a { transition: color var(--cybfx-duration-fast) ease, opacity var(--cybfx-duration-fast) ease; }
.cybinix-footer .footer-links a:hover,
.cybinix-footer .footer-contact-card a:hover { opacity: .82; }

@media (max-width: 991.98px) {
    .navbar .dropdown-menu { transform: none; }
    .home-page .hero::before,
    .home-page .hero::after { animation: none; opacity: .35; }
}

@media (max-width: 575.98px) {
    .cybfx-motion-ready .cybfx-reveal.cybfx-pending { transform: translate3d(0, 10px, 0); }
    .cybfx-motion-ready .cybfx-reveal.cybfx-pending.cybfx-from-left,
    .cybfx-motion-ready .cybfx-reveal.cybfx-pending.cybfx-from-right { transform: translate3d(0, 10px, 0); }
    .cybfx-scroll-cue { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .cybfx-motion-ready .cybfx-reveal.cybfx-pending { opacity: 1; transform: none; }
}
