:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-solid: #ffffff;
    --surface-dark: linear-gradient(135deg, #203378 0%, #31479d 52%, #4760c7 100%);
    --text: #14213d;
    --text-soft: #51607c;
    --text-muted: #7d8aa7;
    --border: rgba(32, 51, 120, 0.12);
    --primary: #2d3d8a;
    --primary-strong: #213172;
    --accent: #6f8cff;
    --shadow: 0 16px 50px rgba(21, 32, 70, 0.08);
    --shadow-soft: 0 10px 30px rgba(21, 32, 70, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1280px;
    --header-height: 88px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background:
        radial-gradient(circle at top left, rgba(111, 140, 255, 0.18), transparent 28%),
        radial-gradient(circle at right 20%, rgba(45, 61, 138, 0.08), transparent 26%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(244, 247, 251, 0.78);
    border-bottom: 1px solid rgba(20, 33, 61, 0.06);
}

.header-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 0 6px rgba(111, 140, 255, 0.12);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(32, 51, 120, 0.08);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.header-nav a,
.nav-link,
.mobile-menu a {
    color: var(--text-soft);
    transition: 0.25s ease;
}

.header-nav a {
    padding: 10px 14px;
    font-size: 0.94rem;
    border-radius: 999px;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-strong);
    background: rgba(45, 61, 138, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ghost-button,
.primary-button,
.secondary-button,
.light-button {
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ghost-button {
    background: rgba(45, 61, 138, 0.08);
    color: var(--primary-strong);
    font-weight: 600;
    cursor: pointer;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #4d69dd);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(45, 61, 138, 0.22);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 61, 138, 0.08);
    color: var(--primary-strong);
    font-weight: 700;
}

.light-button {
    background: #fff;
    color: var(--primary-strong);
    box-shadow: 0 12px 24px rgba(18, 26, 61, 0.18);
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.light-button:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(32, 51, 120, 0.1);
    background: rgba(255, 255, 255, 0.86);
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-strong);
    margin: 5px auto;
    transition: 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(20, 33, 61, 0.06);
}

.mobile-menu-inner {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 12px 0 18px;
    display: grid;
    gap: 10px;
}

.mobile-menu a {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(32, 51, 120, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
}

.mobile-menu a.active {
    color: var(--primary-strong);
    border-color: rgba(45, 61, 138, 0.2);
    background: rgba(45, 61, 138, 0.08);
}

.hero-section {
    padding: 42px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.glass-panel,
.content-card,
.nav-card,
.cta-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: clamp(28px, 4vw, 48px);
}

.eyebrow,
.section-kicker,
.nav-label,
.eyebrow-light {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-copy h1,
.cta-panel h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    margin: 18px 0 0;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: var(--primary-strong);
    font-weight: 700;
}

.hero-description,
.rich-text,
.cta-panel p {
    color: var(--text-soft);
    font-size: 1.05rem;
}

.hero-description {
    margin: 16px 0 0;
    max-width: 62ch;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media {
    display: grid;
    gap: 18px;
}

.hero-image-frame,
.image-card,
.split-media,
.feature-media {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-image-frame {
    min-height: 100%;
    border: 1px solid rgba(32, 51, 120, 0.08);
}

.hero-image-frame img,
.split-media img,
.feature-media img,
.image-card img {
    height: 100%;
    object-fit: cover;
}

.stat-strip {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-strip article,
.result-tile {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(32, 51, 120, 0.08);
}

.stat-value,
.result-number {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-strong);
    margin-bottom: 6px;
}

.stat-label,
.result-tile p {
    font-size: 0.94rem;
    color: var(--text-soft);
}

.content-section {
    padding: 8px 0 56px;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.page-nav {
    position: sticky;
    top: calc(var(--header-height) + 22px);
}

.nav-card {
    padding: 20px;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-strong);
    background: rgba(45, 61, 138, 0.08);
}

.case-study-flow {
    display: grid;
    gap: 22px;
}

.content-card {
    padding: clamp(22px, 3vw, 34px);
}

.section-heading-group {
    margin-bottom: 18px;
}

.section-heading-group h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-kicker {
    margin-bottom: 8px;
}

.rich-text p,
.rich-text ul {
    margin: 0 0 14px;
}

.rich-text ul {
    padding-left: 20px;
}

.rich-text li {
    margin-bottom: 8px;
}

.split-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: stretch;
}

.media-tall {
    min-height: 100%;
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 26px;
    align-items: center;
    background: var(--surface-dark);
    color: #fff;
    overflow: hidden;
}

.inverse .section-kicker,
.eyebrow-light {
    color: rgba(255, 255, 255, 0.72);
}

.feature-card h2,
.cta-panel h2,
.feature-card .rich-text,
.inverse-text,
.feature-card li {
    color: #fff;
}

.feature-media {
    border-radius: 22px;
    min-height: 100%;
}

.deployment-grid,
.result-grid {
    display: grid;
    gap: 16px;
}

.deployment-grid {
    grid-template-columns: 1fr;
}

.image-card {
    border: 1px solid rgba(32, 51, 120, 0.08);
    min-height: 260px;
}

.image-card.secondary {
    min-height: 220px;
}

.quote-card {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.soft-surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.82));
    border: 1px solid rgba(32, 51, 120, 0.08);
}

.quote-bar {
    width: 4px;
    min-width: 4px;
    height: 100%;
    min-height: 54px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

.quote-card p,
.quote-large p {
    margin: 0;
    color: var(--primary-strong);
    font-size: 1.08rem;
    font-weight: 700;
}

.quote-large p {
    font-size: 1.22rem;
}

.result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, #233578 0%, #30469a 56%, #4965d3 100%);
    color: #fff;
}

.cta-panel h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 56ch;
}

.footer {
    padding: 28px 0 40px;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: rgba(20, 33, 61, 0.96);
    color: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.footer-brand {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.footer-meta,
.footer-contact p,
.footer-contact a {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
    text-align: right;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .header-nav {
        display: none;
    }

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

    .mobile-menu.is-open {
        display: block;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .page-nav {
        display: none;
    }

    .hero-grid,
    .split-card,
    .feature-card,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .hero-image-frame {
        min-height: 420px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 76px;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-shell {
        min-height: var(--header-height);
    }

    .ghost-button {
        display: none;
    }

    /* Keep the Go back button visible when it's inside the hero actions on small screens */
    .hero-actions .ghost-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-section {
        padding-top: 22px;
    }

    .hero-copy,
    .content-card,
    .nav-card,
    .cta-panel {
        border-radius: 22px;
    }

    .stat-strip,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-frame {
        min-height: 280px;
    }

    .split-media,
    .feature-media,
    .image-card {
        min-height: 240px;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 0.88rem;
    }

    .hero-copy h1,
    .cta-panel h2 {
        letter-spacing: -0.03em;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .light-button {
        width: 100%;
    }

    .quote-card {
        padding: 16px;
    }

    .quote-card p,
    .quote-large p {
        font-size: 1rem;
    }
}
