/* =========================================================
   FIRSTFINTECH — DESIGN SYSTEM
   White canvas, warm cream surfaces, near-black ink,
   dark brown actions, orange text links, mono eyebrows.
   ========================================================= */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Inter-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Inter-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/Inter-SemiBold.woff2) format('woff2'); }

:root {
    --white: #ffffff;
    --cream: #F2F6F9;
    --cream-2: #E6EDF2;
    --line: #DFE6EC;
    --line-soft: #EBF0F4;
    --ink: #172C45;
    --ink-2: #22344B;
    --muted: #56606E;
    --grey: #8993A0;
    --brown: #172C45;
    --brown-hover: #22405F;
    --orange: #1F6694;
    --orange-dark: #1a5580;
    --green: #1E681D;
    --green-tint: #EBF7EA;
    --amber-tint: #FDF1D6;
    --dark: #0B1624;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --wrap: 1320px;
    --gutter: 60px;
    --nav-h: 72px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: #CFE4F1; color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.material-symbols-outlined {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1em; height: 1em;
    font-size: 22px; line-height: 1;
    flex-shrink: 0;
}
.material-symbols-outlined svg {
    width: 1em; height: 1em; display: block;
    fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section.flush-top { padding-top: 0; }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.on-dark .eyebrow, .eyebrow.light { color: rgba(255,255,255,.62); }
.display {
    font-size: clamp(40px, 5.4vw, 72px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
}
.h1 {
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.h2 {
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.028em;
}
.h3 {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.h4 { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.lead-lg { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.on-dark { color: #fff; }
.on-dark .lead, .on-dark .lead-lg, .on-dark .muted { color: rgba(255,255,255,.68); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lead, .section-head .lead-lg { margin-top: 16px; }
.section-head.row {
    max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
}
.section-head.row .lead { margin-top: 0; max-width: 520px; justify-self: end; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 24px;
    border-radius: 14px;
    font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-hover); }
.btn-secondary { background: var(--cream); color: var(--ink); }
.btn-secondary:hover { background: var(--cream-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--orange); font-weight: 600; font-size: 16px;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
    text-decoration-color: rgba(31,102,148,.45);
    transition: color .2s ease, text-decoration-color .2s ease, gap .2s var(--ease);
}
.link::after {
    content: ""; width: 7px; height: 7px; margin-left: 4px;
    border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor;
    transform: rotate(45deg); transition: transform .2s var(--ease);
}
.link:hover { color: var(--orange-dark); text-decoration-color: currentColor; }
.link:hover::after { transform: translateX(3px) rotate(45deg); }
.on-dark .link { color: #BEF1DE; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { width: 168px; filter: brightness(0); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 2px;
    height: 40px; padding: 0 14px; border-radius: 10px;
    font-size: 15px; font-weight: 500; color: var(--ink);
    transition: background-color .15s ease;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--cream); }
.nav-link[aria-current="page"] { background: var(--cream); }
.nav-link .material-symbols-outlined { font-size: 18px; transition: transform .2s ease; }
.nav-item.open > .nav-link .material-symbols-outlined { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.mega {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translate(-50%, 6px);
    min-width: 560px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(18,17,16,.22);
    padding: 12px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .22s var(--ease), visibility .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-grid.one { grid-template-columns: 1fr; min-width: 0; }
.mega.narrow { min-width: 340px; }
.mega-title {
    grid-column: 1 / -1;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--grey); padding: 8px 12px 6px;
}
.mega-link {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px; border-radius: 12px;
    transition: background-color .15s ease;
}
.mega-link:hover { background: var(--cream); }
.mega-link .material-symbols-outlined {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--cream); font-size: 20px; color: var(--ink);
}
.mega-link:hover .material-symbols-outlined { background: #fff; }
.mega-link strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.mega-link small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-foot {
    margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: var(--cream);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 14px;
}
.mega-foot .link { font-size: 14px; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--cream); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 22px; height: 1.6px; background: var(--ink); border-radius: 2px;
    position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    background: #fff;
    overflow-y: auto;
    padding: 8px 20px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .3s var(--ease), visibility .2s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group > button, .m-group > a {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 20px 4px; font-size: 20px; font-weight: 400; letter-spacing: -0.02em; text-align: left;
}
.m-group > button .material-symbols-outlined { transition: transform .25s ease; }
.m-group.open > button .material-symbols-outlined { transform: rotate(180deg); }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.m-sub > div { overflow: hidden; }
.m-group.open .m-sub { grid-template-rows: 1fr; }
.m-sub a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; font-size: 16px; color: var(--ink-2); }
.m-sub a:last-child { margin-bottom: 16px; }
.m-sub .material-symbols-outlined { font-size: 20px; color: var(--muted); }
.m-actions { display: grid; gap: 10px; margin-top: 28px; }
.m-actions .btn { width: 100%; height: 52px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: end; }
.hero-title { max-width: 760px; }
.hero-side { max-width: 440px; justify-self: end; }
.hero-side .lead { margin-bottom: 28px; }
.hero.centered { text-align: center; padding-bottom: 72px; }
.hero.centered .hero-title, .hero.centered .lead-lg { margin-left: auto; margin-right: auto; }
.hero.centered .lead-lg { max-width: 640px; margin-top: 24px; }
.hero.centered .btn-row { justify-content: center; margin-top: 36px; }

.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
    grid-area: 1 / 1;
    opacity: 0; transform: translateY(40%);
    transition: opacity .5s var(--ease), transform .6s var(--ease);
    white-space: nowrap;
}
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-40%); }
.rotator .accent { color: var(--orange); }

/* ---------- Media stage (dark hero panel) ---------- */
.stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark);
    aspect-ratio: 1400 / 700;
    min-height: 420px;
    isolation: isolate;
}
.stage-media { position: absolute; inset: 0; }
.stage-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity .8s ease, transform 1.4s var(--ease);
}
.stage-media img.is-active { opacity: 1; transform: none; }
.stage::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,22,36,.35) 0%, rgba(11,22,36,0) 30%, rgba(11,22,36,0) 55%, rgba(11,22,36,.8) 100%);
}
.chips { position: absolute; top: 28px; left: 28px; z-index: 2; display: grid; gap: 10px; justify-items: start; pointer-events: none; }
.chip {
    display: inline-flex; align-items: center; gap: 12px;
    height: 52px; padding: 0 22px 0 16px;
    border-radius: 14px;
    background: rgba(60, 70, 82, .42);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 10px 30px -12px rgba(0,0,0,.35);
    color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
    opacity: 0; transform: translateY(14px) scale(.98);
    transition: opacity .5s ease, transform .7s var(--ease);
}
.chip .material-symbols-outlined { font-size: 20px; }
.chips.is-active .chip { opacity: 1; transform: none; }
.chips.is-active .chip:nth-child(1) { transition-delay: .45s; }
.chips.is-active .chip:nth-child(2) { transition-delay: 1.15s; }
.chips.is-active .chip:nth-child(3) { transition-delay: 1.85s; }
.chips:not(.is-active) .chip { transition-duration: .3s; transition-delay: 0s; transform: translateY(-8px); }
.stage-label {
    position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; text-align: center;
    font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.stage-thumbs {
    position: absolute; left: 50%; bottom: 24px; z-index: 2; transform: translateX(-50%);
    display: flex; gap: 12px; align-items: flex-end;
}
.stage-thumb { display: grid; justify-items: center; gap: 8px; width: 158px; }
.stage-thumb-label {
    font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.62); white-space: nowrap; transition: color .3s ease, transform .4s var(--ease);
}
.stage-thumb-img {
    position: relative; display: block; width: 100%; height: 90px; border-radius: 6px; overflow: hidden;
    opacity: .78; transition: opacity .3s ease, transform .4s var(--ease);
}
.stage-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.stage-thumb-img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #fff; }
.stage-thumb:hover .stage-thumb-img { opacity: 1; }
.stage-thumb.is-active .stage-thumb-label { color: #fff; transform: translateY(-4px); }
.stage-thumb.is-active .stage-thumb-img { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.stage-thumb.is-active .stage-thumb-img::after { animation: thumbProgress 5s linear forwards; }
@keyframes thumbProgress { to { width: 100%; } }
.stage.simple { aspect-ratio: 1400 / 620; }
.stage.simple .stage-label { bottom: 28px; }

/* ---------- Logo marquee ---------- */
.logos { padding: 72px 0 24px; }
.logos-label { text-align: center; margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; align-items: center; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
    height: 44px; width: auto; max-width: 150px; object-fit: contain;
    filter: grayscale(1) contrast(1.05); opacity: .7; mix-blend-mode: multiply;
    transition: filter .3s ease, opacity .3s ease;
}
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product grid (bordered table) ---------- */
.pgrid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: #fff;
}
.pgrid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.pgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pgrid a, .pgrid > div {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 24px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin: 0 -1px -1px 0;
    transition: background-color .15s ease;
}
.pgrid a:hover { background: var(--cream); }
.pgrid .material-symbols-outlined { font-size: 20px; color: var(--ink-2); }

/* ---------- Cream cards ---------- */
.card {
    background: var(--cream); border-radius: var(--radius);
    padding: 40px; position: relative; overflow: hidden;
}
.card.white { background: #fff; border: 1px solid var(--line); }
.card.dark { background: var(--ink); color: #fff; }
.card .h3 + .link, .card .h3 + p { margin-top: 14px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.duo-card { display: flex; flex-direction: column; min-height: 560px; padding: 0; }
.duo-card .duo-body { padding: 40px 40px 0; }
.duo-card .duo-body p { margin-top: 12px; color: var(--muted); max-width: 520px; }
.duo-card .duo-body .link { margin-top: 18px; }
.duo-card .duo-media { margin-top: auto; padding: 36px 0 0 40px; }
.duo-card .duo-media.vis-host { padding: 12px 0 0; }
.duo-card .duo-media:not(.vis-host) img {
    width: 100%; height: 300px; object-fit: cover;
    border-top-left-radius: 14px;
    transition: transform 1s var(--ease);
}
.duo-card:hover .duo-media:not(.vis-host) img { transform: scale(1.025); transform-origin: bottom right; }
.duo-card .duo-media.contain img { object-fit: contain; object-position: right bottom; border-radius: 0; }

.feature-center { padding: 96px 40px 80px; text-align: center; }
.feature-center .h1 { max-width: 720px; margin: 0 auto; }
.feature-center .lead { max-width: 620px; margin: 16px auto 0; }
.feature-center .fc-media { margin: 56px auto; max-width: 880px; }
.feature-center .fc-media:not(.vis-host) img { width: 100%; border-radius: 14px; }
.divlist { max-width: 600px; margin: 0 auto; border-top: 1px solid rgba(18,17,16,.14); }
.divlist li { padding: 12px 0; border-bottom: 1px solid rgba(18,17,16,.14); font-size: 16px; }
.feature-center .link { margin-top: 36px; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.split-media:not(.vis-host) img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.split-media.contain { padding: 40px; }
.split-media.contain img { object-fit: contain; aspect-ratio: auto; max-height: 460px; margin: 0 auto; }
.split-text .lead { margin-top: 18px; }
.split-text .btn-row, .split-text > .link { margin-top: 32px; }
.checklist { margin-top: 28px; border-top: 1px solid var(--line); }
.checklist li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.checklist .material-symbols-outlined { font-size: 20px; color: var(--green); margin-top: 1px; }
.checklist strong { font-weight: 500; display: block; }
.checklist small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.on-dark .checklist { border-color: rgba(255,255,255,.14); }
.on-dark .checklist li { border-color: rgba(255,255,255,.14); }
.on-dark .checklist .material-symbols-outlined { color: #9BD89A; }

/* ---------- Feature card grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fgrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.fcard {
    background: var(--cream); border-radius: var(--radius); padding: 32px;
    display: flex; flex-direction: column;
    transition: background-color .25s ease, transform .35s var(--ease);
}
a.fcard:hover, .fcard.hoverable:hover { background: var(--cream-2); }
.fcard .ic {
    width: 44px; height: 44px; border-radius: 12px; background: #fff;
    display: grid; place-items: center; margin-bottom: 28px;
}
.fcard .ic img { width: 28px; height: 28px; object-fit: contain; }
.fcard h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.fcard p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fcard ul { margin-top: 18px; border-top: 1px solid rgba(18,17,16,.1); }
.fcard ul li { font-size: 14px; padding: 9px 0; border-bottom: 1px solid rgba(18,17,16,.1); }
.fcard .link { margin-top: auto; padding-top: 22px; font-size: 15px; }
.fcard.white { background: #fff; border: 1px solid var(--line); }
.on-dark .fcard, .fcard.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.on-dark .fcard p { color: rgba(255,255,255,.62); }
.on-dark .fcard .ic { background: rgba(255,255,255,.1); }
.on-dark .fcard ul, .on-dark .fcard ul li { border-color: rgba(255,255,255,.12); }
.on-dark a.fcard:hover { background: rgba(255,255,255,.1); }

/* ---------- Accordion + panel ---------- */
.acc-split .section-head { margin-bottom: 40px; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 20px 0; text-align: left; font-size: 18px; font-weight: 400; letter-spacing: -0.015em;
}
.acc-btn .num { font-family: var(--mono); font-size: 12px; color: var(--grey); margin-right: 16px; }
.acc-btn .material-symbols-outlined { font-size: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.acc-item.open .acc-btn .material-symbols-outlined { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-body p { color: var(--muted); padding-bottom: 22px; max-width: 860px; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.on-dark .acc, .on-dark .acc-item { border-color: rgba(255,255,255,.14); }
.on-dark .acc-body p { color: rgba(255,255,255,.65); }

.panel {
    margin-top: 48px;
    background: #0F2236;
    border-radius: 20px;
    padding: 48px 0 0 48px;
    overflow: hidden;
}
.panel-inner {
    background: #fff; border-radius: 14px 0 0 0; min-height: 360px;
    box-shadow: 0 -1px 0 rgba(255,255,255,.1);
}
.panel-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th {
    text-align: left; font-weight: 400; font-size: 13px; color: var(--grey);
    padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
}
.ptable td { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ptable td small { display: block; color: var(--grey); font-size: 13px; margin-top: 2px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px; border-radius: 999px;
    font-size: 13px; font-weight: 500; white-space: nowrap;
}
.badge.green { background: var(--green-tint); color: var(--green); }
.badge.amber { background: var(--amber-tint); color: #7A5402; }
.badge.grey { background: var(--cream); color: var(--muted); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.progress { height: 6px; border-radius: 99px; background: var(--cream); overflow: hidden; min-width: 120px; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--brown); border-radius: inherit; }

/* ---------- Dark developer block ---------- */
.darkblock {
    position: relative; overflow: hidden; isolation: isolate;
    background: #0B1624; color: #fff;
    border-radius: 20px;
    padding: 120px 48px 0;
    text-align: center;
}
.darkblock .orb {
    position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 30% 70%, #BEF1DE 0%, #3B8FC4 22%, #1F4E79 48%, rgba(10,20,40,0) 70%);
    filter: blur(2px);
}
.darkblock .orb.a { width: 560px; height: 560px; right: -180px; top: -160px; opacity: .9; }
.darkblock .orb.b { width: 420px; height: 420px; right: -120px; top: 300px; opacity: .8; }
.darkblock .orb.c { width: 380px; height: 380px; left: -220px; bottom: -200px; opacity: .45; }
.darkblock .h2 { max-width: 760px; margin: 0 auto; }
.darkblock .lead { max-width: 580px; margin: 20px auto 0; color: rgba(255,255,255,.72); }
.darkblock .link { margin-top: 24px; }
.darkblock .tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.darkblock .tags span {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 14px;
}
.darkblock .tags .material-symbols-outlined { font-size: 17px; color: #9BD89A; }

.code {
    max-width: 780px; margin: 64px auto 0;
    background: rgba(15,30,48,.86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
    border-radius: 14px 14px 0 0;
    text-align: left; overflow: hidden;
}
.code.boxed { border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 14px; margin: 0; max-width: none; }
.code-head {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
    font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5);
}
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); display: block; }
.code-tabs { display: flex; gap: 4px; }
.code-tabs button {
    font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5);
    padding: 5px 10px; border-radius: 8px;
}
.code-tabs button.is-active { background: rgba(255,255,255,.1); color: #fff; }
.code pre {
    margin: 0; padding: 24px 24px 32px; overflow-x: auto;
    font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #E3EAF0;
}
.code pre[hidden] { display: none; }
.tok-k { color: #9de8cc; } .tok-s { color: #A8D8A0; } .tok-c { color: rgba(255,255,255,.38); } .tok-f { color: #9FC7F5; } .tok-n { color: #F3C98B; }

/* ---------- Stats / support row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; }
.stat { padding: 4px 28px; border-left: 1px solid var(--line); }
.stat strong {
    display: block; font-size: clamp(36px, 3.6vw, 52px); font-weight: 400;
    letter-spacing: -0.04em; line-height: 1.05;
}
.stat span { display: block; font-size: 16px; margin-top: 8px; }
.stat small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.stat.sm strong { font-size: 22px; letter-spacing: -0.02em; }
.on-dark .stat { border-color: rgba(255,255,255,.16); }
.on-dark .stat small { color: rgba(255,255,255,.6); }

.support-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.support-head .avatar {
    width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 20px;
    background: var(--cream); display: grid; place-items: center;
}
.support-head .lead { margin-top: 14px; }

/* ---------- Big media (video / deck) ---------- */
.bigmedia {
    border-radius: 20px; overflow: hidden; background: var(--ink);
    aspect-ratio: 16 / 9; position: relative;
}
.bigmedia iframe, .bigmedia img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.bigmedia.tall { aspect-ratio: 16 / 10; }
.media-note { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Trust / cert logos ---------- */
.certs { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
.certs .card { padding: 32px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.certs .card:last-child .cert-grid { grid-template-columns: repeat(4, 1fr); }
.cert-grid div {
    background: #fff; border-radius: 12px; height: 88px;
    display: grid; place-items: center; padding: 16px;
}
.cert-grid img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px 0 0; border-top: 1px solid var(--ink); }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--grey); letter-spacing: .06em; }
.step h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-top: 18px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.on-dark .step { border-color: rgba(255,255,255,.4); }
.on-dark .step p { color: rgba(255,255,255,.62); }

/* ---------- Tabs (segmented) ---------- */
.seg {
    display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--cream);
    margin-bottom: 40px; flex-wrap: wrap;
}
.seg button { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(18,17,16,.08); }
.tabpane[hidden] { display: none; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.office { background: var(--cream); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; min-height: 260px; }
.office .eyebrow { margin-bottom: 20px; }
.office h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.office p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.office a { margin-top: auto; padding-top: 24px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.office a .material-symbols-outlined { font-size: 18px; }

.places { display: flex; flex-wrap: wrap; gap: 8px; }
.places > span {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-size: 15px;
}
.places > span .material-symbols-outlined { font-size: 18px; color: var(--orange); }
.places > span.hub { background: var(--ink); color: #fff; border-color: var(--ink); }
.places > span.hub .material-symbols-outlined { color: #9de8cc; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,17,16,.08); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span {
    display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500;
    transition: all .15s ease;
}
.checks input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.checks input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-msg { font-size: 15px; font-weight: 500; min-height: 22px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #B42318; }

/* ---------- CTA ---------- */
.cta { padding: 72px 40px; }
.cta-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: start; }
.cta .h2 { max-width: 820px; }
.cta p.lead { margin-top: 14px; max-width: 640px; }
.cta .btn-row { grid-column: 1 / -1; margin-top: 20px; }
.cta .eyebrow { padding-top: 12px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); margin: 48px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose .contact-box { margin-top: 48px; background: var(--cream); border-radius: var(--radius); padding: 28px 32px; }
.prose .contact-box h3 { margin-top: 0; }

/* ---------- Phone gallery ---------- */
.phones {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 0 24px; scrollbar-width: none;
}
.phones::-webkit-scrollbar { display: none; }
.phones figure {
    margin: 0; flex: 0 0 auto; width: 240px; scroll-snap-align: start;
    background: var(--cream); border-radius: 28px; padding: 14px;
}
.phones img { width: 100%; border-radius: 18px; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button {
    width: 44px; height: 44px; border-radius: 12px; background: var(--cream);
    display: grid; place-items: center; transition: background-color .15s;
}
.gallery-nav button:hover { background: var(--cream-2); }

/* ---------- Pills row (chips list) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills > span {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px;
}
.pills .material-symbols-outlined { font-size: 17px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 96px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
/* Skip link: off-screen until a keyboard user tabs to it */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { left: 12px; }

.footer-brand img { width: 170px; filter: brightness(0); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 300px; }
.footer-col h4 {
    font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
    color: var(--grey); margin-bottom: 16px;
}
.footer-col ul + h4 { margin-top: 32px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 15px; transition: color .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-col .contact-line { font-size: 15px; }
.footer-col .contact-line small { display: block; color: var(--grey); font-size: 13px; }
.social { display: flex; gap: 8px; margin-top: 24px; }
.social a {
    width: 40px; height: 40px; border-radius: 12px; background: var(--cream);
    display: grid; place-items: center; transition: background-color .15s;
}
.social a:hover { background: var(--cream-2); }
.social svg { width: 16px; height: 16px; fill: var(--ink); }
.footer-bottom {
    margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 14px; color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stage-media img { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    :root { --gutter: 40px; }
    .nav-menu .nav-link { padding: 0 10px; }
    .nav-actions .btn-secondary { display: none; }
    .pgrid, .pgrid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .fgrid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    :root { --gutter: 24px; --nav-h: 64px; }
    .nav-menu, .nav-actions .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-logo img { width: 148px; }
    .section { padding: 88px 0; }
    .hero { padding: 56px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-side { justify-self: start; }
    .section-head.row { grid-template-columns: 1fr; gap: 16px; }
    .section-head.row .lead { justify-self: start; }
    .duo, .split, .certs { grid-template-columns: 1fr; gap: 20px; }
    .split { gap: 40px; }
    .split.reverse > :first-child { order: 0; }
    .duo-card { min-height: 0; }
    .fgrid, .fgrid.cols-4 { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
    .steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
    .offices { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    .cta .eyebrow { padding-top: 0; }
    .stage { aspect-ratio: auto; height: 560px; min-height: 0; }
    .stage-thumbs { gap: 8px; bottom: 16px; }
    .stage-thumb { width: 21vw; max-width: 130px; }
    .stage-thumb-img { height: 56px; }
    .stage-thumb-label { font-size: 9.5px; letter-spacing: .04em; }
    .darkblock { padding: 80px 24px 0; }
    .panel { padding: 24px 0 0 24px; }
}
@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .section { padding: 72px 0; }
    .display { font-size: 40px; }
    .rotator > span { white-space: normal; }
    .btn-row .btn { flex: 1 1 auto; }
    .pgrid, .pgrid.cols-5, .pgrid.cols-3 { grid-template-columns: 1fr 1fr; }
    .pgrid a, .pgrid > div { padding: 18px 16px; font-size: 14px; gap: 10px; }
    .fgrid, .fgrid.cols-2, .fgrid.cols-4 { grid-template-columns: 1fr; }
    .card, .fcard { padding: 28px 24px; }
    .duo-card { padding: 0; }
    .duo-card .duo-body { padding: 28px 24px 0; }
    .duo-card .duo-media:not(.vis-host) { padding: 28px 0 0 24px; }
    .duo-card .duo-media:not(.vis-host) img { height: 220px; }
    .feature-center { padding: 64px 24px; }
    .stats, .stats.cols-3 { grid-template-columns: 1fr; gap: 24px; }
    .stat { padding: 4px 0 4px 20px; }
    .steps { grid-template-columns: 1fr; }
    .form .row2 { grid-template-columns: 1fr; }
    .cert-grid, .certs .card:last-child .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .stage { height: 480px; border-radius: 16px; }
    .chips { top: 16px; left: 16px; right: 16px; }
    .chip { height: 42px; font-size: 14px; padding: 0 16px 0 12px; }
    .stage-thumb-label { display: none; }
    .ptable .hide-sm { display: none; }
    .code pre { font-size: 12.5px; padding: 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-bottom { flex-direction: column; }
    .cta { padding: 48px 24px; }
}

/* ---------- Refinements ---------- */
.card .btn-secondary, .office .btn-secondary { background: #fff; }
.card .btn-secondary:hover { background: var(--cream-2); }
@media (min-width: 992px) { .cta .btn-row { grid-column: 2; } }
.site-footer { margin-top: 0; }
button.fcard[data-tab] { cursor: pointer; font: inherit; color: inherit; border: 1px solid transparent; }
button.fcard[data-tab].is-active { background: #fff; border-color: var(--ink); }
button.fcard[data-tab] .material-symbols-outlined { transition: transform .2s var(--ease); }
button.fcard[data-tab].is-active .material-symbols-outlined { transform: translateX(3px); }
.split > *, .duo > *, .fgrid > *, .hero-grid > *, .cta-grid > * { min-width: 0; }
@media (max-width: 991.98px) { .stage.simple { aspect-ratio: auto; height: 460px; } }
@media (max-width: 640px) { .stage.simple { height: 380px; } }
.mega-link .material-symbols-outlined svg { width: 20px; height: 20px; }
.mega-foot .link { white-space: nowrap; }

.darkblock .link, .netblock .link, .card.dark .link { color: #BEF1DE; text-decoration-color: rgba(190,241,222,.5); }
.darkblock .link:hover, .netblock .link:hover { color: #fff; }

/* ---------- Hero stage: phone layout ---------- */
@media (max-width: 640px) {
    .stage[data-stage] { height: auto; aspect-ratio: auto; display: flex; flex-direction: column; border-radius: 18px; }
    .stage[data-stage] .stage-media { position: relative; inset: auto; height: 460px; flex: none; }
    .stage[data-stage]::after { height: 460px; bottom: auto; background: linear-gradient(180deg, rgba(11,22,36,.45) 0%, rgba(11,22,36,0) 32%); }
    .stage[data-stage] .stage-thumbs {
        position: relative; left: auto; bottom: auto; transform: none; z-index: 2;
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; background: #0B1624;
    }
    .stage[data-stage] .stage-thumb { width: auto; max-width: none; gap: 6px; }
    .stage[data-stage] .stage-thumb-label { display: block; font-size: 8.5px; letter-spacing: .02em; text-align: center; white-space: normal; line-height: 1.2; min-height: 2.4em; }
    .stage[data-stage] .stage-thumb-img { height: 48px; }
    .stage[data-stage] .stage-thumb.is-active .stage-thumb-img, .stage[data-stage] .stage-thumb.is-active .stage-thumb-label { transform: none; }
    .chips { top: 14px; left: 14px; right: auto; gap: 6px; }
    .chip { height: 34px; font-size: 12.5px; padding: 0 12px 0 9px; gap: 8px; border-radius: 10px; }
    .chip .material-symbols-outlined { font-size: 16px; }
    .stage.simple { height: 380px; }
}
@media (max-width: 640px) { .stage[data-stage] .stage-media > img:first-child { object-position: 12% center !important; } }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: #fff;
    box-shadow: 0 12px 28px -10px rgba(23,44,69,.55);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
    transition: opacity .3s ease, transform .4s var(--ease), visibility .3s, background-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top::before {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(#BEF1DE var(--p, 0%), transparent 0); z-index: -1;
    -webkit-mask: radial-gradient(circle, transparent 27px, #000 28px); mask: radial-gradient(circle, transparent 27px, #000 28px);
}
.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } .to-top::before { -webkit-mask: radial-gradient(circle, transparent 24px, #000 25px); mask: radial-gradient(circle, transparent 24px, #000 25px); } }

/* ---------- CTA panel ---------- */
.cta2 {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 28px;
    display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px;
    padding: 80px 72px; min-height: 520px; color: #fff;
    background: radial-gradient(120% 120% at 0% 0%, #1F4E79 0%, #12304F 40%, #0B1624 100%);
}
.cta2::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.2px); background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 80% at 75% 50%, #000, transparent); mask-image: radial-gradient(70% 80% at 75% 50%, #000, transparent);
}
.cta2-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cta2-glow.a { width: 520px; height: 520px; right: -80px; top: -120px; background: rgba(59,143,196,.55); animation: glowDrift 16s ease-in-out infinite alternate; }
.cta2-glow.b { width: 380px; height: 380px; right: 260px; bottom: -220px; background: rgba(190,241,222,.28); animation: glowDrift 20s ease-in-out infinite alternate-reverse; }
@keyframes glowDrift { to { transform: translate(-60px, 40px) scale(1.12); } }
.cta2-text { position: relative; z-index: 2; max-width: 620px; }
.cta2 .eyebrow { color: #BEF1DE; }
.cta2 .h1 { color: #fff; }
.cta2 .lead { color: rgba(255,255,255,.72); margin-top: 18px; max-width: 540px; }
.cta2 .btn-row { margin-top: 34px; }
.cta2 .btn { height: 54px; padding: 0 26px; font-size: 16px; }
.cta2 .btn-light .material-symbols-outlined { font-size: 18px; transition: transform .25s var(--ease); }
.cta2 .btn-light:hover .material-symbols-outlined { transform: translateX(4px); }
.cta2-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.cta2-notes li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.cta2-notes .material-symbols-outlined { font-size: 17px; color: #BEF1DE; }
.cta2-visual { position: relative; height: 440px; }
.cta2-phone {
    position: absolute; left: 50%; top: 50%; width: 220px; margin: -230px 0 0 -110px;
    transform: rotate(8deg); filter: drop-shadow(0 50px 60px rgba(0,0,0,.55));
    animation: ctaFloat 7s ease-in-out infinite;
}
.cta2-phone img { width: 100%; display: block; }
@keyframes ctaFloat { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-14px); } }
.cta2-chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; white-space: nowrap;
    padding: 12px 18px 12px 12px; border-radius: 16px; color: var(--ink);
    background: rgba(255,255,255,.95); box-shadow: 0 24px 50px -18px rgba(0,0,0,.55);
    animation: chipBob 6s ease-in-out infinite;
}
.cta2-chip .material-symbols-outlined { width: 36px; height: 36px; border-radius: 11px; background: var(--green-tint); color: var(--green); font-size: 18px; }
.cta2-chip.c2 .material-symbols-outlined { background: #E3F0F8; color: var(--orange); }
.cta2-chip.c3 .material-symbols-outlined { background: #FDF1D6; color: #7A5402; }
.cta2-chip b { display: block; font-size: 14px; font-weight: 600; }
.cta2-chip small { display: block; font-size: 12px; color: var(--muted); }
.cta2-chip.c1 { left: -10px; top: 40px; }
.cta2-chip.c2 { right: -6px; top: 190px; animation-delay: -2s; }
.cta2-chip.c3 { left: 10px; bottom: 30px; animation-delay: -4s; }
@keyframes chipBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 991.98px) {
    .cta2 { grid-template-columns: 1fr; padding: 56px 32px 0; }
    .cta2-visual { height: 380px; }
}
@media (max-width: 640px) {
    .cta2 { padding: 44px 22px 0; border-radius: 22px; min-height: 0; }
    .cta2 .btn-row .btn { flex: 1 1 100%; }
    .cta2-visual { height: 330px; }
    .cta2-phone { width: 170px; margin: -170px 0 0 -85px; }
    .cta2-chip { padding: 9px 12px 9px 9px; }
    .cta2-chip.c1 { left: 0; top: 24px; } .cta2-chip.c2 { right: 0; top: 150px; } .cta2-chip.c3 { display: none; }
}

.stage-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.simple:has(video)::after { background: linear-gradient(180deg, rgba(11,22,36,.35) 0%, rgba(11,22,36,0) 28%, rgba(11,22,36,0) 70%, rgba(11,22,36,.55) 100%); }
.stage.simple:has(video) { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
@media (max-width: 991.98px) { .stage.simple:has(video) { aspect-ratio: 16 / 9; height: auto; } }

.stage-thumb.is-active .stage-thumb-img::after { animation-duration: var(--dur, 5s); }
.stage-media video { opacity: 0; transition: opacity .8s ease; }
.stage-media video.is-active { opacity: 1; }
@media (max-width: 640px) { .stage[data-stage] .stage-media > video { object-position: center; } }
@media (max-width: 640px) { .stage[data-stage] .stage-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px; } .stage[data-stage] .stage-thumb-img { height: 42px; } .stage[data-stage] .stage-thumb-label { font-size: 7.5px; } }

/* ---------- Scroll progress bar (top) ---------- */
.cp-scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
    background: transparent;
}
.cp-scroll-progress span {
    display: block; height: 100%; width: 100%;
    background: linear-gradient(90deg, #172C45 0%, #1F6694 55%, #BEF1DE 100%);
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    box-shadow: 0 0 10px rgba(31,102,148,.45);
    border-radius: 0 2px 2px 0;
}

/* Tablet: keep stage 16:9 so the desktop video is not cropped */
@media (min-width: 641px) and (max-width: 991.98px) { .stage[data-stage] { height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .stage[data-stage] .stage-media { height: auto; aspect-ratio: 4 / 5; } .stage[data-stage]::after { height: auto; bottom: 90px; } }

/* ===== Mobile image responsiveness pass ===== */
@media (max-width: 640px) {
    /* single-image hero panels: keep image proportions instead of a tall fixed crop */
    .stage.simple:not(:has(video)) { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
    .stage.simple .chips .chip:nth-child(n+3) { display: none; }
    /* split / duo photos: show the whole picture, no parallax zoom */
    .split-media:not(.vis-host) img { aspect-ratio: auto; height: auto; transform: none !important; }
    .split-media.contain { padding: 20px; }
    .split-media.contain img { max-height: 340px; }
    .duo-card .duo-media:not(.vis-host) img { height: auto; aspect-ratio: 16 / 10; }
    .feature-center .fc-media { margin: 32px auto; }
    /* dark panels: keep glows behind the small labels */
    .darkblock .orb.a { width: 320px; height: 320px; right: -160px; top: -140px; }
    .darkblock .orb.b { width: 260px; height: 260px; right: -140px; top: 260px; }
    .darkblock .eyebrow { position: relative; z-index: 1; }
    .bigmedia { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) { .stage.simple:has(video[data-mobile]) { aspect-ratio: 4 / 5; } }

/* Desktop: render at 80% scale by default (same look as browser zoom 80%) */
@media (min-width: 1024px) { html { zoom: 0.8; } }

/* In-text links inside page content: visible but quiet (buttons, cards and nav keep their own styles) */
main p a:not([class]), main li a:not([class]), main small a:not([class]) {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    text-decoration-color: rgba(31,102,148,.45); transition: color .2s ease, text-decoration-color .2s ease;
}
main p a:not([class]):hover, main li a:not([class]):hover, main small a:not([class]):hover { color: var(--orange); text-decoration-color: currentColor; }

/* Insights articles */
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: 56px 0 14px; }
.prose-table { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line-soft); border-radius: 14px; }
.prose-table .ptable { min-width: 560px; }
.prose-table .ptable td:first-child { color: var(--grey); white-space: nowrap; }

/* Hero keyword kicker + trust line (shared by product pages) */
.h1-kicker { display: block; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--ink); margin-bottom: 14px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.hero-trust li { font-size: 13px; color: var(--ink); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 12px; background: #fff; }
.display .w:has(> .h1-kicker) { display: block; }

/* Newsroom */
.news-item { padding: 32px 0; border-bottom: 1px solid var(--line-soft); }
.news-item:first-child { padding-top: 0; }
.news-item h2 { margin-top: 6px; }

/* Fintech industry news feed (news.html) */
.industry-news { margin-top: 56px; }
.feed-list { list-style: none; padding: 0; margin: 8px 0 0; }
.feed-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.feed-list a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.45; }
.feed-list a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.feed-list small { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.prose ul.feed-list { list-style: none; padding-left: 0; }
.prose ul.feed-list li { margin-bottom: 0; }
.prose .feed-list a { color: var(--ink); text-decoration: none; }
.prose .feed-list a:hover { color: var(--orange); text-decoration: underline; }

/* Newsroom tabs + region tag */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.news-tab { font: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft); background: #fff; color: var(--ink); cursor: pointer; }
.news-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.feed-tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.prose ul.feed-list li a { display: block; }

/* Product ticker (replaces client logos) */
.ticker { padding: 72px 0 24px; display: grid; gap: 16px; overflow: hidden; }
.tk-head { text-align: center; margin-bottom: 12px; }
.tk-head .eyebrow { display: block; margin-bottom: 8px; }
.tk-title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.01em; color: var(--ink, #172C45); }
.tk-row { overflow: hidden; padding: 6px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tk-track { display: flex; width: max-content; animation: tk-scroll 60s linear infinite; }
.tk-rev .tk-track { animation-direction: reverse; animation-duration: 70s; }
.tk-row:hover .tk-track, .tk-row:focus-within .tk-track { animation-play-state: paused; }
.tk-set { display: flex; gap: 16px; padding-right: 16px; }
.tk-pill { position: relative; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; padding: 10px 22px 10px 10px; border-radius: 18px; background: linear-gradient(180deg, #fff, #FAFCFD); border: 1px solid rgba(23,44,69,.08); box-shadow: 0 1px 2px rgba(23,44,69,.05), 0 10px 28px -12px rgba(23,44,69,.18); color: var(--ink, #172C45); text-decoration: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, padding .35s; }
.tk-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none; background: linear-gradient(145deg, #3A8CC4 0%, #1F6694 55%, #172C45 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -6px rgba(31,102,148,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tk-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tk-tx { display: grid; gap: 2px; line-height: 1.2; }
.tk-tx b { font-size: 15.5px; font-weight: 600; color: var(--ink, #172C45); }
.tk-tx small { font-size: 13px; color: var(--muted, #56606E); }
.tk-go { width: 0; height: 18px; opacity: 0; margin-left: -6px; fill: none; stroke: var(--orange, #1F6694); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: width .35s, opacity .35s, margin .35s; }
.tk-pill:hover, .tk-pill:focus-visible { transform: translateY(-3px); border-color: rgba(31,102,148,.35); box-shadow: 0 2px 4px rgba(23,44,69,.06), 0 18px 36px -14px rgba(31,102,148,.35); outline: none; }
.tk-pill:hover .tk-ic, .tk-pill:focus-visible .tk-ic { transform: rotate(-6deg) scale(1.06); }
.tk-pill:hover .tk-go, .tk-pill:focus-visible .tk-go { width: 18px; opacity: 1; margin-left: 0; }
.tk-pill:hover .tk-tx b { color: var(--orange, #1F6694); }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation-duration: 160s; } .tk-rev .tk-track { animation-duration: 180s; } }
@media (max-width: 640px) { .ticker { padding-top: 48px; gap: 10px; } .tk-pill { gap: 12px; padding: 8px 18px 8px 8px; border-radius: 16px; } .tk-ic { width: 40px; height: 40px; border-radius: 11px; } .tk-ic svg { width: 19px; height: 19px; } .tk-tx b { font-size: 14.5px; } .tk-tx small { font-size: 12px; } }
