:root {
    --motion-ease: cubic-bezier(.16, 1, .3, 1);
    --scroll-y: 0px;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1100;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--mint));
    box-shadow: 0 0 14px rgba(131, 224, 211, .8);
    transition: width .08s linear;
}

.site-header {
    transition: background-color .35s ease, box-shadow .35s ease, min-height .35s ease;
}

.site-header.is-scrolled {
    background: rgba(5, 23, 37, .985);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .18);
}

.brand-mark {
    position: relative;
    overflow: hidden;
    transition: transform .45s var(--motion-ease), box-shadow .45s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-7deg) scale(1.08);
    box-shadow: 0 8px 24px rgba(33, 184, 199, .35);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -70% auto -70% -55%;
    width: 38%;
    background: rgba(255, 255, 255, .55);
    transform: rotate(20deg);
    animation: brand-shine 5.5s ease-in-out infinite;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-enter .9s var(--motion-ease) forwards;
}

.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
.hero-content > :nth-child(5) { animation-delay: .4s; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    opacity: .34;
    will-change: transform;
}

.hero-orb-one {
    width: 420px;
    height: 420px;
    right: -150px;
    top: 5%;
    border: 1px solid rgba(131, 224, 211, .35);
    box-shadow: inset 0 0 90px rgba(33, 184, 199, .12);
    transform: translateY(calc(var(--scroll-y) * .08));
}

.hero-orb-two {
    width: 150px;
    height: 150px;
    left: 7%;
    bottom: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(131, 224, 211, .3), transparent 70%);
    transform: translateY(calc(var(--scroll-y) * -.05));
}

.dashboard-card {
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
    transition: transform .18s ease-out, box-shadow .35s ease;
    will-change: transform;
}

.dashboard-card:hover {
    box-shadow: 0 48px 95px rgba(0, 0, 0, .32);
}

.bars span {
    transform-origin: bottom;
    animation: bar-grow 1.1s var(--motion-ease) both;
}

.bars span:nth-child(2) { animation-delay: .08s; }
.bars span:nth-child(3) { animation-delay: .16s; }
.bars span:nth-child(4) { animation-delay: .24s; }
.bars span:nth-child(5) { animation-delay: .32s; }
.bars span:nth-child(6) { animation-delay: .4s; }

.status-dot::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: status-pulse 2s ease-out infinite;
}

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

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .8s var(--motion-ease), transform .8s var(--motion-ease);
}

.motion-ready .reveal-right { transform: translateX(46px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translate(0); }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: .32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: .4s; }

.solution-card {
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33, 184, 199, .08), transparent 42%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

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

.solution-card .icon-box,
.solution-card a i,
.principles > div,
.module-list span,
.btn {
    transition: transform .4s var(--motion-ease), background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.solution-card:hover .icon-box { transform: rotate(-5deg) scale(1.08); }
.solution-card:hover a i { display: inline-block; transform: translate(3px, -3px); }
.principles > div:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .09); border-color: rgba(131, 224, 211, .45); }
.module-list span:hover { transform: translateY(-3px); border-color: var(--mint); color: var(--mint); }
.contact-note i { animation: gentle-float 3s ease-in-out infinite; }
.btn:active { transform: translateY(1px) scale(.985); }

@keyframes hero-enter {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bar-grow {
    from { transform: scaleY(0); opacity: .2; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(131, 224, 211, .6); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(131, 224, 211, 0); }
}

@keyframes brand-shine {
    0%, 65% { left: -55%; }
    82%, 100% { left: 130%; }
}

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

@media (max-width: 991.98px) {
    .hero-orb-one { right: -320px; }
    .dashboard-card {
        transform: none !important;
        will-change: auto;
    }
}

@media (max-width: 767.98px) {
    .motion-ready .reveal,
    .motion-ready .reveal-right,
    .motion-ready .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal-stagger > .reveal {
        transition-delay: 0s !important;
    }

    .hero-orb {
        display: none;
    }

    .dashboard-card:hover {
        box-shadow: 0 30px 60px rgba(0, 0, 0, .24);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
    .hero-content > *, .reveal { opacity: 1; transform: none; }
    .hero-orb { display: none; }
}
