.service-section,
.cta {
    border-top: 1px solid #e0e0e0;
}

.service-header {
    padding: 40px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 400;
    color: var(--clr-text-main);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 16px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--clr-border)
}

.service-card {
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-content {
    padding: 20px;
}

.service-card:last-child {
    border-right: none;
}

.service-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--clr-text-main);
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #000;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.service-link:hover {
    color: var(--clr-text-muted);
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(2) {
        border-right: none;
    }

    .service-card:nth-child(3) {
        border-top: 1px solid #e0e0e0;
        grid-column: span 2;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-header {
        padding: 30px 20px 20px
    }

    .section-title {
        font-size: 24px;
    }

    .service-card {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .service-card:last-child {
        border-bottom: none;
    }

    .service-card:nth-child(3) {
        grid-column: span 1;
    }
}

/* CTA Section  */

.cta .inner {
    padding: 40px;
    display: flex;
    gap: 120px;
    justify-content: space-between;
    align-items: center;

    h3 {
        font-size: 24px;
        font-weight: 500;
        letter-spacing: -1px;
        max-width: 65%
    }
}

/* Image Banner Section */
.image-banner-section {
    border-top: 1px solid var(--clr-border);
    background-color: #fff;
}

.banner-image-container {
    width: 100%;
    height: 400px;
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=1200&h=400&q=80');
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .banner-image-container {
        height: auto;
        aspect-ratio: 1 / 1;
        background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=800&h=800&q=80');
    }

    .cta .inner {
        flex-direction: column;
        gap: 45px;
        padding: 40px 20px;
        align-items: start;

        h3 {
            max-width: 100%
        }
    }
}

/* Stats Section */
.stats-section {
    border-top: 1px solid var(--clr-border);
    background-color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 40px;
    border-right: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 32px;
    font-weight: 400;
    color: var(--clr-text-main);
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--clr-text-main);
    margin-bottom: 8px;
}

.stat-description {
    font-size: 12px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid var(--clr-border);
    }
}

@media (max-width: 768px) {
    .stat-item {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* Features Section */
.features-section {
    border-top: 1px solid var(--clr-border);
    background-color: #fff;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #635bff;
    font-size: 24px;
    margin-bottom: 24px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.feature-text strong {
    color: var(--clr-text-main);
    font-weight: 500;
}

.feature-link {
    color: #635bff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.feature-link:hover {
    color: #000;
}

@media (min-width: 993px) {
    .border-none-desktop {
        border-right: none !important;
    }

    .border-top-line {
        border-top: 1px solid #e0e0e0;
    }
}

/* Slider Section */
.slider-section {
    border-top: 1px solid var(--clr-border);
}

.slider-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 60px 40px 40px;
}

.slider-header-left {
    max-width: 45%;
}

.slider-header-left .section-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 0;
}

.slider-header-right {
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.slider-header-right .section-description {
    text-align: left;
    margin-bottom: 24px;
}

.slider-nav {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.slider-btn:hover {
    background-color: #f5f5f5;
}

.slider-track-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 0 40px 60px;
}

.slider-track-container::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 16px;
}

.slide-card {
    flex: 0 0 calc((100% - (3 * 16px)) / 4);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.slide-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: 24px;
}

.slide-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: white;
    font-weight: 700;
    font-size: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--clr-text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.slide-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

@media (max-width: 992px) {
    .slider-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .slider-header-left,
    .slider-header-right {
        max-width: 100%;
    }

    .slider-header-right {
        align-items: flex-start;
    }

    .slide-card {
        flex: 0 0 calc((100% - (1.5 * 24px)) / 2.5);
    }
}

@media (max-width: 768px) {
    .slide-card {
        flex: 0 0 100%;
    }

    .slider-track {
        gap: 16px;
    }

    .slider-track-container {
        padding: 0 20px 40px;
    }

    .slider-header-container {
        padding: 40px 20px 20px;
    }

    .slide-image-wrapper {
        height: 320px;
    }
}

/* Promo Section */
.promo-section {
    border-top: 1px solid var(--clr-border);
    background-color: #fff;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.promo-card {
    position: relative;
    overflow: hidden;
    background-color: #fbfbfb;
    display: flex;
    align-items: center;
    min-height: 200px;
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 32px 40px;
    max-width: 75%;
}

.promo-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}

.promo-text strong {
    color: var(--clr-text-main);
    font-weight: 600;
}

.promo-startups::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: linear-gradient(135deg, #ff00c8 0%, #9000ff 50%, #5d00ff 100%);
    filter: blur(24px);
    z-index: 0;
    opacity: 0.95;
    border-radius: 50%;
    transform: rotate(15deg);
}

.promo-atlas::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, #ffd33d 0%, #f99026 50%, #f06a15 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-content {
        max-width: 85%;
        padding: 32px 24px;
    }
}

/* Testimonial Section */
.testimonial-section {
    border-top: 1px solid var(--clr-border);
    background-color: #fff;
}

.testimonial-top {
    padding: 80px 40px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.testimonial-content {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease forwards;
}

.testimonial-content.active {
    display: flex;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 32px;
}

.testimonial-quote {
    font-size: 28px;
    font-weight: 400;
    color: var(--clr-text-muted);
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.testimonial-author {
    font-size: 15px;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}

.testimonial-author strong {
    color: var(--clr-text-main);
    font-weight: 600;
}

.testimonial-bottom {
    display: flex;
    border-top: 1px dotted #d9d9d9;
}

.brand-tab {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    cursor: pointer;
    position: relative;
    color: #a0a0a0;
    transition: color var(--transition-fast);
}

.brand-tab .logo-text {
    font-size: 22px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif;
    letter-spacing: -0.5px;
}

.brand-tab:hover {
    color: #666;
}

.brand-tab.active {
    color: var(--clr-text-main);
}

.tab-indicator {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}

.brand-tab.active .tab-indicator {
    background-color: #635bff;
}

@media (max-width: 768px) {
    .testimonial-top {
        padding: 40px 20px;
    }

    .testimonial-quote {
        font-size: 22px;
    }

    .testimonial-bottom {
        flex-wrap: wrap;
    }

    .brand-tab {
        flex: 0 0 50%;
        border-bottom: 1px dotted #d9d9d9;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Process Section */
.process-section {
    background-color: #0a2540;
    position: relative;
    padding: 100px 0 140px;
    color: white;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.process-text-block {
    max-width: 800px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.process-heading {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.process-heading .muted {
    color: #8792a2;
}

.process-heading.small {
    font-size: 24px;
    margin-bottom: 0;
}

.process-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.purple-btn {
    background-color: #635bff;
    border-color: #635bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.purple-btn:hover {
    background-color: #5851d8;
}

.dark-btn {
    background-color: transparent;
    color: #a3acb9;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.dark-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.process-diagram-wrapper {
    margin: 60px auto 0;
    max-width: 1000px;
}

.process-diagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    padding-top: 60px;
}

.process-col {
    display: flex;
    justify-content: center;
    position: relative;
}

@keyframes slideFlow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 12px 0;
    }
}

.process-node {
    background-color: #635bff;
    color: white;
    padding: 12px 0;
    width: 75%;
    text-align: center;
    border-radius: 6px;
    z-index: 2;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}

/* Connectors */
.process-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, #4f5b76 50%, transparent 50%);
    background-size: 12px 2px;
    z-index: 1;
    transform: translateY(-50%);
    animation: slideFlow 1s linear infinite;
}

.process-col:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -12.5%;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #4f5b76;
    transform: translateY(-50%);
    z-index: 3;
}

/* Backward Loop */
.backward-loop {
    position: absolute;
    top: 0;
    left: 12.5%;
    width: 50%;
    height: 60px;
    border-top: 2px dashed #4f5b76;
    border-left: 2px dashed #4f5b76;
    border-right: 2px dashed #4f5b76;
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

/* Arrow pointing down to Analysis */
.backward-loop::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #4f5b76;
}

@media (max-width: 768px) {
    .process-diagram {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 0;
    }

    .process-node {
        width: 100%;
    }

    .backward-loop {
        display: none;
    }

    .process-col:not(:last-child)::after {
        width: 2px;
        height: 40px;
        top: auto;
        bottom: -40px;
        right: 50%;
        background: repeating-linear-gradient(to bottom, #4f5b76, #4f5b76 4px, transparent 4px, transparent 8px);
        transform: translateX(50%);
    }

    .process-col:not(:last-child)::before {
        top: auto;
        bottom: -40px;
        right: 50%;
        border-top: 7px solid #4f5b76;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: none;
        transform: translateX(50%);
    }
}

/* Blog Section */
.blog-section {
    background-color: #fff;
    color: #1a1f36;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.blog-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.blog-title .muted {
    display: block;
    color: #697386;
    font-size: 24px;
    font-weight: 400;
    margin-top: 8px;
}



.blog-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 520px;
    /* fixed height */
    gap: 0;
}

.blog-card {
    display: flex;
    flex-direction: column;
    width: 60px;
    /* Explicit width instead of flex */
    flex-shrink: 1;
    /* Allow shrinking if overflow occurs as fallback */
    height: 100%;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 0;
    border-right: 4px solid #fff;
}

.blog-card:last-child {
    border-right: none;
}

.blog-card.expanded,
.blog-grid .blog-card:hover {
    width: calc(100% - 240px);
    /* 100% minus the 4 other 60px squeezed cards */
}

.blog-grid:has(.blog-card:hover) .blog-card.expanded:not(:hover) {
    width: 60px;
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #000;
    overflow: hidden;
    border-radius: 0;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-image-wrapper img,
.blog-card.expanded .blog-image-wrapper img {
    opacity: 1;
    transform: scale(1.02);
}

.blog-grid:hover .blog-card.expanded:not(:hover) .blog-image-wrapper img {
    opacity: 0.85;
    transform: scale(1);
}

.blog-overlay-text {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}

.blog-card.expanded .blog-overlay-text,
.blog-grid .blog-card:hover .blog-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.blog-grid:hover .blog-card.expanded:not(:hover) .blog-overlay-text {
    opacity: 0;
    transform: translateY(10px);
    transition-delay: 0s;
}

.blog-info-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

.blog-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.blog-card.expanded .blog-info,
.blog-grid .blog-card:hover .blog-info {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.2s;
}

.blog-grid:hover .blog-card.expanded:not(:hover) .blog-info {
    opacity: 0;
    transition-delay: 0s;
}

.blog-text {
    font-size: 16px;
    line-height: 1.5;
    color: #1a1f36;
    max-width: 650px;
    min-width: 400px;
    flex: 1;
    padding-right: 24px;
}

.blog-text strong {
    font-weight: 600;
}

.blog-text .muted {
    color: #697386;
    font-weight: 400;
}

.blog-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #635bff;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    white-space: nowrap;
    transition: border-color 0.2s;
    border-radius: 0;
    flex-shrink: 0;
}

.blog-card:hover .blog-action {
    border-color: #635bff;
}

@media (max-width: 768px) {
    .blog-grid {
        flex-direction: row;
        height: auto;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 24px;
        /* Space for scrollbar */
        justify-content: flex-start;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
    }

    .blog-grid::-webkit-scrollbar {
        display: none;
    }

    /* Force all cards to be standard slider items, overriding all hover/accordion widths */
    .blog-card,
    .blog-card.expanded,
    .blog-grid .blog-card:hover,
    .blog-grid:has(.blog-card:hover) .blog-card.expanded:not(:hover) {
        width: auto !important;
        flex: 0 0 85% !important;
        /* Show 85% of card so next one is partially visible */
        scroll-snap-align: start;
        border-right: none;
        border: 1px solid #e2e8f0;
        height: auto;
    }

    .blog-image-wrapper {
        height: 240px;
        width: 100%;
    }

    .blog-overlay-text {
        opacity: 1 !important;
        transform: translateY(0) !important;
        font-size: 24px;
        bottom: 16px;
        left: 16px;
    }

    .blog-info-wrapper {
        flex: none;
        /* disable flex stretch */
    }

    .blog-info {
        position: relative;
        /* Change from absolute to relative flow */
        width: 100% !important;
        max-width: none;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .blog-text {
        min-width: 0;
        padding-right: 0;
    }
}