:root {
    --bg-dark: #fcfaff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --primary: #9d36ff;
    --primary-gradient: linear-gradient(135deg, #9d36ff 0%, #ff3b8d 50%, #00d2ff 100%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #1e293b;
    --gold: #d4af37;
    --border-color: rgba(157, 54, 255, 0.1);
    --shadow-card: 0 10px 40px -10px rgba(157, 54, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: clamp(60px, 10vw, 120px) 0;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 700;
    border-radius: 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}


.btn-shape-1 {

    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.btn-shape-2 {

    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-shape-3 {

    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
    padding-right: 50px;

}

.btn-shape-4 {

    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    color: var(--text-main);
    transform: translateY(-2px);

    filter: drop-shadow(0 10px 20px rgba(157, 54, 255, 0.4));
}

.btn-primary:hover::before {
    opacity: 1;
}

#hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-areas: "stack";
    align-items: center;
    background-color: var(--bg-dark);
}

.slide {
    grid-area: stack;
    width: 100%;

    min-height: 100vh;

    opacity: 0;
    visibility: hidden;
    transition: opacity 1.0s ease-in-out, visibility 1.0s;
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-subtitle,
.hero-title,
.hero-desc,
.hero-btn-wrapper {
    transition: opacity 0.5s ease;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 24px;
    max-width: var(--container-width);
    margin: 0 auto;
}


.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 800;
    opacity: 0;
    transform: translateY(30px);
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    font-weight: 500;
}

.hero-btn-wrapper {
    opacity: 0;
    transform: translateY(20px);
}

.hero-btn-wrapper .btn {
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px) scale(0.95);
}

.hero-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    filter: brightness(0.9);
    transition: transform 0.5s ease;
}


.slide[data-layout="standard"] .hero-text {
    order: 1;
    text-align: left;
}

.slide[data-layout="standard"] .hero-image-wrapper {
    order: 2;
    transform: translateX(30px) scale(0.95);
}

.slide[data-layout="reverse"] .hero-text {
    order: 2;
    text-align: left;
}

.slide[data-layout="reverse"] .hero-image-wrapper {
    order: 1;
    transform: translateX(-30px) scale(0.95);
}


.slide.active .hero-subtitle {
    animation: fadeUp 0.8s forwards 0.2s;
}

.slide.active .hero-title {
    animation: fadeUp 0.8s forwards 0.3s;
}

.slide.active .hero-desc {
    animation: fadeUp 0.8s forwards 0.4s;
}

.slide.active .hero-btn-wrapper {
    animation: fadeUp 0.8s forwards 0.5s;
}

.slide.active .hero-image-wrapper {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.slide.exiting {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.slide.exiting .hero-subtitle,
.slide.exiting .hero-title,
.slide.exiting .hero-desc,
.slide.exiting .hero-btn-wrapper {
    animation: fadeOutUp 0.8s forwards;
}

.slide.exiting .hero-image-wrapper {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

#process {
    background-color: var(--bg-dark);
    position: relative;
}

.process-wrapper {
    position: relative;
    margin-top: 60px;
}


#process .container {
    max-width: 95%;
    padding: 0 40px;
}


.process-line {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(15, 23, 42, 0.05);
    z-index: 0;
    overflow: hidden;
}

.process-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.process-line.active::before {
    width: 100%;
}


.process-steps-desktop {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step-item {
    flex: 1;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    transition: var(--transition-smooth);
    box-shadow: 0 0 0 10px var(--bg-dark), 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-item:hover .step-number {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 10px var(--bg-dark), 0 0 30px rgba(99, 102, 241, 0.4);
}

.step-item h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}


.process-steps-mobile {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
}

.process-steps-mobile .step-item {
    padding: 0;
}

.process-steps-mobile .step-number {
    width: 60px;
    height: 60px;
    font-size: 20px;
    margin-bottom: 20px;
}

.show-more-steps {
    display: none;
    grid-column: span 2;
    margin-top: 30px;
    text-align: center;
}

.show-more-steps .btn {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    min-width: 200px;
    white-space: nowrap;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.show-more-steps .btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.show-more-steps .btn {
    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);

}

.additional-steps {
    display: none;
    grid-column: span 2;
}

.additional-steps.active {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    grid-column: 1 / -1;
}

.additional-steps.active .step-item {
    width: 100%;
    padding: 0 20px;
}

#services {
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 8vw, 3rem);
}

.mobile-block {
    display: inline;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(157, 54, 255, 0.15);
    border-color: rgba(157, 54, 255, 0.3);
}

.service-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-card .feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
}

.service-card .feature-item {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.service-card .feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}


@keyframes subtleWave {
    0% {
        transform: translateX(-150%) skewX(-15deg);
    }

    15% {
        transform: translateX(250%) skewX(-15deg);
    }


    100% {
        transform: translateX(250%) skewX(-15deg);
    }


}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(157, 54, 255, 0.08),
            transparent);
    transform: translateX(-150%) skewX(-15deg);
    pointer-events: none;
    z-index: 0;

    animation: subtleWave 24s infinite linear;
}


.services-grid .service-card:nth-child(1)::before {
    animation-delay: 0s;
}

.services-grid .service-card:nth-child(2)::before {
    animation-delay: 3s;
}

.services-grid .service-card:nth-child(3)::before {
    animation-delay: 6s;
}

.services-grid .service-card:nth-child(4)::before {
    animation-delay: 9s;
}

.services-grid .service-card:nth-child(5)::before {
    animation-delay: 12s;
}

.services-grid .service-card:nth-child(6)::before {
    animation-delay: 15s;
}

.services-grid .service-card:nth-child(7)::before {
    animation-delay: 18s;
}

.services-grid .service-card:nth-child(8)::before {
    animation-delay: 21s;
}


#sectors {
    background-color: var(--bg-surface);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sector-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: var(--transition-smooth);

}

.sector-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.sector-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.sector-card:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}

.sector-card h4 {
    font-size: 1.1rem;
    color: var(--text-light);
}

#cta {
    position: relative;
    padding: 160px 0;
    text-align: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background: radial-gradient(circle at center, rgba(157, 54, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 4rem;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .split-layout {
        gap: 40px;
    }

    .sector-grid {
        grid-template-columns: repeat(3, 1fr);
    }


    .process-steps-desktop {
        display: none;
    }

    .process-line {
        display: none;
    }

    .process-steps-mobile {
        display: grid;
    }

    .show-more-steps {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    #hero {
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100vh;
        align-items: center;
    }

    .slide {
        min-height: auto;
        padding-bottom: 40px;
    }



    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .slide[data-layout="standard"] .hero-image-wrapper,
    .slide[data-layout="reverse"] .hero-image-wrapper {
        order: 1;
        transform: translateY(20px);
        margin-bottom: 0;
    }

    .slide[data-layout="standard"] .hero-text,
    .slide[data-layout="reverse"] .hero-text {
        order: 2;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-image {
        max-height: 350px;
        width: 100%;
    }

    .split-layout {
        flex-direction: column;
    }

    .split-visual {
        width: 100%;
        height: 300px;
        order: -1;
    }

    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sector-card {
        padding: 20px 10px;
        min-height: 140px;
    }

    .sector-card svg {
        width: 32px;
        height: 32px;
        margin-bottom: 12px;
    }

    .sector-card h4 {
        font-size: 0.9rem;
    }

    .mobile-block {
        display: block;
        margin-top: 5px;
    }

    .cta-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .cta-desc {
        font-size: 1rem;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    #cta {
        padding: 60px 0;
    }

    .cta-btn {
        padding: 15px 30px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        width: auto;
        min-width: 200px;
    }

    .process-steps-mobile .step-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .step-item h3 {
        font-size: 1.1rem;
    }

    .step-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .process-steps-mobile {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .show-more-steps {
        grid-column: span 1;
    }

    .additional-steps.active {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


@media (max-width: 380px) {
    :root {
        --header-height: 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .sector-card {
        padding: 15px 5px;
    }

    .sector-card h4 {
        font-size: 0.8rem;
    }
}


.bg-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.05;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    top: -150px;
    left: -150px;
    background: #9d36ff;
}

.blob-2 {
    bottom: -150px;
    right: -150px;
    background: #00d2ff;
}

.blob-3 {
    top: 40%;
    left: 60%;
    background: #ff3b8d;
    width: 400px;
    height: 400px;
    animation-duration: 25s;
}

@keyframes blobFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}


.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;

    gap: 20px;

    margin-top: 40px;
}

.bento-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;

    padding: 30px;

    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}


.item-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 240, 255, 0.4) 100%);
}

.item-wide {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.item-tall {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}


.bento-grid:hover .bento-item {
    opacity: 0.5;
    transform: scale(0.98);
    filter: grayscale(0.5);
}

.bento-grid .bento-item:hover {
    opacity: 1;
    transform: scale(1.02);
    filter: grayscale(0);
    box-shadow: 0 20px 40px rgba(157, 54, 255, 0.15);
    border-color: rgba(157, 54, 255, 0.3);
    z-index: 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-icon {
    width: 50px;

    height: 50px;

    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);

    transition: transform 0.4s ease;
}

.bento-icon svg {
    width: 24px;
    height: 24px;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary-gradient);
    color: #fff;
}

.item-wide .bento-header {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 15px;

}

.item-wide .bento-icon {
    margin-bottom: 0;
}

.bento-item h3 {
    font-size: 1.25rem;

    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.item-large h3 {
    font-size: 1.75rem;

    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;

    line-height: 1.5;
}

.bento-tags {
    margin-top: 25px;

    display: flex;
    gap: 8px;

    flex-wrap: wrap;
}

.bento-tags span {
    padding: 6px 14px;

    background: rgba(157, 54, 255, 0.1);
    color: var(--primary);
    border-radius: 16px;
    font-size: 0.85rem;

    font-weight: 600;
}


@media (max-width: 968px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item-large,
    .item-wide,
    .item-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .item-large {
        min-height: auto;
    }
}


.marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 80px;

    padding-right: 80px;

    width: max-content;
    flex-shrink: 0;
    animation: marqueeScroll 40s linear infinite;
    min-width: 100%;
    justify-content: space-around;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
}

.marquee-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .marquee-track {
        gap: 40px;
        padding-right: 40px;
        animation-duration: 25s;
    }

    .marquee-item img {
        height: 50px;
    }
}