.replace-excel-page {
    --excel-navy: #091427;
    --excel-ink: #101827;
    --excel-blue: #5368df;
    --excel-mint: #63d5b6;
    --excel-ice: #eff3fa;
    --excel-warm: #f5f0e7;
    --excel-line: #d5dbe5;
    color: var(--excel-ink);
    background: #fff;
    overflow-x: hidden;
}

.replace-excel-page .container { width: min(1320px, calc(100% - 64px)); }
.replace-excel-page .eyebrow { margin: 0 0 19px; color: #4d60cf; font-family: "JetBrains Mono", monospace; font-size: .68rem; font-weight: 600; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.replace-excel-page h2 { max-width: 1000px; margin: 0; font-size: clamp(2.7rem, 4.55vw, 5.35rem); font-weight: 500; letter-spacing: -.067em; line-height: .98; }
.replace-excel-page h3 { letter-spacing: -.035em; }
.excel-section { padding: 132px 0; }
.excel-surface-white { background: #fff; }
.excel-surface-ice { background: var(--excel-ice); }
.excel-surface-warm { background: var(--excel-warm); }
.excel-heading { margin-bottom: 72px; }
.excel-heading > p:last-child { max-width: 700px; margin: 26px 0 0; color: #626b79; line-height: 1.72; }
.excel-heading-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .65fr); gap: 82px; align-items: end; }
.excel-heading-split > p:last-child { margin: 0; }
.excel-heading-dark { color: #fff; }
.excel-heading-dark .eyebrow { color: #87e7cf; }
.excel-heading-dark > p:last-child { color: rgba(255, 255, 255, .64); }
.excel-text-link { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; color: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; }
.excel-text-link::after { content: "↗"; }

.excel-hero { min-height: min(880px, 94vh); padding: 154px 0 90px; color: #fff; background: var(--excel-navy); overflow: hidden; }
.excel-hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr); gap: 58px; align-items: center; }
.excel-hero .eyebrow { color: var(--excel-mint); }
.excel-hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.35rem, 4.7vw, 6rem); font-weight: 500; letter-spacing: -.074em; line-height: .91; }
.excel-hero h1 strong { color: #8de8cf; font-weight: inherit; }
.excel-hero-copy > p:not(.eyebrow, .excel-privacy-note) { max-width: 650px; margin: 32px 0 0; color: rgba(255, 255, 255, .72); font-size: clamp(1rem, 1.22vw, 1.2rem); line-height: 1.66; }
.excel-actions { display: flex; flex-wrap: wrap; gap: 21px; align-items: center; margin-top: 38px; }
.excel-actions .excel-text-link { color: #fff; }
.excel-privacy-note { max-width: 520px; margin: 19px 0 0; color: rgba(255, 255, 255, .48); font-size: .72rem; line-height: 1.55; }
.excel-hero-visual { width: 115%; margin: 0 -15% 0 0; }
.excel-hero-visual img { display: block; width: 100%; height: auto; filter: saturate(.96) contrast(1.02); }

.excel-signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--excel-line); border-left: 1px solid var(--excel-line); grid-auto-flow: dense; }
.excel-signal-grid article { display: flex; min-height: 260px; flex-direction: column; padding: 30px; border-right: 1px solid var(--excel-line); border-bottom: 1px solid var(--excel-line); background: #fff; transition: transform .45s ease, background-color .45s ease; }
.excel-signal-grid article:hover { z-index: 1; background: #f7f9fc; transform: translateY(-7px); }
.excel-signal-grid img,
.excel-audit-grid img,
.excel-foundation-stack img,
.excel-deliverable-grid img,
.excel-related-grid > a > img { filter: invert(36%) sepia(58%) saturate(1385%) hue-rotate(211deg) brightness(93%) contrast(96%); }
.excel-signal-grid h3 { margin: auto 0 10px; font-size: 1.15rem; }
.excel-signal-grid p { margin: 0; color: #626b79; font-size: .85rem; line-height: 1.65; }

.excel-transformation { color: #fff; background: var(--excel-navy); }
.excel-transformation-layout { display: grid; grid-template-columns: minmax(280px, .66fr) minmax(0, 1.34fr); gap: 9vw; }
.excel-transformation .excel-heading { position: sticky; top: 130px; align-self: start; margin: 0; }
.excel-transformation .excel-heading h2 { font-size: clamp(2.8rem, 4vw, 4.8rem); }
.excel-map { border-top: 1px solid rgba(255, 255, 255, .18); }
.excel-map-row { display: grid; grid-template-columns: minmax(110px, .65fr) 58px minmax(220px, 1.35fr); gap: 24px; align-items: center; min-height: 102px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.excel-map-row span { color: rgba(255, 255, 255, .56); font-size: .87rem; }
.excel-map-row strong { font-size: clamp(1.05rem, 1.5vw, 1.48rem); font-weight: 500; letter-spacing: -.035em; }
.excel-map-row img { width: 42px; filter: invert(85%) sepia(34%) saturate(647%) hue-rotate(111deg) brightness(92%) contrast(91%); opacity: .85; }

.excel-audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #cbd3df; border-left: 1px solid #cbd3df; }
.excel-audit-grid article { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 23px; min-height: 180px; padding: 32px; border-right: 1px solid #cbd3df; border-bottom: 1px solid #cbd3df; }
.excel-audit-grid h3 { margin: 0 0 10px; font-size: 1.2rem; }
.excel-audit-grid p { margin: 0; color: #626b79; font-size: .87rem; line-height: 1.65; }
.excel-audit-decisions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; border: 1px solid #cbd3df; }
.excel-audit-decisions span { display: grid; min-height: 72px; place-items: center; border-right: 1px solid #cbd3df; color: #44505f; font-family: "JetBrains Mono", monospace; font-size: .71rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.excel-audit-decisions span:last-child { border-right: 0; }

.excel-mid-cta { padding: 96px 0; color: #fff; background: var(--excel-blue); text-align: center; }
.excel-mid-cta .eyebrow { color: #dfe5ff; }
.excel-mid-cta h2 { max-width: 1100px; margin-inline: auto; font-size: clamp(2.35rem, 3.75vw, 4.35rem); line-height: 1.04; }
.excel-mid-cta .button { margin-top: 36px; }

.excel-wide-layout { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 8vw; }
.excel-wide-layout > .excel-heading { align-self: start; margin: 0; }
.excel-wide-layout > .excel-heading h2 { font-size: clamp(2.65rem, 3.8vw, 4.6rem); }
.excel-foundation-stack { position: relative; display: grid; gap: 22px; }
.excel-foundation-stack article { position: sticky; top: 118px; display: grid; grid-template-columns: 42px 42px minmax(0, 1fr); gap: 22px; align-items: start; min-height: 200px; padding: 34px; border: 1px solid var(--excel-line); background: #fff; box-shadow: 0 22px 55px rgba(13, 26, 50, .09); }
.excel-foundation-stack article:nth-child(2) { top: 132px; }
.excel-foundation-stack article:nth-child(3) { top: 146px; }
.excel-foundation-stack article:nth-child(4) { top: 160px; }
.excel-foundation-stack article:nth-child(5) { top: 174px; }
.excel-foundation-stack article:nth-child(6) { top: 188px; }
.excel-foundation-stack article > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--excel-blue); font-family: "JetBrains Mono", monospace; font-size: .64rem; }
.excel-foundation-stack h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 500; }
.excel-foundation-stack p { max-width: 630px; margin: 0; color: #626b79; line-height: 1.65; }

.excel-vba { color: #fff; background: var(--excel-navy); }
.excel-vba-grid { display: grid; grid-template-columns: minmax(440px, .9fr) minmax(0, 1.1fr); gap: 8vw; align-items: center; }
.excel-vba .excel-heading { margin: 0; }
.excel-vba-code { overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: #0d1b32; box-shadow: 0 32px 80px rgba(0, 0, 0, .28); }
.excel-vba-code header { display: flex; gap: 8px; align-items: center; padding: 18px 21px; border-bottom: 1px solid rgba(255, 255, 255, .12); background: #14243f; }
.excel-vba-code header > span { width: 8px; height: 8px; border-radius: 50%; background: #60708b; }
.excel-vba-code header strong { margin-left: 14px; color: #9daac0; font-family: "JetBrains Mono", monospace; font-size: .7rem; font-weight: 500; }
.excel-vba-code code { display: block; padding: 54px 42px; color: #d7dfea; font-family: "JetBrains Mono", monospace; font-size: clamp(.87rem, 1.35vw, 1.12rem); line-height: 2.05; }
.excel-vba-code code i { color: #82e1c7; font-style: normal; }
.excel-vba-code code b { color: #8aa0ff; font-weight: 500; }
.excel-vba-code code em { color: #efc479; font-style: normal; }
.excel-vba-code > div { display: flex; gap: 13px; align-items: center; padding: 20px 25px; color: #cbd5e5; background: #162a49; font-size: .8rem; }
.excel-vba-code > div img { filter: invert(84%) sepia(31%) saturate(665%) hue-rotate(110deg) brightness(95%) contrast(91%); }

.excel-data-visual { overflow: hidden; margin: 0; border-radius: 24px; box-shadow: 0 25px 70px rgba(20, 35, 67, .12); }
.excel-data-visual img { display: block; width: 100%; height: auto; }

.excel-connections-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(560px, 1.15fr); gap: 8vw; align-items: center; }
.excel-connections .excel-heading { margin: 0; }
.excel-connections .excel-text-link { margin-top: 34px; color: #4255c3; }
.excel-orbit { position: relative; min-height: 540px; border-radius: 50%; background: radial-gradient(circle, #f3f5fb 0 27%, transparent 28%), repeating-radial-gradient(circle, transparent 0 95px, #e2e6ee 96px 97px); }
.excel-orbit > span { position: absolute; display: flex; gap: 10px; align-items: center; padding: 14px 18px; border: 1px solid var(--excel-line); border-radius: 8px; background: #fff; box-shadow: 0 14px 35px rgba(13, 26, 50, .1); font-size: .78rem; font-weight: 600; }
.excel-orbit > span img { filter: invert(36%) sepia(58%) saturate(1385%) hue-rotate(211deg) brightness(93%) contrast(96%); }
.excel-orbit .excel-orbit-core { top: 50%; left: 50%; z-index: 2; min-width: 180px; min-height: 90px; justify-content: center; flex-direction: column; color: #fff; background: var(--excel-navy); transform: translate(-50%, -50%); }
.excel-orbit .excel-orbit-core img { filter: invert(83%) sepia(22%) saturate(919%) hue-rotate(112deg) brightness(99%) contrast(88%); }
.excel-orbit > span:nth-child(2) { top: 13%; left: 19%; }
.excel-orbit > span:nth-child(3) { top: 18%; right: 11%; }
.excel-orbit > span:nth-child(4) { right: 7%; bottom: 17%; }
.excel-orbit > span:nth-child(5) { bottom: 12%; left: 13%; }

.excel-method { color: #fff; background: var(--excel-navy); }
.excel-method-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; }
.excel-method-list li { min-height: 300px; padding: 28px 22px; border-right: 1px solid rgba(255, 255, 255, .18); }
.excel-method-list li:last-child { border-right: 0; }
.excel-method-list li > span { color: #82dec6; font-family: "JetBrains Mono", monospace; font-size: .66rem; }
.excel-method-list h3 { margin: 95px 0 13px; font-size: 1.25rem; font-weight: 500; }
.excel-method-list p { margin: 0; color: rgba(255, 255, 255, .56); font-size: .78rem; line-height: 1.62; }

.excel-decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-shadow: 0 30px 75px rgba(42, 37, 27, .1); }
.excel-decision-grid article { min-height: 480px; padding: 38px; border-right: 1px solid #d8d1c4; background: #fff; }
.excel-decision-grid article:last-child { border-right: 0; }
.excel-decision-grid article.is-soft { background: #edf1fa; }
.excel-decision-grid article.is-dark { color: #fff; background: var(--excel-navy); }
.excel-decision-grid h3 { max-width: 300px; margin: 0 0 18px; font-size: clamp(1.7rem, 2.25vw, 2.55rem); font-weight: 500; line-height: 1.04; }
.excel-decision-grid p { min-height: 55px; margin: 0; color: #68707d; line-height: 1.6; }
.excel-decision-grid .is-dark p { color: rgba(255, 255, 255, .6); }
.excel-decision-grid ul { padding: 26px 0 0; margin: 56px 0 0; border-top: 1px solid #d5dae4; list-style: none; }
.excel-decision-grid .is-dark ul { border-color: rgba(255, 255, 255, .18); }
.excel-decision-grid li { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid #e0e3e9; font-size: .82rem; line-height: 1.5; }
.excel-decision-grid .is-dark li { border-color: rgba(255, 255, 255, .14); }
.excel-decision-grid li::before { position: absolute; top: 19px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--excel-mint); content: ""; }

.excel-scope-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .68fr); gap: 9vw; }
.excel-scope .excel-heading { margin: 0; }
.excel-scope .excel-heading h2 { font-size: clamp(2.6rem, 4vw, 4.85rem); }
.excel-scope .button { margin-top: 40px; }
.excel-scope ul { padding: 0; margin: 0; border-top: 1px solid var(--excel-line); list-style: none; }
.excel-scope li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; padding: 24px 0; border-bottom: 1px solid var(--excel-line); font-size: .9rem; line-height: 1.55; }
.excel-scope li span { color: #5669d6; font-family: "JetBrains Mono", monospace; font-size: .68rem; }

.excel-deliverable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #cbd3df; border-left: 1px solid #cbd3df; }
.excel-deliverable-grid article { min-height: 275px; padding: 30px; border-right: 1px solid #cbd3df; border-bottom: 1px solid #cbd3df; background: rgba(255, 255, 255, .4); }
.excel-deliverable-grid h3 { margin: 75px 0 10px; font-size: 1.25rem; }
.excel-deliverable-grid p { margin: 0; color: #626b79; font-size: .82rem; line-height: 1.6; }

.excel-faq-layout { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr); gap: 9vw; }
.excel-faq-layout .excel-heading { margin: 0; }
.excel-faq-layout .excel-heading h2 { font-size: clamp(2.6rem, 3.8vw, 4.55rem); }
.excel-faq-list { border-top: 1px solid var(--excel-line); }
.excel-faq-list details { border-bottom: 1px solid var(--excel-line); }
.excel-faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 24px; align-items: center; padding: 27px 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.025em; cursor: pointer; list-style: none; }
.excel-faq-list summary::-webkit-details-marker { display: none; }
.excel-faq-list summary img { transition: transform .25s ease; }
.excel-faq-list details[open] summary img { transform: rotate(45deg); }
.excel-faq-list p { max-width: 760px; margin: -2px 42px 28px 0; color: #626b79; line-height: 1.72; }

.excel-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #cbd3df; border-left: 1px solid #cbd3df; }
.excel-related-grid a { display: flex; min-height: 390px; flex-direction: column; padding: 32px; border-right: 1px solid #cbd3df; border-bottom: 1px solid #cbd3df; color: var(--excel-ink); background: #fff; text-decoration: none; transition: transform .4s ease, color .4s ease, background-color .4s ease; }
.excel-related-grid a:hover,
.excel-related-grid a:focus-visible { z-index: 1; color: #fff; background: var(--excel-blue); transform: translateY(-7px); }
.excel-related-grid small { margin-top: 27px; color: #5062d0; font-family: "JetBrains Mono", monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.excel-related-grid h3 { margin: auto 0 13px; font-size: clamp(1.45rem, 1.9vw, 2.15rem); font-weight: 500; line-height: 1.07; }
.excel-related-grid p { margin: 0; color: #626b79; font-size: .82rem; line-height: 1.6; }
.excel-related-grid span { display: flex; gap: 9px; align-items: center; margin-top: 26px; color: #5062d0; font-size: .73rem; font-weight: 600; }
.excel-related-grid span img { filter: none; }
.excel-related-grid a:hover small,
.excel-related-grid a:hover p,
.excel-related-grid a:hover span,
.excel-related-grid a:focus-visible small,
.excel-related-grid a:focus-visible p,
.excel-related-grid a:focus-visible span { color: rgba(255, 255, 255, .8); }
.excel-related-grid a:hover > img,
.excel-related-grid a:hover span img,
.excel-related-grid a:focus-visible > img,
.excel-related-grid a:focus-visible span img { filter: invert(1); }

.excel-final-cta { padding: 100px 0; color: #fff; background: var(--excel-blue); }
.excel-final-cta .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 70px; align-items: end; }
.excel-final-cta .eyebrow { color: #e2e6ff; }
.excel-final-cta h2 { max-width: 930px; font-size: clamp(2.7rem, 4vw, 4.7rem); }

@media (max-width: 1180px) {
    .excel-hero { min-height: 0; }
    .excel-hero-grid { grid-template-columns: 1fr; }
    .excel-hero-copy { max-width: 980px; }
    .excel-hero h1 { max-width: 960px; }
    .excel-hero-visual { width: 100%; max-width: 920px; margin: 10px 0 0 auto; }
    .excel-wide-layout,
    .excel-transformation-layout { gap: 6vw; }
    .excel-method-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .excel-method-list li:nth-child(3) { border-right: 0; }
    .excel-method-list li:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .18); }
}

@media (max-width: 900px) {
    .replace-excel-page .container { width: min(100% - 40px, 1320px); }
    .excel-section { padding: 98px 0; }
    .excel-heading-split,
    .excel-wide-layout,
    .excel-transformation-layout,
    .excel-vba-grid,
    .excel-connections-grid,
    .excel-scope-grid,
    .excel-faq-layout,
    .excel-final-cta .container { grid-template-columns: 1fr; gap: 54px; }
    .excel-heading-split { align-items: start; }
    .excel-heading-split > p:last-child { max-width: 690px; }
    .excel-transformation .excel-heading { position: static; }
    .excel-foundation-stack article { position: relative; top: auto !important; }
    .excel-connections-grid { grid-template-columns: 1fr; }
    .excel-orbit { max-width: 650px; width: 100%; margin-inline: auto; }
    .excel-decision-grid { grid-template-columns: 1fr; }
    .excel-decision-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid #d8d1c4; }
    .excel-decision-grid p { min-height: 0; }
    .excel-decision-grid ul { margin-top: 35px; }
    .excel-deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .excel-related-grid { grid-template-columns: 1fr; }
    .excel-related-grid a { min-height: 300px; }
    .excel-final-cta .button { justify-self: start; }
}

@media (max-width: 640px) {
    .replace-excel-page .container { width: calc(100% - 32px); }
    .replace-excel-page h2,
    .excel-wide-layout > .excel-heading h2,
    .excel-vba .excel-heading h2,
    .excel-scope .excel-heading h2,
    .excel-faq-layout .excel-heading h2 { font-size: 2.55rem; }
    .excel-hero { padding: 120px 0 64px; }
    .excel-hero h1 { font-size: clamp(2.2rem, 9.8vw, 2.8rem); line-height: .95; }
    .excel-actions { align-items: stretch; flex-direction: column; }
    .excel-actions .button { justify-content: center; text-align: center; }
    .excel-actions .excel-text-link { align-self: flex-start; }
    .excel-hero-visual { width: 115%; margin-left: -7%; }
    .excel-signal-grid,
    .excel-audit-grid,
    .excel-audit-decisions,
    .excel-deliverable-grid,
    .excel-method-list { grid-template-columns: 1fr; }
    .excel-signal-grid article { min-height: 220px; }
    .excel-audit-decisions span { border-right: 0; border-bottom: 1px solid #cbd3df; }
    .excel-audit-decisions span:last-child { border-bottom: 0; }
    .excel-map-row { grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1.35fr); gap: 10px; }
    .excel-map-row img { width: 30px; }
    .excel-map-row span { font-size: .74rem; }
    .excel-map-row strong { font-size: .88rem; }
    .excel-mid-cta { padding: 74px 0; }
    .excel-mid-cta h2 { font-size: 2.35rem; }
    .excel-foundation-stack article { grid-template-columns: 36px minmax(0, 1fr); padding: 27px; }
    .excel-foundation-stack article > img { grid-column: 1; grid-row: 2; }
    .excel-foundation-stack article > div { grid-column: 2; grid-row: 1 / span 2; }
    .excel-vba-code code { padding: 38px 23px; font-size: .76rem; }
    .excel-orbit { min-height: 440px; }
    .excel-orbit > span { padding: 11px 13px; font-size: .68rem; }
    .excel-orbit .excel-orbit-core { min-width: 150px; }
    .excel-orbit > span:nth-child(2) { top: 9%; left: 5%; }
    .excel-orbit > span:nth-child(3) { top: 12%; right: 1%; }
    .excel-orbit > span:nth-child(4) { right: 0; bottom: 13%; }
    .excel-orbit > span:nth-child(5) { bottom: 9%; left: 2%; }
    .excel-method-list li { min-height: 0; padding: 30px 0; border-top: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
    .excel-method-list li:nth-child(n+4) { border-top: 0; }
    .excel-method-list h3 { margin-top: 32px; }
    .excel-decision-grid article { padding: 30px; }
    .excel-deliverable-grid article { min-height: 240px; }
    .excel-related-grid a { min-height: 285px; padding: 28px; }
    .excel-final-cta { padding: 76px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .excel-hero-copy > *,
    .excel-hero-visual,
    [data-excel-reveal] article,
    [data-excel-reveal] li,
    [data-excel-reveal] .excel-heading > *,
    .excel-map-row,
    .excel-data-visual,
    .excel-related-grid a { opacity: 1 !important; transform: none !important; transition: none !important; }
}
