:root {
    --navy: #0d1234;
    --navy-2: #080b24;
    --blue: #3564ef;
    --blue-2: #1e4fd7;
    --cyan: #35e1d0;
    --violet: #7459ff;
    --text: #151b36;
    --muted: #6f7691;
    --soft: #f4f7fb;
    --line: rgba(23, 34, 82, 0.1);
    --shadow: 0 28px 80px rgba(20, 32, 82, 0.14);
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff, #f7f9ff);
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
button {
    font: inherit;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    z-index: 9999;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
}
.cursor-dot,
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--blue);
}
.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(53, 100, 239, 0.45);
    transition: 0.2s;
}
.cursor-ring.active {
    width: 58px;
    height: 58px;
    border-color: var(--cyan);
}

.topbar {
    background: var(--navy-2);
    color: white;
    padding: 8px 20px;
    font-size: 12px;
}
.topbar-inner {
    width: min(1180px, 100%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}
.topbar span {
    color: rgba(255, 255, 255, 0.72);
}

.site-header {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: 0.35s;
}
.site-header.scrolled {
    top: 0;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(15, 23, 70, 0.08);
}
.nav-shell {
    width: min(1180px, calc(100% - 36px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 55px rgba(9, 18, 70, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.95);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 19px Manrope;
    color: var(--navy);
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    transform: rotate(-7deg);
}
.desktop-nav {
    display: flex;
    gap: 8px;
}
.desktop-nav a {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #35405e;
    transition: 0.25s;
}
.desktop-nav a:hover,
.desktop-nav a.active {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    transform: translateY(-2px);
}
.quote-btn {
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 12px 28px rgba(53, 100, 239, 0.28);
}
.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--navy);
    position: relative;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 30, 0.52);
    backdrop-filter: blur(5px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}
.mobile-drawer {
    width: min(88vw, 360px);
    height: 100%;
    padding: 28px;
    background: linear-gradient(180deg, #fff, #f3f6ff);
    transform: translateX(-105%);
    transition: 0.45s;
}
.mobile-overlay.show .mobile-drawer {
    transform: none;
}
.mobile-links {
    display: grid;
    gap: 10px;
    margin-top: 32px;
}
.mobile-links a {
    padding: 15px 16px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--line);
    font-weight: 700;
}

.hero {
    min-height: 520px;
    padding: 170px 20px 85px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(8, 14, 48, 0.94), rgba(19, 58, 142, 0.72)),
        url("/assets/images/services/service_1.jpg") center/cover;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: gridMove 18s linear infinite;
}
@keyframes gridMove {
    to {
        background-position: 56px 56px;
    }
}
.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(28px);
    background: radial-gradient(
        circle,
        rgba(53, 100, 239, 0.35),
        transparent 68%
    );
    right: -120px;
    top: 60px;
    animation: floatGlow 8s ease-in-out infinite alternate;
}
@keyframes floatGlow {
    to {
        transform: translate3d(-40px, 35px, 0) scale(1.12);
    }
}
.hero-inner {
    width: min(1180px, 100%);
    margin: auto;
    position: relative;
    z-index: 2;
    color: white;
}
.hero h1 {
    font: 800 clamp(54px, 8vw, 88px)/0.95 Manrope;
    letter-spacing: -0.06em;
    margin: 0 0 16px;
    background: linear-gradient(90deg, #fff, #dffcf8, #fff, #d3cbff);
    background-size: 260% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
}
@keyframes shine {
    to {
        background-position: 260% center;
    }
}
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}
.hero-shape {
    position: absolute;
    left: -75px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    transform: rotate(45deg);
    animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
    50% {
        transform: rotate(45deg) translateY(-14px);
    }
}

.section {
    padding: 92px 20px;
    position: relative;
}
.container {
    width: min(1180px, 100%);
    margin: auto;
}
.premium-shell {
    padding: 42px;
    border-radius: 38px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(248, 250, 255, 0.94)
    );
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.premium-shell::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    right: -110px;
    top: -120px;
    background: radial-gradient(
        circle,
        rgba(53, 100, 239, 0.14),
        transparent 68%
    );
}
.premium-shell > * {
    position: relative;
    z-index: 2;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px;
}
.section-head .kicker {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(53, 100, 239, 0.08);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.section-head h2 {
    font: 800 clamp(36px, 5vw, 56px)/1.05 Manrope;
    letter-spacing: -0.05em;
    margin: 18px 0;
}
.section-head p {
    color: var(--muted);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    border-radius: 28px;
    overflow: hidden;
    background: white;
    box-shadow: 0 22px 55px rgba(20, 32, 82, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.95);
    position: relative;
    transform-style: preserve-3d;
}
.service-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.75s;
}
.service-card:hover .service-image img {
    transform: scale(1.08);
}
.service-icon {
    position: absolute;
    left: 24px;
    top: 190px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: white;
    font-size: 25px;
    box-shadow: 0 16px 30px rgba(53, 100, 239, 0.28);
    z-index: 3;
    transition: 0.6s;
}
.service-card:hover .service-icon {
    transform: rotateY(180deg);
}
.service-body {
    padding: 38px 24px 26px;
}
.service-body h3 {
    font: 800 20px Manrope;
    margin: 0 0 12px;
}
.service-body p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.service-body a {
    font-weight: 800;
    color: var(--blue);
    font-size: 13px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.step-card {
    padding: 24px;
    border-radius: 24px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(29, 42, 96, 0.08);
    text-align: center;
    position: relative;
}
.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 14px 28px rgba(53, 100, 239, 0.25);
}
.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, #15a66a, #35e1d0);
}
.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, #22bcd9, #3564ef);
}
.step-card:nth-child(4) .step-number {
    background: linear-gradient(135deg, #ffb300, #ff7a00);
}
.step-card h3 {
    font: 800 16px Manrope;
    margin: 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}
.tech-copy h2 {
    font: 800 clamp(32px, 5vw, 50px)/1.05 Manrope;
    letter-spacing: -0.04em;
    margin: 12px 0;
}
.tech-copy p {
    color: var(--muted);
    line-height: 1.8;
}
.tech-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.tech-badge {
    padding: 24px;
    border-radius: 22px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(29, 42, 96, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
}
.tech-badge i {
    font-style: normal;
    font-size: 34px;
}
.tech-badge strong {
    font: 800 16px Manrope;
}
.tech-visual {
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(145deg, var(--navy), #18245d 62%, #312071);
    color: white;
    box-shadow: 0 28px 70px rgba(8, 15, 50, 0.22);
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.logo-card {
    min-height: 88px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 10px;
}
.logo-card span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

footer {
    background: var(--navy-2);
    color: white;
    padding: 72px 20px 26px;
    position: relative;
    overflow: hidden;
}
.footer-grid {
    width: min(1160px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 1.2fr;
    gap: 46px;
}
footer h4 {
    font: 700 16px Manrope;
    margin: 0 0 20px;
}
footer p,
footer a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.9;
}
footer a {
    display: block;
    transition: 0.2s;
}
footer a:hover {
    color: white;
    transform: translateX(4px);
}
.footer-bottom {
    width: min(1160px, 100%);
    margin: 46px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: 0.3s;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.reveal {
    opacity: 0;
    filter: blur(9px);
    transition:
        opacity 0.9s,
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.9s;
}
.reveal-left {
    transform: translateX(-80px);
}
.reveal-right {
    transform: translateX(80px);
}
.reveal-up {
    transform: translateY(70px);
}
.reveal.show {
    opacity: 1;
    filter: none;
    transform: none;
}
.stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: 0.65s;
}
.stagger.show > * {
    opacity: 1;
    transform: none;
}
.stagger.show > *:nth-child(2) {
    transition-delay: 0.08s;
}
.stagger.show > *:nth-child(3) {
    transition-delay: 0.16s;
}
.stagger.show > *:nth-child(4) {
    transition-delay: 0.24s;
}
.stagger.show > *:nth-child(5) {
    transition-delay: 0.32s;
}
.stagger.show > *:nth-child(6) {
    transition-delay: 0.4s;
}

@media (max-width: 960px) {
    .topbar {
        display: none;
    }
    .site-header {
        top: 0;
    }
    .desktop-nav,
    .quote-btn {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}
@media (max-width: 620px) {
    .nav-shell {
        width: calc(100% - 20px);
    }
    .hero {
        min-height: 470px;
        padding-top: 135px;
    }
    .section {
        padding: 72px 14px;
    }
    .premium-shell {
        padding: 24px;
        border-radius: 26px;
    }
    .services-grid,
    .process-steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .tech-badges {
        grid-template-columns: 1fr;
    }
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal,
    .stagger > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
