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

:root {
    --primary-blue: #4F46E5;
    --primary-dark: #000000;
    --text-dark: #000000;
    --text-gray: #6b7280;
    --text-dark-gray: #374151;
    --hero-copy-color: #18345a;
    --bg-white: #ffffff;
    --bg-light: #F8F9FF;
    --bg-purple: #E8E5FF;
    --border-color: #e5e7eb;
    --nav-height: 56px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    /* Offset the fixed nav so top content (like the Home link) isn't hidden */
    padding-top: var(--nav-height);
    --site-h-padding: 4%;
    padding-left: 0;
    padding-right: 0;
}

h1, h2, h3, h4 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.08;
    margin-bottom: 0.6rem;
}

/* Card heading / paragraph defaults for features, results, similar cards */
.feature-card h3,
.result-card h3,
.similar-card h3 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 0.45rem;
    color: var(--text-dark);
}

.feature-card p,
.result-card p,
.similar-card p {
    font-size: 20px;
    line-height: 1.45;
    color: var(--text-dark-gray);
    margin-bottom: 0.6rem;
}

/* Specific fixes: How We Work step headings and Why Choose Us expertise headings */
.how-it-works-section .section-header p,
.expertise-card h4 {
    font-weight: 500 !important;
}

/* Mobile overrides: card headings and paragraphs */
@media (max-width: 640px) {
    .feature-card h3,
    .result-card h3,
    .similar-card h3 {
        font-size: 20px;
    }

    .feature-card p,
    .result-card p,
    .similar-card p {
        font-size: 18px;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    padding: 0.2rem 0.5rem;
    z-index: 1000;
}

.nav-container {
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    background: #F4F7FF;
    padding: 0 1rem;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    height: var(--nav-height);
}
nav {
    height: var(--nav-height);
}
.hero {
    /* reduce top space: smaller top padding so hero appears nearer the nav */
    padding: 1.5rem 4% 1.5rem;
}

.logo img {
    height: 35px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Footer Styles */
.site-footer {
    position: relative;
    background: linear-gradient(#222223, #1b1b1c);
    color: #fff;
    padding-top: 28px;
    padding-bottom: 18px;
    margin-top: 0; /* remove gap so footer sits immediately after last section */
    box-shadow: inset 0 8px 40px rgba(0,0,0,0.6);
}

/* subtle white highlight at the very top inside the footer */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

/* matching white highlight at the bottom */
.site-footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(255,255,255,0.45), rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 14px 0;
    max-width: 1398px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-logo {
    font-size: 1.7rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-center {
    justify-self: start; /* keep tagline left-aligned in the center column */
    margin-left: 28px; /* shift the tagline right of the logo but not centered */
    text-align: left;
}

.footer-tagline {
    color: #ffffff;
    font-size: 1rem;
    display: inline-block;
    max-width: 720px;
}

.footer-right {
    display: flex;
    gap: 2.5rem;
    justify-self: end;
}

.footer-right a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer-right a:hover {
    color: #7be1ff;
}

/* Accent gradient line that stretches most of the width */
.footer-accent {
    height: 4px;
    max-width: 1398px;
    margin: 20px auto;
    border-radius: 4px;
    background: linear-gradient(90deg, #4fc5ff 0%, #6ec1ff 20%, #8b6bfe 100%);
    box-shadow: 0 2px 8px rgba(72,72,72,0.25) inset;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    color: #9b9b9b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* Two-column header row: logo (left) + tagline (right), nav links on a centered second row */
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.35rem 0.75rem;
        padding: 14px 0;
        max-width: 408px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-self: start;
    }

    .footer-center {
        margin-left: 16px;
        justify-self: start;
        text-align: left;
    }

    .footer-tagline {
        color: #d1d1d1;
        font-size: 0.95rem;
        display: inline-block;
        max-width: 100%;
        text-align: left;
    }

    /* Nav links should sit on the next row and be centered */
    .footer-right {
        grid-column: 1 / -1;
        justify-self: center;
        display: flex;
        gap: 1.25rem;
        margin-top: 0.35rem;
    }

    .footer-accent {
        max-width: 408px;
        margin: 14px auto;
    }
}

.cta-button {
    background: #0b0b0b;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(0,0,0,0.08);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11,11,11,0.12);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    margin-left: auto;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #F4F7FF;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-menu .cta-button {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    /* compact top spacing so hero appears just under the nav */
    padding: 1.5rem 4% 1.5rem;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Our Thesis hero (left text + right illustration) */
.thesis-hero {
    padding: 4.5rem 4% 4.5rem;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 2rem;
    align-items: center;
    background-image: url('public/thesis-hero-bg.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
}

.thesis-hero .hero-text {
    text-align: left;
}

.thesis-hero .hero-badge {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-block;
    background: linear-gradient(90deg, #60A5FA 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thesis-hero .hero-text h1 {
    font-size: 54px;
    font-weight: 500;
    line-height: 1.0;
    margin: 0 0 20px 0;
    color: var(--text-dark);
    max-width: 720px;
}

.thesis-hero .hero-text p {
    font-size: 24px;
    color: var(--text-gray);
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.thesis-hero .thesis-visual img {
    width: 520px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
}

@media (max-width: 768px) {
    .thesis-hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 4%;
        background-position: center top;
        /* hide the decorative background on small screens to avoid awkward cropping */
        background-image: none;
        text-align: center;
    }

    .thesis-hero .hero-text {
        order: 1;
        text-align: center;
    }

    .thesis-hero .thesis-visual {
        order: 2;
        margin-top: 1.25rem;
    }

    .thesis-hero .thesis-visual img {
        width: 360px;
        max-width: 90%;
        margin: 0 auto;
    }

    .thesis-hero .hero-badge { font-size: 20px; }
    .thesis-hero .hero-text p { font-size: 17px; }

    /* Standardize mobile heading sizes across pages */
    .hero h1,
    .thesis-hero .hero-text h1,
    .about-hero h1 {
        font-size: 38px !important;
        line-height: 1.05;
    }

    /* All other section headings should be 32px on mobile */
    .section-header h2,
    .problem-section .section-header h2,
    .solution-section .section-header h2,
    .mission-section .section-header h2,
    .our-story-section .section-header h2,
    .services-section .section-header h2,
    .how-it-works-section .section-header h2,
    .execution-section .section-header h2,
    .trusted-section .section-header h2,
    .case-studies-section .section-header h2,
    .expertise-section .section-header h2 {
        font-size: 32px !important;
        line-height: 1.08;
    }
}

.hero-badge {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px; /* gap between gradient line and title */
    padding: calc(0.45rem - 3px) 0 0.45rem;
    line-height: 1.6;
    display: inline-block;
    background: linear-gradient(90deg, #60A5FA 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.00;
    margin-top: 0;
    margin-bottom: 24px; /* gap between title and subtitle */
    max-width: 820px;
}


.hero p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    color: var(--hero-copy-color);
    margin: 0 auto 32px; /* gap between subtitle and buttons */
    max-width: 760px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Desktop: fixed button width per design */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    width: 288px;
    max-width: 100%;
    font-size: 18px;
    font-weight: 300;
    justify-content: center; /* center button contents */
    text-align: center;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    justify-content: center;
    text-align: center;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: white;
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-dark);
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-light);
}

/* Hero Diagram */
.hero-diagram {
    width: 100%;
    max-width: 920px;
    margin: -0.5rem auto 0;
    padding: 0;
    position: relative;
}

.hero-diagram img {
    width: 100%;
    height: auto;
    display: block;
}

/* Benefits Bar */
.benefits-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.2rem 0;
    background: transparent;
    border-top: none;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

@media (max-width: 600px) {
    .benefits-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.8rem 1rem;
    }

    /* Make first two items share the first row, third item on its own centered row */
    .benefits-bar .benefit-item {
        width: calc(50% - 0.5rem);
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
    }

    .benefits-bar .benefit-item:nth-child(3) {
        width: 100%;
    }
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Left-align header specifically for the Real Problem section and tighten spacing */
.problem-section .section-header {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding-left: 0;
}

/* Reduce top padding for the problem section so header and content sit closer */
.problem-section {
    padding-top: 2rem;
}

/* Match the Our Solution header and paragraph to hero typography */
.solution-section .section-header h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 44px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.05;
}

.solution-section .section-header p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: var(--hero-copy-color);
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    max-width: 720px;
}

.section-badge {
    color: #876EE1;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    background: #F0F0FF;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: none;
}

/* Use custom purple for the Real Problem and Our Solution badges */
.problem-section .section-badge,
.solution-section .section-badge,
.case-studies-section .section-badge 
.how-it-works-section .section-badge {
    color: #876EE1;
    background: #F0F0FF;
    border: none;
}

.section-header h2 {
    font-size: 44px;
    font-weight: 500;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Consolidated subtitle sizes for specific sections per design */
.problem-section .section-header p,
.solution-section .section-header p,
.case-studies-section .section-header p,
.mission-section .section-header p,
.how-it-works-section .section-header p,
.trusted-section .section-header p,
.expertise-section .section-header p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
}

@media (max-width: 640px) {
    .problem-section .section-header p,
    .solution-section .section-header p,
    .case-studies-section .section-header p,
    .mission-section .section-header p,
    .how-it-works-section .section-header p,
    .trusted-section .section-header p,
    .expertise-section .section-header p {
        font-size: 18px;
    }
}

/* Ensure these specific sections use the updated header sizes */
.problem-section .section-header h2,
.solution-section .section-header h2,
.mission-section .section-header h2,
.our-story-section .section-header h2,
.services-section .section-header h2,
.how-it-works-section .section-header h2,
.execution-section .section-header h2,
.trusted-section .section-header h2 {
    font-size: 44px;
    margin-bottom: 24px;
}

.problem-section .section-header p,
.case-studies-section .section-header p,
.solution-section .section-header p,
.mission-section .section-header p,
.our-story-section .section-header p,
.services-section .section-header p,
.how-it-works-section .section-header p,
.execution-section .section-header p,
.trusted-section .section-header p {
    font-size: 20px;
    margin: 0 auto;
    max-width: 800px;
}

/* Real Problem Section */
.problem-section {
    background: var(--bg-white);
}

.problem-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.problem-text {
    margin-top: 0;
    max-width: 640px;
}

.problem-visual {
    align-self: start;
}

.problem-text h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.05;
}

.problem-text p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: var(--hero-copy-color);
    line-height: 1.6;
    margin: 0;
}

.problem-visual {
    background: transparent;
    border-radius: 20px;
    height: 300px; /* increased visual height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.problem-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive: reduce visual height on smaller viewports */
@media (max-width: 800px) {
    .problem-visual {
        height: 220px;
    }
}

/* Solution Section */
.solution-section {
    background: var(--bg-white);
}

.solution-grid {
    display: grid;
    /* fixed three-column layout on wide screens to keep cards in a single row */
    grid-template-columns: repeat(3, 443px);
    gap: 1rem;
    max-width: 1361px; /* 3*443 + 2*1rem gap */
    margin: 0 auto 3rem;
    justify-content: center;
    justify-items: center;
}

.solution-card {
    /* uniform full-card subtle purple gradient */
    background: linear-gradient(180deg, #F8F7FF 0%, #EFEAFF 100%);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
    /* intensify the full-card gradient on hover */
    background: linear-gradient(180deg, #F3EEFF 0%, #E8E5FF 100%);
}

.solution-card .icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* ensure the card text area doesn't have its own white backdrop */
.solution-card .card-content {
    background: transparent;
}

/* removed half-overlay; full-card gradient provides consistent background */

.solution-card .icon svg {
    width: 48px;
    height: 48px;
    fill: url(#icon-gradient);
}

.solution-card .card-content {
    flex: 1;
}

/* solution card typography is consolidated further below */

/* Paragraphs start flush with the left edge of the whole card (under the icon) - DESKTOP ONLY */
@media (min-width: 801px) {
    .solution-card p {
        margin-left: calc(-60px - 1.5rem);
        padding-left: 0;
    }
}

/* Force card content and descendants to be transparent so no inner white box appears */
.solution-card .card-content,
.solution-card .card-content *,
.solution-card h3,
.solution-card p {
    background: transparent !important;
}

/* Our Solution cards typography (desktop and mobile per Figma) */
.solution-section .solution-card h3 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.solution-section .solution-card p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .solution-section .solution-card h3 {
        font-size: 24px;
    }
    .solution-section .solution-card p {
        font-size: 16px;
    }
}

/* Our Solution card widths: desktop (443px) and mobile (392px) */
.solution-section .solution-card {
    flex: 0 0 443px;
    width: 443px;
    max-width: 443px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .solution-section .solution-card {
        flex: 0 0 392px;
        width: 392px;
        max-width: 392px;
    }
}

/* Case Studies Section */
.case-studies-section {
    background: var(--bg-white);
}

/* Responsive: row 1 has icon + heading, row 2 has paragraph spanning full width */
@media (max-width: 800px) {
    .solution-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 0.75rem 1rem;
        align-items: center; /* vertically center heading with icon */
        padding: 1.25rem;
    }
    .solution-card .icon {
        width: 48px;
        height: 48px;
        grid-column: 1;
        grid-row: 1;
    }
    .solution-card .card-content {
        display: contents;
    }
    .solution-card h3 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        align-self: center; /* ensure heading centers within the icon row */
    }
    .solution-card p {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin: 0.75rem 0 0 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

.case-studies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1360px;
    margin: 0 auto;
    justify-content: center;
}

.case-study-card {
    background: var(--bg-white);
    border: 2px solid #A195DC;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    width: 420px;
    height: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
    background: linear-gradient(to top, rgba(143, 114, 235, 0.12) 0%, rgba(232, 229, 255, 0.6) 50%, rgba(255,255,255,0.95) 100%);
    border-color: var(--primary-blue);
}

.case-study-image {
    width: 380px;
    height: 260px;
    border: 1px solid #BFACFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin: 0.9rem 0 0.6rem 20px;
}

.case-study-image img {
    width: 380px;
    height: 260px;
    object-fit: cover;
    display: block;
}

.case-study-content {
    padding: 1rem 1.5rem;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

.case-study-category {
    font-size: 16px;
    color: var(--text-dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Case studies: section heading, card heading, and card text sizes per Figma */
.case-studies-section .section-header h2 {
    font-size: 34px;
    margin: 0 0 0.5rem 0;
    line-height: 1.08;
    font-weight: 600;
}

.case-study-content h3 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.12;
}

/* (removed .case-study-card selector — case-study headings are controlled by .case-studies-section .case-study-content h3) */

.case-study-metric,
.case-study-content p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .case-study-content h3 { font-size: 20px; }
    .case-study-metric,
    .case-study-content p { font-size: 18px; }
    .case-detail-description { font-size: 18px; }
    .problem-text p { font-size: 18px; }
}

.view-solution-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-dark);
    border-radius: 20px;
    transition: all 0.3s;
    align-self: flex-start; /* keep button left-aligned while content stretches */
}

.view-solution-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Gradient border for view buttons when their parent card is hovered */
.case-study-card:hover .view-solution-btn,
.solution-card:hover .view-solution-btn {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(90deg, #FF7AA2 0%, #876EE1 50%, #60A5FA 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    color: var(--primary-dark);
}

/* How It Works Section */
.how-it-works-section {
    background: var(--bg-white);
}

.how-it-works-section .section-header h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 44px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.05;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 637px);
    gap: 2rem;
    justify-content: center;
    margin: 0 auto 2rem;
}

.step-card {
    background: linear-gradient(90deg, #E8F4FF 0%, #E8E5FF 100%);
    border: 2px solid transparent;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 637px;
    max-width: 100%;
    box-sizing: border-box;
    height: 192px;
}

.step-card .step-initial {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.step-card .step-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: left;
    overflow-y: auto;
    max-height: calc(100% - 2rem);
    font-size: 20px;
    line-height: 1.6;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
    /* slightly stronger horizontal gradient on hover */
    background: linear-gradient(90deg, #D6EEFF 0%, #D9CCFF 100%);
    border-color: var(--primary-blue);
}

.step-card:hover .step-initial {
    opacity: 0;
}

.step-card:hover .step-details {
    opacity: 1;
    pointer-events: auto;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    min-width: 40px;
}

.step-content {
    flex: 1;
    box-sizing: border-box;
    padding-right: 96px; /* reserve space for the arrow (desktop) */
}

.how-it-works-section .step-content h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.12;
}

.how-it-works-section .step-content p {
    font-size: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .how-it-works-section .step-content h3 {
        font-size: 24px;
    }
    .how-it-works-section .step-content p {
        font-size: 16px;
    }
    .steps-grid {
        grid-template-columns: 392px;
        justify-content: center;
        gap: 1rem;
        margin: 0 auto 1.5rem;
    }
    .step-card {
        width: 392px;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        height: auto; /* allow content to expand on mobile */
        min-height: 124px; /* preserve compact look when content is short */
    }
    .step-card .step-details {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Ensure hover detail text overrides any inline styles */
.how-it-works-section .step-card .step-details,
.how-it-works-section .step-card .step-details ul,
.how-it-works-section .step-card .step-details p,
.how-it-works-section .step-card .step-details li {
    font-size: 20px !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .how-it-works-section .step-card .step-details,
    .how-it-works-section .step-card .step-details ul,
    .how-it-works-section .step-card .step-details p,
    .how-it-works-section .step-card .step-details li {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

.step-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #8B5CF6;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.step-card:hover .step-icon {
    opacity: 0;
    transform: translateY(-6px);
}

/* hide the diagonal arrow icon on hover */
.step-card:hover .step-arrow {
    opacity: 0;
    transform: translate(6px, -50%);
    pointer-events: none;
}

.step-arrow {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #8B5CF6; /* purple icon color */
}

.step-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    font-size: 18px;
}

/* Responsive: keep arrows visible on narrow screens but adjust size/position */
@media (max-width: 800px) {
    .steps-grid { grid-template-columns: 1fr; }
    .step-arrow {
        display: flex;
        right: 1rem;
        width: 36px;
        height: 36px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }
    .step-arrow svg {
        width: 16px;
        height: 16px;
    }
    .step-content {
        padding-right: 56px; /* match mobile arrow area */
    }
}

/* Testimonials Section */
.testimonials-section {
    /* removed gradient per design; use background image that fits width */
    background: url('public/testimonial-background.png') center top / 100% auto no-repeat;
    padding: 4rem 0;
}

.testimonials-section .section-badge {
    color: #876EE1;
    background: white;
    border: none;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    width: 1398px;
    max-width: 100%;
    height: 450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
    box-sizing: border-box;
}

.testimonial-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.testimonial-logo img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.testimonial-company {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-quote {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
}

.testimonial-quote .senai-highlight {
    color: #5068C8;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.05;
}
.testimonial-text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 20px;
}

.testimonial-position {
    font-size: 20px;
    color: var(--text-gray);
}

/* Mobile overrides for testimonial typography */
@media (max-width: 768px) {
    .testimonial-quote {
        font-size: 18px;
    }
    .testimonial-quote .senai-highlight {
        font-size: 20px;
    }
    .testimonial-text,
    .testimonial-author,
    .testimonial-position,
    .testimonial-company {
        font-size: 18px;
    }
}

/* About Us Page Styles */
.about-page {
    display: none;
}

.about-page.active {
    display: block;
}

.about-hero {
    /* Match main hero spacing so nav and top gap align */
    padding: 1.5rem 4% 1.5rem;
    background: var(--bg-white);
    text-align: center;
}

.about-hero .section-badge {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(90deg, #60A5FA 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 54px;
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero h1 .gradient-text {
    background: linear-gradient(90deg, #60A5FA 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero > p {
    font-size: 24px;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.mission-section {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.mission-content {
    text-align: left;
}

/* Use same badge style as main site; keep mission badge compact and left-aligned */
.mission-content .section-badge {
    color: #876EE1;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    background: #F0F0FF;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.mission-content h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mission-content p {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-gray);
}

@media (max-width: 640px) {
    .mission-content p {
        font-size: 18px;
    }
}


/* Our Story Section */
.our-story-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

/* Center the story badge and use the same compact badge styling */
.our-story-section {
    text-align: center;
}

.our-story-section .section-badge {
    color: #876EE1;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    background: #F0F0FF;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: none;
}

.our-story-section h2 {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.story-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    align-items: start;
}

.story-column:first-child {
    transform: translateX(6%);
}

.story-column p {
    font-size: 20px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1rem;
    text-align: left;
}

/* Quote shown inside grid on mobile */
.story-quote-mobile {
    display: none; /* mobile-only, hidden on desktop by default */
    grid-column: 1 / -1;
    margin: 1rem auto;
    background: linear-gradient(135deg, #E8F4FF 0%, #F3E8FF 100%);
    border: none;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 1200px;
    box-sizing: border-box;
}

/* Quote shown after the grid on desktop */
.story-quote-desktop {
    display: block;
    max-width: 1200px;
    margin: 1.5rem auto;
    background: linear-gradient(135deg, #E8F4FF 0%, #F3E8FF 100%);
    border: none;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-sizing: border-box;
}

.story-quote p {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.story-progress {
    max-width: 1000px;
    margin: 1rem auto 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #60A5FA 0%, #7C3AED 50%, #C084FC 100%);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Our Story: progress label sizing */
.our-story-section .progress-label {
    font-size: 20px;
}

/* Mobile adjustments for story section: stack columns and align quote width */
@media (max-width: 640px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .story-column:first-child { transform: none; }
    /* Ensure the Our Story section has horizontal padding on small screens
       so paragraphs and the gradient progress bar don't touch the edges */
    .our-story-section { padding: 2rem 4%; box-sizing: border-box; }
    .story-column:first-child { transform: none; }
    .story-column p {
        font-size: 18px;
        line-height: 1.6;
        text-align: justify;
        margin: 0 0 1rem;
        padding: 0 0.25rem; /* slight inset for very narrow screens */
    }
    .story-quote p {
        font-size: 22px;
        line-height: 1.2;
    }
    /* show mobile quote inside grid and hide desktop quote */
    .story-quote-mobile {
        display: block;
        max-width: 100%;
        margin: 0.75rem auto;
        padding: 1.25rem;
        box-sizing: border-box;
    }
    .story-quote-desktop {
        display: none;
    }

    .our-story-section .progress-label {
        font-size: 14px;
    }

    /* Make the progress bar respect page padding on mobile */
    .story-progress { max-width: 100%; padding: 0; box-sizing: border-box; margin: 0.75rem auto 0; }
}

.progress-bar::before,
.progress-bar::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.progress-bar::before {
    left: -8px;
    background: #95CDFF;
    border: 2px solid #95CDFF;
}

.progress-bar::after {
    right: -8px;
    background: white;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(90deg, #60A5FA 0%, #7C3AED 50%, #C084FC 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Contact Form Section */
.contact-section {
    background: var(--bg-white);
    padding: 4rem 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-purple) 0%, var(--bg-light) 100%);
    border: 2px solid #876EE1;
    padding: 3rem;
    border-radius: 20px;
}

.contact-form-container h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form-container p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .contact-form-container h3 {
        font-size: 24px;
    }
    .form-group label {
        font-size: 16px;
    }
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #4A4A4A;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.submit-btn {
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Case Study Detail Page */
.case-detail-section {
    display: block;
    padding: 3rem 0 4rem;
    background: var(--bg-white);
}

.case-detail-section.active {
    display: block;
}

.case-studies-section .section-header h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 34px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.08;
    text-align: center;
}

.case-studies-section .section-header p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: var(--hero-copy-color);
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    max-width: 720px;
}


.case-detail-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.case-detail-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.case-detail-text {
    flex: 1;
}

.case-detail-image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
}

.back-btn:hover {
    text-decoration: underline;
}

.case-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    line-height: 1.05;
}

.case-detail-stat {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    /* gradient text from light blue to purple */
    background: linear-gradient(90deg, #60A5FA 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Ensure non-heading body text on home and about pages is dark grey */
.hero p,
.section p,
.about-hero p,
.about-page p {
    color: var(--text-dark-gray) !important;
}

/* Force the story quote on the About page to true black */
.about-page .story-quote p {
    color: var(--text-dark) !important;
}

.case-detail-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.read-more-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.case-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.case-section-title {
    font-size: 44px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 640px) {
    .case-section-title {
        font-size: 32px;
    }
}

.features-section-wrapper {
    position: relative;
    z-index: 0;
    padding: 4rem 0;
}

.features-section-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100vw;
    height: 100%;
    background-image: url('public/case-study-top-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: -1;
}

.results-section-wrapper {
    padding: 4rem 0;
}

.similar-section-wrapper {
    position: relative;
    z-index: 0;
    padding: 4rem 0;
}

.similar-section-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100vw;
    height: 100%;
    background-image: url('public/case-study-bottom-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: -1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Ensure background images scale nicely on narrow screens */
@media (max-width: 640px) {
    .features-section-wrapper,
    .similar-section-wrapper {
        padding: 2.5rem 0;
    }
    .features-section-wrapper::before,
    .similar-section-wrapper::before {
        background-size: cover;
        background-position: center top;
    }
}

.feature-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: left;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8B5CF6;
}

.feature-card h3 {
    font-weight: 300 !important;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.result-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8B5CF6;
}

.result-card h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.result-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.similar-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.similar-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
}

.similar-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #8B5CF6;
}

.similar-card h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.similar-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .solution-grid,
    .case-studies-grid,
    .features-grid,
    .results-grid,
    .similar-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

    .problem-content,
    .testimonial-card {
        grid-template-columns: 1fr;
    }

    /* Make case study cards and images expand on tablet widths too */
    .case-study-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .case-study-image {
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .case-study-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    /* Hide all br tags on mobile for better text flow */
    br {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-container .cta-button {
        display: none;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .hero-badge {
        font-size: 20px;
        letter-spacing: 1.2px;
        padding: 0.4rem 0 0.4rem;
    }

    /* hero h1 sizing controlled centrally further below */

    /* Ensure About hero gradient span is block-level on mobile
       so the following (black) text starts on a new line even
       when <br> is hidden at small widths */
    .about-hero h1 .gradient-text {
        display: block;
    }

    .hero p {
        font-size: 16px;
        max-width: 100%;
        margin: 0 auto 1.25rem;
    }
    /* about-hero h1 sizing controlled centrally further below */
    .about-hero > p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    /* Limit homepage hero buttons to a narrower, centered width on mobile
       Keep form `.submit-btn` full-width elsewhere */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 270px !important;
        max-width: 100% !important;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 18px;
        align-self: center;
    }

    .hero-diagram {
        margin-top: 1.5rem;
        width: 100%;
        overflow: hidden;
    }

    .hero-diagram img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* Benefits: keep two items side-by-side and the third on its own centered row */
    .benefits-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start; /* top-align items so taller items don't appear higher */
        gap: 0.6rem 1rem;
        padding: 1rem 0; /* removed horizontal padding to avoid visual offset */
    }

    .benefits-bar .benefit-item {
        width: calc(50% - 0.5rem);
        flex: 0 0 auto;
        justify-content: center;
        text-align: center;
        align-items: flex-start; /* top-align so taller items don't vertically misalign */
        font-size: 0.82rem;
        white-space: normal;
        padding: 0.25rem 0.25rem;
    }

    .benefits-bar .benefit-item:nth-child(3) {
        width: 100%;
        margin-top: 0.25rem;
    }

    /* Solution cards (mobile): row 1 = icon + heading, row 2 = paragraph full width */
    .solution-card {
        display: grid !important;
        grid-template-columns: 48px 1fr !important;
        gap: 0.75rem 1rem !important;
        align-items: center !important; /* vertically center heading with icon */
        padding: 1.25rem !important;
    }

    .solution-card .icon {
        width: 48px;
        height: 48px;
        grid-column: 1;
        grid-row: 1;
    }

    .solution-card .card-content {
        display: contents !important;
    }

    .solution-card h3 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 !important;
        align-self: center !important; /* ensure heading centers within the icon row */
    }

    .solution-card p {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin: 0.75rem 0 0 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .problem-section {
        padding: 2rem 0;
    }

    .problem-content {
        grid-template-columns: 1fr;
        margin: 0;
        gap: 1.5rem;
    }

    .problem-section .section-header {
        margin-left: 0;
        text-align: center;
    }

    .problem-text {
        max-width: 100%;
        text-align: center;
    }

    .problem-text h3 {
        font-size: 1.8rem;
    }

    .problem-text p {
        font-size: 18px;
    }

    .problem-visual {
        height: auto;
        min-height: 180px;
        padding: 1rem;
    }

    .problem-visual img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .section {
        padding: 3rem 0;
    }

    /* Case detail: stack header content and make hero image fill width on mobile */
    .case-detail-section {
        padding: 1.5rem 4% 3rem !important;
    }

    .case-detail-header-content {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .case-detail-header-content > div {
        width: 100% !important;
    }

    .case-detail-header-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 420px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

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

    .section-header p {
        font-size: 16px;
    }

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

    .solution-section .section-header p {
        font-size: 16px;
    }

    .solution-grid,
    .case-studies-grid,
    .steps-grid,
    .features-grid,
    .results-grid,
    .similar-solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-card {
        padding: 2rem 1.5rem;
    }


    /* Ensure solution card text is fully visible on mobile */
    .solution-card {
        overflow: visible !important;
        min-height: auto !important;
    }

    .solution-card p {
        margin-left: 0 !important;
    }

    .case-study-card {
        width: 100%;
        height: auto;
    }

    .case-study-card {
        width: 100%;
        height: auto;
        padding: 0.9rem 20px 1rem; /* keep inner spacing so images don't touch card edges */
        box-sizing: border-box;
    }

    .case-study-image {
        width: 100% !important;
        height: 200px;
        margin: 0 !important; /* remove fixed left margin so padding on card provides gap */
        box-sizing: border-box;
    }

    .case-study-image img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        display: block;
        object-fit: cover;
    }

    /* Ensure images with width/height attributes don't remain small */
    .case-study-card img[width],
    .case-study-card img[height],
    .case-study-card img[width][height] {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
    }

    .step-card {
        padding: 1.5rem;
    }

    

    .testimonial-card {
        padding: 2rem 1.5rem;
        gap: 2rem;
        width: 392px;
        height: 554px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .testimonial-logo img {
        max-width: 150px;
        width: 100%;
        height: auto;
    }

    .how-it-works-section .section-header h2 {
        font-size: 32px;
    }

    /* Stack mission section on mobile and make its image fill width */
    .mission-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        align-items: center;
        margin: 0 auto;
    }

    .mission-section img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    /* Target images with width/height attributes anywhere on the page */
    img[width], img[height] {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Center footer links (About Us / Contact) on small screens */
    .footer-right {
        justify-self: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        margin-top: 8px;
    }

    /* Fix all images with inline styles */
    img[style] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
}

/* Hidden by default */
.home-page {
    display: block;
}

.home-page.hidden {
    display: none;
}

/* Services / What We Do styles */
.services-section {
    padding: 4rem 4%;
    background: transparent;
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: transparent; /* no background color per request */
    border-radius: 14px;
    padding: 1.6rem 1.6rem 1.8rem 1.6rem;
    position: relative;
    box-shadow: 0 6px 18px rgba(16,24,40,0.04);
    border: 1.5px solid rgba(112,81,251,0.18); /* purple outline */
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    transition: transform 220ms ease;
    box-shadow: 0 12px 30px rgba(16,24,40,0.08);
}



/* Execution team / Why choose us section */
.execution-section .section-header { text-align: center; margin-bottom: 1.5rem; }
.execution-section .lead { max-width: 900px; margin: 0 auto 2.5rem; color: #6b7280; }
.expertise-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}
.expertise-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}
.expertise-card h4 { margin: 0 0 0.45rem; font-size: 28px; font-weight: 500;}
.expertise-card p { margin: 0; color: #6b7280; line-height: 1.35; font-size: 20px; }
@media (max-width: 980px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { 
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-card h4 { font-size: 20px; }
    .expertise-card p { font-size: 18px; }
}

/* Trusted / Chosen for Execution section */
.trusted-section {
    /* Background image replaces previous gradient — covers full width on all devices */
    background-image: url('public/about-us-bottom.png');
    background-repeat: no-repeat;
    /* Stretch image to full width (maintain aspect ratio) without cropping */
    background-size: 100% auto;
    background-position: center bottom;
}
.trusted-section .section-header { text-align: center; margin-bottom: 1.2rem; }
.trusted-section .lead { max-width: 900px; margin: 0 auto 2rem; color: #6b7280; }
.trusted-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trusted-card { background: #ffffff; border: 2px solid rgba(112,81,251,0.4); border-radius: 14px; padding: 1.6rem; }
.trusted-card h4 { margin: 0 0 0.6rem; font-size: 28px; font-weight: 500; }
.trusted-card p { margin: 0; color: #6b7280; line-height: 1.6; font-size: 20px; }

@media (max-width: 640px) {
    .trusted-card h4 { font-size: 20px; }
    .trusted-card p { font-size: 16px; }
}
.trusted-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
@media (max-width: 980px) { .trusted-grid { grid-template-columns: 1fr; } }

/* Consolidated service card typography per Figma */
.service-card h3 {
    font-size: 24px;
    margin-bottom: 0.6rem;
    color: #0f172a;
    font-weight: 300;
    line-height: 1.08;
}

.service-card p {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .service-card h3 {
        font-size: 18px;
    }
    .service-card p {
        font-size: 16px;
    }
}

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

@media (max-width: 640px) {
    /* On narrow screens show two service cards per row */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .service-card { padding: 1rem; box-sizing: border-box; }

    /* Make expertise / Why Choose Us cards align icon and heading on one row
       and ensure paragraph starts aligned with the icon on mobile */
    .expertise-card {
        display: grid;
        grid-template-columns: 66px 1fr;
        grid-auto-rows: auto;
        gap: 0.5rem 0.75rem;
        align-items: start;
    }
    .expertise-card > div[aria-hidden="true"] {
        grid-column: 1 / 2;
        grid-row: 1; /* icon stays on the first row only to avoid overlapping paragraph */
        width: 66px;
        height: 66px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    /* allow headings and paragraphs to participate in the parent grid */
    .expertise-card > div:last-child { display: contents; }
    .expertise-card h4 { grid-column: 2 / 3; grid-row: 1; margin: 0 0 0.25rem; }
    .expertise-card p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    /* Align feature/result card icons with headings on mobile.
       Keep `similar-card` behavior unchanged (reverted). */
    .feature-card,
    .result-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-auto-rows: auto;
        gap: 0.4rem 0.75rem;
        align-items: center; /* center heading vertically with icon */
    }
    .feature-card .icon,
    .result-card .icon {
        grid-column: 1 / 2;
        grid-row: 1; /* icon on the first row */
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center; /* center icon content */
        justify-content: center;
    }
    .feature-card h3,
    .result-card h3 {
        grid-column: 2 / 3;
        grid-row: 1;
        margin: 0 0 0.25rem;
        align-self: center; /* vertically center the heading with the icon */
    }
    .feature-card p,
    .result-card p {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* Ensure all br tags are hidden */
    br {
        display: none !important;
    }

    body {
        padding-top: calc(var(--nav-height) - 5px);
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .logo img {
        height: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    /* Mobile: make hero buttons 270px and centered */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 270px !important;
        max-width: 100% !important;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        font-weight: 300;
        align-self: center;
    }
    .hero,
    .about-hero,
    .testimonials-section,
    .contact-section,
    .our-story-section,
    .mission-section,
    .case-detail-section,
    .footer-content {
        max-width: 392px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* Ensure testimonials section remains full-bleed on mobile so background image spans viewport */
    .testimonials-section {
        max-width: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-image: url('public/testimonial-bakcground-mobile.png') !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }

    /* Make sure large images and diagrams scale to the constrained width */
    .hero-diagram,
    .hero-diagram img,
    .case-study-image img,
    img[width],
    img[height],
    img[style],
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .hero-badge {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .hero h1 {
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 16px;
        margin: 0 auto 1.25rem;
    }
    .about-hero h1 {
        margin-bottom: 0.5rem;
    }
    .about-hero > p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .benefits-bar {
        padding: 1rem 4%;
    }

    .benefit-item {
        font-size: 0.8rem;
    }

    .section {
        padding: 2.5rem 4%;
    }

    .section-badge {
        font-size: 0.7rem;
        letter-spacing: 1.2px;
        padding: 0.4rem 1.2rem;
    }

    .section-header h2 {
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 16px;
    }

    /* Extra-small screens: heading sizes are controlled centrally further below */

    .problem-section .section-header p,
    .case-studies-section .section-header p,
    .solution-section .section-header p,
    .mission-section .section-header p,
    .our-story-section .section-header p,
    .services-section .section-header p,
    .how-it-works-section .section-header p,
    .execution-section .section-header p,
    .trusted-section .section-header p {
        font-size: 16px;
    }

    /* Mobile overrides for specific sections */
    .problem-section .section-header h2,
    .case-studies-section .section-header h2,
    .solution-section .section-header h2,
    .mission-section .section-header h2,
    .our-story-section .section-header h2,
    .services-section .section-header h2,
    .how-it-works-section .section-header h2,
    .execution-section .section-header h2,
    .trusted-section .section-header h2 {
        font-size: 32px;
    }

    .problem-section .section-header p,
    .case-studies-section .section-header p,
    .solution-section .section-header p,
    .mission-section .section-header p,
    .our-story-section .section-header p,
    .services-section .section-header p,
    .how-it-works-section .section-header p,
    .execution-section .section-header p,
    .trusted-section .section-header p {
        font-size: 16px;
    }

    .problem-section {
        padding: 1.5rem 4%;
    }

    .problem-text h3 {
        font-size: 1.6rem;
    }

    .problem-text p {
        font-size: 18px;
    }

    .problem-visual {
        height: auto;
        min-height: 150px;
    }

    .problem-visual img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* solution/how-it-works headings controlled centrally */

    .solution-section .section-header p {
        font-size: 16px;
    }

    .solution-card {
        padding: 1.5rem 1.25rem;
    }

    .solution-card .icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .solution-card .icon svg {
        width: 40px;
        height: 40px;
    }

    /* font sizes for solution card text are controlled by consolidated rules */

    .case-study-card {
        border-radius: 12px;
    }

    .case-study-image {
        margin: 0.75rem 0 0.5rem 15px;
        width: calc(100% - 30px);
    }


    .case-study-content {
        padding: 0.75rem 1.25rem;
    }

    .view-solution-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    .step-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .step-icon svg {
        width: 45px;
        height: 45px;
    }

    .step-number {
        font-size: 1.3rem;
        font-weight: 300;
    }

    .step-card .step-details {
        width: calc(100% - 1.5rem);
    }

    .step-arrow {
        width: 35px;
        height: 35px;
        right: 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }

    .testimonial-logo img {
        max-width: 150px;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 12px 4%;
    }

    .footer-logo {
        font-size: 1.4rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-right {
        gap: 1.5rem;
    }

    .footer-right a {
        font-size: 0.85rem;
    }

    .footer-accent {
        margin: 12px 4%;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Tablet landscape and smaller desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

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

    .case-study-card {
        width: 100%;
    }

    .case-study-image {
        width: calc(100% - 40px);
    }

    .case-study-image img {
        width: 100%;
    }
}

  /* Authoritative overrides for feature/result/similar cards
      Placed at the end so these take precedence over earlier rules. */
.features-grid .feature-card h3,
.results-grid .result-card h3,
.similar-solutions-grid .similar-card h3 {
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    margin-bottom: 0.45rem !important;
    color: var(--text-dark) !important;
}

.features-grid .feature-card p,
.results-grid .result-card p,
.similar-solutions-grid .similar-card p {
    font-size: 20px !important;
    line-height: 1.45 !important;
    color: var(--text-dark-gray) !important;
    margin-bottom: 0.6rem !important;
}

@media (max-width: 640px) {
    .features-grid .feature-card h3,
    .results-grid .result-card h3,
    .similar-solutions-grid .similar-card h3 {
        font-size: 20px !important;
    }

    .features-grid .feature-card p,
    .results-grid .result-card p,
    .similar-solutions-grid .similar-card p {
        font-size: 18px !important;
    }
}

/* Make Solution and Step cards respect global mobile margins and center them
   Width set to calc(100% - 8%) to leave ~4% page padding on each side, capped at 392px */
@media (max-width: 768px) {
    .solution-section .solution-card,
    .steps-grid .step-card {
        width: calc(100% - 8%) !important;
        max-width: 392px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure grids stack and center their single-column items */
    .solution-grid,
    .steps-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 1rem !important;
    }
}

/* FINAL OVERRIDE: ensure solution card paragraphs never shift left on small screens */
@media (max-width: 800px) {
    .solution-section .solution-card p,
    .solution-card p {
        margin-left: 0 !important;
        padding-left: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

/* Ensure Case Studies section heading matches other section headers */
.case-studies-section .section-header h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 44px !important;
    font-weight: 500 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    line-height: 1.05 !important;
    text-align: center !important;
}

/* mobile size for case-studies heading is handled by centralized mobile override */

/* Site-wide CTA styles (used on all pages except home) */
.site-wide-cta {
    padding: 3.5rem 4% 3.5rem;
    text-align: center;
}
.site-wide-cta-inner {
    max-width: 900px;
    margin:  auto;
}
.site-wide-cta h2 {
    font-size: 44px;
    line-height: 1.05;
    color: #000000;
    margin-bottom: 1.25rem;
    font-weight: 400;
}
.site-wide-cta .subtitle {
    color: #6b7280;
    font-size: 20px;
    margin: 0 auto 1rem;
    max-width: 780px;
    padding: 0 2rem;
    text-align: center;
    box-sizing: border-box;
}
.btn-gradient {
    display: inline-block;
    background: linear-gradient(90deg,#439BE9,#8B6BFE);
    color: #fff;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 640px) {
    .site-wide-cta h2 {
        font-size: 32px;
    }
    .site-wide-cta .subtitle {
        font-size: 18px;
    }
}

/* Our Thesis — Reality section styles */
.thesis-reality {
    padding: 2.5rem 4%;
}

.thesis-reality .section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reality-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 4%;
}

.reality-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.reality-bar {
    width: 100%;
    max-width: 836px;
    height: 76px;
    background: #F6F8FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    margin: 0 auto;
}

.reality-bar .bar-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reality-bar .bar-text {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.thesis-quote {
    color: #4560C7;
    font-size: 26px;
    text-align: left;
    max-width: 900px;
    margin-top: 1rem;
}
/* Cost section styles */
.thesis-cost {
    padding: 3.5rem 4%;
    background-image: url('public/thesis-cost-bg.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}

.cost-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2%;
    box-sizing: border-box;
}

.cost-cards {
    display: grid;
    grid-template-columns: repeat(2, 571px);
    gap: 24px;
    justify-content: center;
}

.cost-card {
    width: 571px;
    height: 130px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    box-shadow: 0 6px 18px rgba(79,70,229,0.06);
    /* white interior with visible gradient border */
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, #B5A9FF 0%, #A0C1E8 100%) border-box;
    border: 2px solid transparent;
}

.cost-icon { flex: 0 0 56px; display:flex; align-items:center; justify-content:center }

.cost-text {
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 500;
}

.cost-quote {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    background: linear-gradient(135deg, #E8F4FF 0%, #F3E8FF 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-sizing: border-box;
}

.cost-quote p { font-size: 32px; margin:0; color: #000000; line-height:1.15; }

/* gradient border variant (100% opacity) */
.cost-quote-border {
    /* filled background plus a solid gradient border */
    background: linear-gradient(135deg, #E8F4FF 0%, #F3E8FF 100%) padding-box,
                linear-gradient(135deg, #B5A9FF 0%, #A0C1E8 100%) border-box;
    border: 2px solid transparent;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .thesis-cost { padding: 2rem 4%; background-position: center top; background-size: cover; }
    .cost-cards { grid-template-columns: 1fr; gap: 16px; padding: 0 4%; box-sizing: border-box; }
    .cost-card { width: 100%; max-width: 392px; height: 114px; padding: 0 1rem; margin: 0 auto; box-sizing: border-box; }
    .cost-text { font-size: 18px; }
    .cost-quote p { font-size: 22px; }
}

/* Reduce svg/icon sizes on narrower screens to avoid cramped layouts */
@media (max-width: 768px) {
    .cost-icon, .reality-bar .bar-icon { flex: 0 0 50px; width: 50px; height: 50px; }
    .cost-icon svg, .reality-bar .bar-icon svg { width: 50px; height: 50px; }
}

@media (max-width: 420px) {
    .cost-icon, .reality-bar .bar-icon { flex: 0 0 40px; width: 40px; height: 40px; }
    .cost-icon svg, .reality-bar .bar-icon svg { width: 40px; height: 40px; }
    .cost-card { padding: 0 0.75rem; }
}

@media (max-width: 768px) {
    .thesis-reality { padding: 1.5rem 4%; }
    .reality-bars { gap: 0.75rem; }
    .reality-bar { height: 76px; padding: 0 0.9rem; }
    .reality-bar .bar-text { font-size: 20px; }
    .thesis-quote { font-size: 22px; text-align: center; margin: 0 auto; }
}

/* Impact section styles */
.thesis-impact {
    padding: 3.5rem 4%;
    background: var(--bg-white);
}

.impact-content {
    max-width: 1166px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.impact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.impact-card {
    width: 571px;
    height: 188px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    box-sizing: border-box;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, #B5A9FF 0%, #A0C1E8 100%) border-box;
    border: 2px solid transparent;
}

.impact-icon {
    flex: 0 0 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-title {
    font-size: 44px;
    line-height: 1;
    color: #5068C8;
    font-weight: 400;
}

/* Our Belief styles */
.thesis-belief {
    padding: 3.5rem 4%;
    background: var(--bg-white);
}

.belief-content {
    max-width: 1166px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.belief-cards {
    display: grid;
    grid-template-columns: repeat(2, 571px);
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.belief-card {
    width: 571px;
    height: 160px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, #B5A9FF 0%, #A0C1E8 100%) border-box;
    border: 2px solid transparent;
}

.belief-icon { flex: 0 0 56px; display:flex; align-items:center; justify-content:center; }

.belief-text {
    font-size: 28px;
    color: #000000;
    font-weight: 400;
}

@media (max-width: 420px) {
    .belief-content { max-width: 392px; margin: 0 auto; }
    .belief-cards { grid-template-columns: 1fr; gap: 12px; justify-items: center; justify-content: center; }
    .belief-card { width: 392px; max-width: 100%; height: 146px; padding: 0.75rem; }
    .belief-text { font-size: 24px; }
}

/* Wider mobile / small tablet: ensure cards never exceed 392px and stack */
@media (max-width: 768px) {
    .belief-cards { grid-template-columns: 1fr; gap: 14px; justify-items: center; justify-content: center; }
    .belief-card { width: 100%; max-width: 392px; box-sizing: border-box; }
}

/* Ensure quote inside belief section is constrained to the same 1166 width */
.thesis-belief .story-quote-desktop,
.thesis-belief .story-quote-mobile {
    max-width: 1166px;
    margin: 0 auto;
}

/* Force all quote text on the Our Thesis page to true black */
.thesis-quote,
.thesis-quote p,
.cost-quote,
.cost-quote p,
.constraint-quote,
.constraint-quote p,
.thesis-impact .story-quote p,
.thesis-belief .story-quote p {
    color: #000000 !important;
}

.impact-desc {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 6px;
}

@media (max-width: 420px) {
    .impact-cards { gap: 16px; }
    .impact-card {
        width: 398px;
        height: 146px;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    .impact-title { font-size: 32px; }
    .impact-desc { font-size: 16px; }
}

/* Constraint section styles */
.thesis-constraint {
    padding: 3.5rem 4%;
    background: var(--bg-white);
}

.constraint-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.constraint-flow {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.constraint-flow img {
    width: 1100px;
    height: 294px;
    display: block;
    object-fit: contain;
}

.constraint-quote {
    width: 1100px;
    max-width: 100%;
    height: 157px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    margin: 0 auto;
    /* filled background plus gradient border like cost quote */
    background: linear-gradient(135deg, #E8F4FF 0%, #F3E8FF 100%) padding-box,
                linear-gradient(135deg, #B5A9FF 0%, #A0C1E8 100%) border-box;
    border: 2px solid transparent;
}

.constraint-quote p {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.constraint-cards {
    display: grid;
    grid-template-columns: repeat(3, 351px);
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.constraint-card {
    width: 351px;
    height: 130px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, #D05069 0%, #C35FDF 50%, #8577E1 100%) border-box;
    border: 2px solid transparent;
}

.constraint-icon {
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.constraint-text {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .thesis-constraint { padding: 2rem 4%; }
    
    .constraint-flow {
        max-width: 392px;
    }
    
    .constraint-flow img {
        width: 392px;
        height: 106px;
        max-width: 100%;
    }
    
    .constraint-quote {
        width: 392px;
        height: 106px;
        padding: 1.25rem;
    }
    
    .constraint-quote p { font-size: 22px; }
    
    .constraint-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 2%;
    }
    
    .constraint-card {
        width: 100%;
        max-width: 392px;
        height: 130px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .constraint-text { font-size: 18px; }
}

@media (max-width: 420px) {
    .constraint-icon { flex: 0 0 40px; width: 40px; height: 40px; }
    .constraint-icon svg { width: 40px; height: 40px; }
    .constraint-card { padding: 0 0.75rem; }
}

/* Strong mobile overrides: enforce hero and section heading sizes across the site
   Use high-specificity selectors with !important to ensure earlier rules are cleared
   without needing to remove multiple scattered declarations. */
@media (max-width: 768px) {
    /* Hero headings: always 38px on mobile */
    body .hero h1,
    body .thesis-hero .hero-text h1,
    body .about-hero h1 {
        font-size: 38px !important;
        line-height: 1.05 !important;
    }

    /* All other section headings: 32px on mobile */
    body .section-header h2,
    body .problem-section .section-header h2,
    body .solution-section .section-header h2,
    body .mission-section .section-header h2,
    body .mission-content h2,
    body .our-story-section .section-header h2,
    body .our-story-section h2,
    body .services-section .section-header h2,
    body .how-it-works-section .section-header h2,
    body .execution-section .section-header h2,
    body .trusted-section .section-header h2,
    body .case-studies-section .section-header h2,
    body .expertise-section .section-header h2 {
        font-size: 32px !important;
        line-height: 1.08 !important;
    }
}