:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.68);
    --surface-accent: linear-gradient(135deg, #3048a7 0%, #4f67c6 45%, #2d3775 100%);
    --text: #111827;
    --text-muted: #566070;
    --text-soft: #6b7280;
    --line: rgba(110, 131, 178, 0.18);
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
    --shadow-soft: 0 12px 30px rgba(20, 28, 51, 0.08);
    --accent: #415ecf;
    --accent-dark: #2c4294;
    --accent-soft: rgba(65, 94, 207, 0.12);
    --success: #103b2b;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: min(1180px, calc(100% - 40px));
    --header-offset: 96px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 103, 198, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(48, 72, 167, 0.14), transparent 24%),
        var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

button {
    font: inherit;
}

main {
    overflow-x: hidden;
    max-width: 100vw;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.orb-one {
    width: 280px;
    height: 280px;
    background: rgba(92, 113, 206, 0.18);
    top: 80px;
    right: -90px;
}

.orb-two {
    width: 320px;
    height: 320px;
    background: rgba(31, 53, 120, 0.12);
    bottom: 5%;
    left: -120px;
}

.container {
    width: var(--container);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    backdrop-filter: blur(18px);
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: white;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #3048a7 0%, #5e76da 100%);
    color: white;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.brand-text {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: inline-block;
    border-radius: 8px;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer .brand-text {
    color: white;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.96rem;
    font-weight: 500;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    color: white;
    background: rgba(65,94,207,0.18);
}

.site-nav .nav-cta {
    background: linear-gradient(135deg, #3048a7 0%, #4f67c6 100%);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2b4196 0%, #465ebd 100%);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 999px;
    transition: 0.25s ease;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: 28px;
    align-items: stretch;
}

.hero-grid > *,
.content-layout > *,
.grid-two > *,
.split-showcase > *,
.highlight-grid > *,
.stats-grid > *,
.feature-grid > *,
.image-frame {
    min-width: 0;
}

.card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}

.surface-strong {
    background: var(--surface-strong);
}

.surface-soft {
    background: var(--surface-soft);
    backdrop-filter: blur(20px);
}

.surface-accent {
    background: var(--surface-accent);
    color: white;
}

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

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3,
p,
ul,
blockquote {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 12px;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin-bottom: 24px;
    max-width: 60ch;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-story {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
}

.pull-quote,
.mini-quote,
.takeaway-quote {
    margin: 26px 0 0;
}

.pull-quote {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0 0;
}

.pull-quote.compact {
    margin-top: 22px;
}

.quote-bar {
    width: 4px;
    min-height: 64px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(65, 94, 207, 0.18) 100%);
}

.pull-quote p,
.mini-quote p,
.takeaway-quote p {
    margin-bottom: 0;
}

.pull-quote p {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    font-weight: 700;
    color: #2c3b73;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: 0.25s ease;
}

.primary-button {
    background: linear-gradient(135deg, #3048a7 0%, #4f67c6 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.primary-button:hover,
.primary-button:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2b4196 0%, #455dba 100%);
}

.primary-button.light {
    background: rgba(255, 255, 255, 0.96);
    color: #22316b;
}

.secondary-button {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    cursor: pointer;
}

.secondary-button:hover,
.secondary-button:focus-visible {
    background: white;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-frame {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(110, 131, 178, 0.14);
    box-shadow: var(--shadow);
    background: white;
}

.tall-media {
    min-height: 560px;
}

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

.wide-media {
    min-height: 370px;
}

.card-media {
    min-height: 280px;
}

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

.metric-strip > div {
    display: grid;
    gap: 6px;
}

.metric-value {
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-soft);
}

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

.toc {
    position: sticky;
    top: calc(var(--header-offset) + 14px);
    padding: 22px;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.toc-back {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
}

.toc-nav {
    display: grid;
    gap: 10px;
}

.toc-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid transparent;
    transition: 0.25s ease;
}

.toc-link:hover,
.toc-link:focus-visible,
.toc-link.active {
    color: var(--accent-dark);
    border-color: rgba(65, 94, 207, 0.18);
    background: rgba(65, 94, 207, 0.08);
}

.content-stack {
    display: grid;
    gap: 28px;
}

.story-section {
    display: grid;
    gap: 20px;
    scroll-margin-top: calc(var(--header-offset) + 14px);
}

.section-heading {
    display: grid;
    gap: 8px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.section-card p:last-child,
.section-card ul:last-child {
    margin-bottom: 0;
}

.section-card p,
.footer-copy,
.footer-meta,
.text-link {
    color: var(--text-muted);
}

.section-card ul,
.highlight-grid ul {
    margin: 16px 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.section-card li,
.highlight-grid li {
    margin-bottom: 10px;
}

.mini-quote {
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: rgba(65, 94, 207, 0.06);
}

.mini-quote p {
    font-weight: 700;
    color: #24346d;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.feature-item,
.roi-item {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(110, 131, 178, 0.14);
}

.feature-number {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

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

.highlight-panel {
    display: block;
}

.highlight-panel .section-card {
    padding: clamp(24px, 3vw, 34px);
}

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

.invert p,
.invert li {
    color: rgba(255, 255, 255, 0.86);
}

.invert h3 {
    margin-bottom: 0;
}

.image-column {
    display: grid;
    gap: 20px;
}

.speed-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.speed-list span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(65, 94, 207, 0.08);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px;
}

.stat-kicker,
.roi-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.stat-value {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.impact-grid {
    align-items: stretch;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.roi-item strong {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.takeaway-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: end;
    padding: clamp(24px, 4vw, 42px);
}

.takeaway-copy h3 {
    font-size: clamp(1.5rem, 2.7vw, 2.4rem);
    margin-bottom: 16px;
}

.takeaway-quote {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(65, 94, 207, 0.1), rgba(65, 94, 207, 0.03));
    border: 1px solid rgba(65, 94, 207, 0.12);
}

.takeaway-quote p {
    font-size: clamp(1.05rem, 1.9vw, 1.4rem);
    line-height: 1.5;
    font-weight: 700;
    color: #24346d;
}

.cta-band {
    scroll-margin-top: calc(var(--header-offset) + 14px);
}

.cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(24px, 4vw, 38px);
}

.cta-card h2,
.cta-card p {
    color: white;
}

.cta-card p {
    max-width: 58ch;
}

.text-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.text-link:hover,
.text-link:focus-visible {
    color: white;
}

.site-footer {
    padding: 0 0 34px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-top: 12px;
}

.footer-copy,
.footer-meta {
    margin-bottom: 0;
}

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

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

@media (max-width: 1120px) {
    :root {
        --container: min(100% - 32px, 1180px);
    }

    .hero-grid,
    .content-layout,
    .split-showcase,
    .takeaway-card,
    .highlight-grid,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .content-layout {
        gap: 20px;
    }

    .toc {
        position: relative;
        top: 0;
        padding: 18px;
    }

    .toc-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .toc-link {
        white-space: normal;
        flex: 1 1 auto;
        min-width: fit-content;
    }

    .stats-grid,
    .grid-two,
    .feature-grid,
    .roi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tall-media {
        min-height: 480px;
    }
}

@media (max-width: 860px) {
    :root {
        --header-offset: 82px;
    }

    .site-header {
        padding: 14px 0;
    }

    /* hide the mobile menu toggle (highlighted) per request */
    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .site-nav .nav-cta {
        text-align: center;
        margin-top: 4px;
    }

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

    .metric-strip,
    .stats-grid,
    .grid-two,
    .feature-grid,
    .roi-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .cta-card {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --container: calc(100% - 24px);
        --radius-xl: 24px;
        --radius-lg: 20px;
        --radius-md: 16px;
    }

    .brand-text {
        font-size: 0.84rem;
        letter-spacing: 0.1em;
    }

    .hero-copy,
    .section-card,
    .stat-card,
    .cta-card {
        padding: 20px;
    }

    .pull-quote {
        gap: 12px;
    }

    .quote-bar {
        min-height: 52px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button,
    .text-link {
        width: 100%;
        justify-content: center;
    }

    .tall-media,
    .wide-media,
    .card-media {
        min-height: 250px;
    }

    .toc-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-inner {
        padding-left: 12px;
        padding-right: 12px;
        align-items: center;
        gap: 12px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-text {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }

    .site-nav {
        display: none !important;
    }

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

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-copy {
        padding: 16px;
    }

    .tall-media,
    .wide-media,
    .card-media {
        min-height: 230px;
    }

    .metric-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 8px 0 32px;
    }

    .toc {
        position: relative;
        top: 0;
        padding: 12px;
    }

    .toc-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .toc-link {
        min-height: 44px;
        padding: 10px 12px;
        white-space: normal;
        flex: 1 1 auto;
    }

    .section-card {
        padding: 16px;
    }

    .takeaway-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .footer-inner {
        padding-top: 12px;
        padding-bottom: 12px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-meta {
        text-align: center;
        width: 100%;
    }
}

/* Tighter scaling for very small phones */
@media (max-width: 420px) {
    html { font-size: 14px; }

    h1 {
        font-size: clamp(1.4rem, 7.5vw, 1.9rem);
        margin-bottom: 12px;
    }

    h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.6rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .image-frame img {
        width: 100%;
        height: auto;
    }

    .tall-media,
    .wide-media,
    .card-media {
        min-height: auto;
        max-height: 360px;
    }

    .grid-two,
    .feature-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .metric-strip {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 14px;
    }

    .brand-text { font-size: 0.8rem; }
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
