:root {
    /* Color Palette */
    --primary-blue: #111a51;
    --light-blue-1: #D6E0F7;
    --light-blue-2: #E3EAF9;
    --accent-orange: #F66123;
    --gray-light: #CBCBCB;
    --black: #000000;
    --white: #FFFFFF;
    --overlay: rgba(32, 57, 112, 0.5);

    /* Typography */
    --font-heading: 'Questrial', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    text-wrap: balance;
    /* Prevents single "orphan" words dropping to a new line */
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dark-bg {
    background-color: var(--primary-blue);
    color: var(--white);
}

.light-bg {
    background-color: var(--white);
}

.white-text {
    color: var(--white) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
    /* spacing above image */
}

.logo {
    display: inline-block;
    max-height: 48px;
    width: auto;
    margin-bottom: 40px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 200;
    margin-bottom: 40px;
    color: var(--gray-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(246, 97, 35, 0.25);
    border: 1px solid transparent;
}

.btn-accent:hover {
    background-color: #e5551c;
    box-shadow: 0 6px 20px rgba(246, 97, 35, 0.4);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: var(--light-blue-1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-dark:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-features {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 0px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 32px;
    margin-top: 10px;
}

.feature-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 300;
    text-align: left;
    color: var(--white);
    line-height: 1.4;
}

.feature-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(246, 97, 35, 0.15), rgba(246, 97, 35, 0.05));
    border: 1px solid rgba(246, 97, 35, 0.2);
    border-radius: 12px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted paragraph for contrast with bold text */
}

.feature-item strong {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.hero-image-wrapper {
    position: relative;
    margin: 0 auto -100px;
    /* Centers horizontally and creates overlap downwards */
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.hero-image-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* Logos Banner */
.logo-banner {
    padding: 160px 0 60px;
    /* Extra top padding for overlapping image */
    background-color: var(--white);
}

.logo-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.trusted-by {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-light);
    line-height: 1.4;
}

.trusted-by .orange-text {
    color: var(--accent-orange);
}

.logos-ticker-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logos-grid {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
    padding-right: 50px;
    /* acts as the gap between logos */
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Section Shared */
.section-header {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--black);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-wrap: pretty;
    /* Prevents trailing single words */
}

/* Recent Articles */
.recent-articles {
    padding: 80px 0;
    border-top: 1px solid var(--light-blue-1);
    border-bottom: 1px solid var(--light-blue-1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.article-card img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.article-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.article-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
    margin-top: 10px;
    text-wrap: pretty;
}

/* Integrations Section */
.integrations-section {
    padding: 80px 0;
}

.pt-extra {
    padding-top: 40px;
}

.badge {
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.two-columns {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.two-columns>div {
    flex: 1;
}

.rounded-image {
    width: 100%;
    border-radius: 8px;
}

.left-col video.rounded-image {
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-box {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.step-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-box p {
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
}

.step-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 3px;
}

.step-text h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 5px;
}

.step-text p {
    font-size: 13px;
    color: var(--light-blue-1);
    font-weight: 300;
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.sub-label {
    color: var(--light-blue-1);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.solutions-section h2 {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-blue);
}

.solutions-slider {
    margin-top: 60px;
    padding-bottom: 60px;
    /* Space for pagination dots */
    position: relative;
}

/* Custom Swiper Navigation & Pagination */
.solutions-slider .swiper-pagination {
    bottom: 0px !important;
}

.solutions-slider .swiper-pagination-bullet {
    background: var(--primary-blue);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.solutions-slider .swiper-pagination-bullet-active {
    background: var(--accent-orange);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

.solutions-slider .swiper-button-next,
.solutions-slider .swiper-button-prev {
    background-color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--accent-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solutions-slider .swiper-button-next:after,
.solutions-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.solutions-slider .swiper-button-next:hover,
.solutions-slider .swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {

    .solutions-slider .swiper-button-next,
    .solutions-slider .swiper-button-prev {
        display: none;
    }
}

.solutions-slider .swiper-button-next.swiper-button-disabled,
.solutions-slider .swiper-button-prev.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.solution-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--overlay);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-align: left;
    color: var(--white);
}

.card-overlay h3 {
    font-size: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 10px;
}

.card-overlay p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
}

/* Case Study Section */
.case-study-section {
    padding: 80px 0;
    background-color: var(--white);
}

.case-study-container {
    display: flex;
    align-items: stretch;
}

/* left-slider styles moved below .video-embed */

.video-embed {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.left-slider {
    flex: 1;
    position: relative;
    min-width: 0;
    display: flex;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.case-image-slider {
    height: 100%;
}

.case-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-pagination {
    bottom: 20px !important;
}

.case-pagination .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
}

.case-pagination .swiper-pagination-bullet-active {
    background: var(--accent-orange);
    opacity: 1;
}

.right-content {
    flex: 1;
    background-color: var(--primary-blue);
    padding: 60px;
    color: var(--white);
    min-width: 0;
}

.right-content p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.6;
}

.right-content .author {
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
}

.right-content .role {
    font-size: 13px;
    font-weight: 300;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
}

.main-title {
    text-align: center;
    font-family: var(--font-body);
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 80px;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 80px;
}

.stat-box {
    flex: 1;
}

.stat-box h3 {
    font-size: 72px;
    font-weight: 300;
    color: var(--light-blue-1);
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
}

.reviews-slider {
    padding-bottom: 50px;
    position: relative;
    width: 100%;
}

.reviews-slider .swiper-slide {
    height: auto;
}

.reviews-slider .swiper-pagination {
    bottom: 0px !important;
}

.reviews-slider .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.4;
}

.reviews-slider .swiper-pagination-bullet-active {
    background: var(--accent-orange);
    opacity: 1;
}

.review-card {
    height: 100%;
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    color: var(--black);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.google-summary {
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff 0%, #f4f6fb 100%);
    border: 1px solid var(--light-blue-1);
}

.google-summary img {
    margin-bottom: 12px;
    width: 36px;
    height: auto;
}

.g-text {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.rating-text {
    font-size: 14px;
    color: var(--gray-light);
    margin-top: 8px;
    font-weight: 500;
}

.stars {
    color: #FFB400;
    font-size: 24px;
    letter-spacing: 2px;
}

.stars.small {
    font-size: 18px;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-info span {
    font-size: 13px;
    color: var(--gray-light);
}

.user-review p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
    flex-grow: 1;
    /* Pushes read more to bottom */
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-columns {
        flex-direction: column;
    }

    .case-study-container {
        flex-direction: column;
    }

    .video-embed {
        height: auto;
    }
}

@media (max-width: 768px) {

    /* Layout Setup */
    .logo-banner {
        padding: 120px 0 40px;
    }

    .hero-image-wrapper {
        margin-bottom: -70px;
        width: 95%;
        max-width: 400px;
    }

    .recent-articles,
    .integrations-section,
    .case-study-section {
        padding: 50px 0;
    }

    .solutions-section,
    .stats-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 34px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .main-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .stat-box h3 {
        font-size: 52px;
        margin-bottom: 5px;
    }

    /* Structural Fixes */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .right-content {
        padding: 40px 25px;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 18px 20px;
    }

    /* Hero Features Box */
    .hero-container {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1;
        padding-bottom: 20px !important;
    }

    .hero-image-wrapper {
        order: 2;
        margin-bottom: 30px !important;
        width: 95%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
    }

    .hero-buttons {
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .hero-features {
        order: 4;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .feature-divider {
        display: none !important;
    }
}

/* --- CRO TEXT HIGHLIGHT UTILITIES --- */
.text-accent {
    color: var(--accent-orange);
}

.text-primary {
    color: var(--primary-blue);
}

.bg-highlight-blue {
    background-color: var(--light-blue-2);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    color: var(--black);
    /* Ensure contrast */
}

.bg-highlight-blue.text-primary {
    color: var(--primary-blue);
}

.bg-highlight-dark {
    background-color: var(--primary-blue);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.fw-bold-500 {
    font-weight: 500;
}

.fw-bold-600 {
    font-weight: 600;
}

.fw-bold-700 {
    font-weight: 700;
}

.text-dim {
    color: inherit;
}

.text-dim-white {
    color: inherit;
}

/* --- STICKY CTA --- */
.sticky-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px 0;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-cta.visible {
    bottom: 0;
}

.sticky-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-cta-text {
    font-size: 18px;
    display: none;
    /* Hidden on mobile by default to fit the button */
}

.sticky-cta .btn.sticky-btn {
    margin: 0;
    padding: 12px 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .sticky-cta-text {
        display: block;
    }

    .sticky-cta .btn.sticky-btn {
        width: auto;
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
}

.hero-content {
    order: 1;
    padding-bottom: 0px !important;
}

.hero-buttons {
    order: 2;
}

.hero-features {
    order: 3;
    margin-bottom: 60px;
}

.hero-image-wrapper {
    order: 4;
}