/* First Finserve — website styles. Palette from the logo: violet #9A5AEE → rose #D6788A on ink. */
:root {
    --violet: #9A5AEE;
    --violet-deep: #7E45E2;
    --rose: #D6788A;
    --grad: linear-gradient(90deg, #9A5AEE 0%, #B96CBF 55%, #D6788A 100%);
    --grad-soft: linear-gradient(135deg, rgba(154, 90, 238, .12), rgba(214, 120, 138, .12));
    --ink: #120E1A;
    --ink-2: #1C1627;
    --ink-3: #2A2238;
    --text: #1A1523;
    --muted: #625B6E;
    --line: #E9E3F1;
    --soft: #F7F4FC;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px -24px rgba(40, 20, 70, .25);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.bg-soft { background: var(--soft); }
.bg-ink { background: var(--ink); color: #D9D3E3; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--grad); }
.bg-ink .eyebrow { color: #C6A6F6; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.bg-ink .section-head p { color: #B8B0C6; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
    font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(154, 90, 238, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(154, 90, 238, .8); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet-deep); }
.bg-ink .btn-ghost, .hero .btn-ghost, .cta .btn-ghost, .page-hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.bg-ink .btn-ghost:hover, .hero .btn-ghost:hover, .cta .btn-ghost:hover, .page-hero .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet-deep); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Top bar */
.topbar { background: var(--grad); color: #fff; font-size: 14px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-links { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar-links a { font-weight: 600; }
.topbar-links a:hover { color: #fff; opacity: .85; }
.topbar-links svg { width: 14px; height: 14px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(40, 20, 70, .35); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; transition: height .3s var(--ease); }
.header.scrolled .container { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: auto; height: 40px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-size: 20px; letter-spacing: .02em; color: var(--ink); font-weight: 900; }
.brand-word b span { font-weight: 300; }
.brand-word small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.brand-img { height: 46px; width: auto; max-width: 240px; object-fit: contain; transition: height .3s var(--ease); }
.header.scrolled .brand-img { height: 60px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-group > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text); transition: color .2s, background .2s; }
.nav > a:hover, .nav-group:hover > a { color: var(--violet-deep); background: var(--soft); }
.nav > a.active, .nav-group.active > a { color: var(--violet-deep); }
.nav-group { position: relative; }
.nav-group > a svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-group:hover > a svg { transform: rotate(180deg); }
.nav-menu {
    position: absolute; top: calc(100% + 10px); left: 50%; width: 380px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .2s var(--ease);
}
.nav-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: flex; gap: 14px; padding: 12px; border-radius: var(--radius-sm); transition: background .2s; }
.nav-menu a:hover, .nav-menu a.active { background: var(--soft); }
.nav-menu .num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.nav-menu strong { display: block; font-size: 15px; color: var(--ink); }
.nav-menu span.t { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-menu .all { justify-content: center; font-weight: 700; color: var(--violet-deep); font-size: 14px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 6px; }
.nav .btn { margin-left: 10px; padding: 12px 20px; }

.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-button svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #CFC7DD; padding: 80px 0 88px; isolation: isolate; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -360px; background: radial-gradient(closest-side, rgba(154, 90, 238, .38), transparent 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -420px; background: radial-gradient(closest-side, rgba(214, 120, 138, .28), transparent 70%); z-index: -1; }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); margin: 22px 0 24px; letter-spacing: -.035em; }
.hero-lead { font-size: 19px; max-width: 580px; color: #BDB4CC; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills span { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #E6DDF5; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.verb-card { position: relative; border-radius: 24px; padding: 30px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.verb-card .mark { position: absolute; right: 26px; top: 24px; height: 64px; width: auto; opacity: .9; }
.verb-card h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #A79DB8; font-weight: 700; margin-bottom: 22px; }
.verb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.verb-list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(18, 14, 26, .55); border: 1px solid rgba(255, 255, 255, .07); color: #fff; font-weight: 800; letter-spacing: .14em; font-size: 15px; text-transform: uppercase; }
.verb-list li i { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); }
.verb-card p { margin-top: 20px; font-size: 14px; color: #A79DB8; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--ink); padding: 64px 0 60px; isolation: isolate; color: #BDB4CC; }
.page-hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -380px; background: radial-gradient(closest-side, rgba(154, 90, 238, .35), transparent 70%); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); margin: 18px 0 18px; max-width: 900px; }
.page-hero p.lead { font-size: 19px; max-width: 720px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: #8F86A0; margin-bottom: 8px; }
.crumbs a:hover { color: #fff; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); margin-top: 10px; }

.product-card { display: flex; flex-direction: column; padding: 34px; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); transform: scaleX(.18); transform-origin: left; transition: transform .4s var(--ease); }
.product-card:hover::before { transform: scaleX(1); }
.product-card .num { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.product-card .aud { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-deep); }
.product-card h3 { margin-top: 8px; font-size: 24px; }
.product-card p { flex-grow: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.chips span { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-3); }
.product-card .link-arrow { margin-top: 26px; }

/* System map (operational problem) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-wide { grid-template-columns: .9fr 1.1fr; }
.system-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sys { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.sys b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--violet-deep); font-weight: 800; text-transform: uppercase; }
.sys span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.flow-bar { grid-column: 1 / -1; text-align: center; padding: 12px; border-radius: 12px; background: var(--grad-soft); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.gap-box { grid-column: 1 / -1; padding: 20px; border-radius: 14px; background: var(--ink); color: #D9D3E3; }
.gap-box b { display: block; color: #fff; font-size: 14px; margin-bottom: 10px; }
.gap-box .chips span { background: rgba(255, 255, 255, .08); color: #F1E9FB; }
.answer { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(154, 90, 238, .2); }
.answer svg { flex-shrink: 0; width: 28px; height: auto; }
.answer p { color: var(--ink); font-weight: 700; font-size: 17px; }
.answer small { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; font-size: 15px; }

/* Hand-off chain */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; }
.chain-item { position: relative; text-align: center; padding: 0 8px; }
.chain-item .dot { width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -18px rgba(40, 20, 70, .3); font-weight: 900; font-size: 15px; color: var(--violet-deep); position: relative; z-index: 1; }
.chain-item:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: calc(50% + 38px); right: calc(-50% + 38px); border-top: 2px dashed #D3C3EE; }
.chain-item b { display: block; margin-top: 16px; font-size: 17px; color: var(--ink); }
.chain-item span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-top: 2px; }
.handoff-band { margin-top: 44px; padding: 24px 28px; border-radius: var(--radius); background: var(--ink); color: #D9D3E3; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.handoff-band b { color: #fff; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: var(--grad); }

/* Architecture pipeline */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: stage; }
.stage { position: relative; padding: 22px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); text-align: center; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.stage::before { counter-increment: stage; content: counter(stage, decimal-leading-zero); font-size: 12px; color: #A79DB8; letter-spacing: .1em; }
.stage:first-child { background: transparent; border-style: dashed; }
.stage:last-child { background: var(--grad); border-color: transparent; }
.stage:last-child::before { color: rgba(255, 255, 255, .8); }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #8F86A0; border-right: 2px solid #8F86A0; transform: translateY(-50%) rotate(45deg); }
.sources { margin-top: 18px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A79DB8; }
.usecase-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.usecase-row a { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 700; transition: background .2s, border-color .2s; }
.usecase-row a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(198, 166, 246, .5); }
.usecase-row a em { font-style: normal; font-weight: 900; font-size: 22px; }

/* Integrate */
.integrate { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.int-list { display: grid; gap: 10px; }
.int-list div { padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.int-list div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.int-list small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.layer { width: 300px; padding: 30px 26px; border-radius: 24px; background: var(--ink); color: #fff; text-align: center; box-shadow: 0 40px 80px -40px rgba(40, 20, 70, .7); position: relative; }
.layer img { height: 70px; width: auto; margin: 0 auto 12px; }
.layer h4 { color: #fff; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.layer ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.layer li { padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 14px; font-weight: 600; }
.result-box { padding: 34px 30px; border-radius: 24px; background: var(--grad); color: #fff; }
.result-box h3 { color: #fff; font-size: 26px; }
.result-box p { color: rgba(255, 255, 255, .85); margin-top: 10px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .n { font-size: 14px; font-weight: 800; color: var(--violet-deep); letter-spacing: .1em; }
.step h3 { font-size: 20px; margin-top: 18px; text-transform: uppercase; letter-spacing: .06em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step .bar { position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.process-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: var(--radius); background: var(--soft); }
.process-foot b { font-size: 18px; color: var(--ink); }
.process-foot span { color: var(--muted); }

/* Audiences */
.aud-card { padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.aud-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); margin-bottom: 22px; }
.aud-card .ic svg { width: 24px; height: 24px; color: #fff; }
.aud-card h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.aud-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.aud-card li { display: flex; align-items: center; gap: 10px; color: #D9D3E3; }
.aud-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.light .aud-card { background: #fff; border-color: var(--line); }
.light .aud-card h3 { color: var(--ink); }
.light .aud-card li { color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 72px 64px; background: var(--ink); color: #CFC7DD; isolation: isolate; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta::before { content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -300px; background: radial-gradient(closest-side, rgba(154, 90, 238, .45), transparent 70%); z-index: -1; }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -340px; background: radial-gradient(closest-side, rgba(214, 120, 138, .35), transparent 70%); z-index: -1; }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); margin: 16px 0; }
.cta p { font-size: 18px; max-width: 620px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 0; }
.cta-actions .btn { overflow: hidden; text-overflow: ellipsis; }
.cta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cta-tags span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); color: #E6DDF5; }

/* Product detail */
.uc { padding: 44px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.uc + .uc { margin-top: 28px; }
.uc-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 34px; }
.uc-head h3 { font-size: 28px; margin-top: 10px; }
.uc-head p { color: var(--muted); max-width: 640px; margin-top: 10px; font-size: 17px; }
.uc-flow { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: stretch; }
.uc-flow.no-inputs { grid-template-columns: 1fr; }
.uc-inputs { display: grid; gap: 10px; align-content: center; }
.uc-inputs div { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-weight: 700; color: var(--ink); font-size: 14.5px; position: relative; }
.uc-layer { border-radius: 20px; background: var(--ink); padding: 26px; color: #fff; }
.uc-layer > b { display: block; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #C6A6F6; margin-bottom: 18px; }
.uc-steps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; }
.uc-step { padding: 18px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.uc-step i { font-style: normal; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.uc-step strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.uc-step span { display: block; font-size: 13.5px; color: #B8B0C6; margin-top: 4px; line-height: 1.45; }
.uc-result { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--grad); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.uc-result strong { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.uc-result span { color: rgba(255, 255, 255, .9); font-size: 15px; }
.uc-features { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.uc-features div { padding: 16px; border-radius: 12px; background: var(--soft); font-weight: 700; color: var(--ink); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.uc-features svg { width: 18px; height: 18px; color: var(--violet-deep); flex-shrink: 0; margin-top: 2px; }
.uc-note { margin-top: 18px; font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--rose); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.benefit { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.benefit .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 16px; }
.benefit .ic svg { width: 20px; height: 20px; color: var(--violet-deep); }
.benefit h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; }
.benefit p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.product-hero-num { font-size: clamp(80px, 12vw, 150px); font-weight: 900; line-height: .8; letter-spacing: -.05em; opacity: .95; }
.page-hero .split { align-items: end; }
.verbs-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.verbs-inline span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-info a, .contact-info div.item { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s; }
.contact-info a:hover { border-color: var(--violet); }
.contact-info .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ic svg { width: 20px; height: 20px; color: #fff; }
.contact-info small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.contact-info b { color: var(--ink); word-break: break-word; }
.form-card { padding: 40px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 28px; }
.form-card > p { color: var(--muted); margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #FCFBFE; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(154, 90, 238, .12); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { transition: opacity .4s; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.form-status.ok { background: #EFE7FD; color: #4E23A5; }
.form-status.err { background: #FDECEE; color: #9B2335; }
.form-status.hiding, .newsletter-msg.hiding { opacity: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .ss-toggle { border-color: #D64560; }
.field-error { font-size: 13px; color: #B0283F; font-weight: 600; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Searchable dropdown (enhances <select data-searchable>) */
.ss { position: relative; }
.ss select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ss-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #FCFBFE; color: var(--text); cursor: pointer; text-align: left; }
.ss-toggle svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; }
.ss.open .ss-toggle { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(154, 90, 238, .12); }
.ss.open .ss-toggle svg { transform: rotate(180deg); }
.ss-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; }
.ss.open .ss-panel { display: block; }
.ss-panel input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); margin-bottom: 6px; }
.ss-panel input:focus { outline: none; border-color: var(--violet); }
.ss-list { max-height: 220px; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.ss-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.ss-list li:hover, .ss-list li.active { background: var(--soft); }
.ss-list li[aria-selected="true"] { color: var(--violet-deep); font-weight: 700; }
.ss-list .empty { color: var(--muted); cursor: default; }
.form-card .btn { margin-top: 22px; }

/* Footer */
.site-footer { background: var(--ink); color: #A79DB8; padding: 60px 0 0; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand { display: flex; align-items: flex-start; gap: 18px; }
.footer-logo { display: inline-flex; flex-shrink: 0; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.footer-logo img { height: 76px; width: auto; max-width: 120px; object-fit: contain; }
.footer-brand > div { min-width: 0; }
.footer-brand p { font-size: 15px; line-height: 1.65; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 8px 14px; }
.newsletter input:focus { outline: none; }
.newsletter input::placeholder { color: #8F86A0; }
.newsletter .btn { padding: 11px 18px; font-size: 14px; }
.newsletter-msg { font-size: 13px; margin-top: 8px; color: #C6A6F6; }
.newsletter-msg.err { color: #F2A3B0; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.socials a { display: block; line-height: 0; border-radius: 50%; transition: transform .3s, filter .3s; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25)); }
.socials a svg { display: block; width: 34px; height: 34px; border-radius: 50%; }
.socials a:hover { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.socials .social-twitter svg rect { stroke: rgba(255, 255, 255, .35); stroke-width: .6; }
.footer-bottom { margin-top: 44px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom .tag { color: #C6A6F6; letter-spacing: .04em; }

/* Reveal animation */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
    .nav { display: none; }
    .menu-button { display: inline-flex; }
    .mobile-nav { display: block; position: fixed; inset: 0; top: 0; z-index: 49; background: #fff; padding: 140px 24px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .25s var(--ease); }
    .mobile-nav.open { opacity: 1; visibility: visible; transform: none; }
    .mobile-nav a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
    .mobile-nav a.sub { font-size: 16px; font-weight: 600; padding-left: 18px; color: var(--muted); }
    .mobile-nav a.active { color: var(--violet-deep); }
    .mobile-nav p { margin-top: 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
    .mobile-nav .btn { margin-top: 24px; width: 100%; border-bottom: 0; color: #fff; }
    .header { z-index: 60; }
    .hero .container, .split, .split-wide, .contact-grid, .cta { grid-template-columns: 1fr; }
    .pipeline { grid-template-columns: repeat(3, 1fr); }
    .stage:nth-child(3n)::after { display: none; }
    .process { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .integrate { grid-template-columns: 1fr; }
    .layer { width: 100%; }
    .uc-features { grid-template-columns: repeat(2, 1fr); }
    .cta { padding: 56px 40px; }
}
@media (max-width: 760px) {
    .section { padding: 52px 0; }
    .section-sm { padding: 36px 0; }
    .container { padding: 0 16px; }
    .topbar p { display: none; }
    .topbar .container { justify-content: center; }
    .header .container { height: 68px; }
    .brand-mark { height: 34px; }
    .brand-word b { font-size: 17px; }
    .brand-word small { display: none; }
    .hero { padding: 52px 0 60px; }
    .hero-lead { font-size: 17px; }
    .grid-2, .grid-3, .grid-4, .usecase-row { grid-template-columns: 1fr; }
    .system-map { grid-template-columns: repeat(2, 1fr); }
    .chain { grid-template-columns: 1fr; gap: 18px; }
    .chain-item { display: flex; align-items: center; gap: 16px; text-align: left; padding: 0; }
    .chain-item .dot { margin: 0; width: 60px; height: 60px; flex-shrink: 0; }
    .chain-item b { margin-top: 0; }
    .chain-item:not(:last-child)::after { left: 30px; right: auto; top: 60px; height: 18px; border-top: 0; border-left: 2px dashed #D3C3EE; }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .stage::after { display: none; }
    .process { grid-template-columns: 1fr; }
    .uc { padding: 24px; }
    .uc-steps { grid-template-columns: 1fr 1fr !important; }
    .product-hero-num { display: none; }
    .verb-card { padding: 22px; }
    .verb-card .mark { height: 48px; }
    .handoff-band { padding: 20px; }
    .answer { padding: 18px; }
    .result-box, .layer { padding: 24px 20px; }
    .page-hero h1 { font-size: 34px; }
    .section-head { margin-bottom: 28px; }
    .section-head p { font-size: 16px; }
    .brand-img { height: 36px !important; max-width: 170px; }
    .uc-features { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .cta { padding: 44px 24px; border-radius: 22px; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-logo img { height: 64px; }
    .footer-brand p { font-size: 14px; }
    .footer-bottom { flex-direction: column; }
    .newsletter { flex-wrap: wrap; border-radius: 16px; }
    .newsletter .btn { width: 100%; }
    .cta h2 { font-size: 30px; }
    .page-hero { padding: 48px 0 44px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* Small laptops: tighten the navigation so it never wraps */
@media (max-width: 1280px) and (min-width: 1101px) {
    .nav > a, .nav-group > a { padding: 10px 10px; font-size: 14.5px; }
    .nav .btn { margin-left: 6px; padding: 12px 16px; }
    .brand-img { height: 70px; }
}

/* Tablets */
@media (max-width: 1100px) {
    .uc-flow { grid-template-columns: 1fr; }
    .uc-inputs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .uc-steps { grid-template-columns: repeat(min(var(--cols, 4), 3), 1fr); }
    .split, .split-wide { gap: 40px; }
    .page-hero .split > div:last-child { text-align: left !important; }
    .product-hero-num { font-size: 90px; }
    .cta-actions { flex-direction: row; flex-wrap: wrap; }
    .cta-actions .btn { flex: 1 1 220px; }
    .verb-card { max-width: 560px; }
    .footer-top > div:first-child { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 760px) {
    .uc-inputs { grid-template-columns: 1fr 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { flex: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .chips span { font-size: 12px; }
    .topbar-links { gap: 14px; font-size: 13.5px; }
}
@media (max-width: 400px) {
    .system-map { grid-template-columns: 1fr; }
    .uc-steps { grid-template-columns: 1fr !important; }
    .uc-inputs { grid-template-columns: 1fr; }
    .topbar-links a:first-child:not(:only-child) { display: none; }
}

/* Two white sections in a row would double the gap (bottom padding + top padding).
   Collapse it so every section break looks the same across the site. */
main > .section:not(.bg-soft):not(.bg-ink) + .section:not(.bg-soft):not(.bg-ink),
main > .section:not(.bg-soft):not(.bg-ink) + .section-sm,
main > .section-sm + .section:not(.bg-soft):not(.bg-ink) { padding-top: 0; }

/* Legal pages (Privacy Policy) */
.legal-updated { margin-top: 18px; font-size: 14px; color: #8F86A0; }
.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.legal-toc b { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.legal-toc a { color: var(--ink); font-weight: 600; }
.legal-toc a:hover { color: var(--violet-deep); }
.legal { max-width: 780px; min-width: 0; }
.legal section { scroll-margin-top: 100px; }
.legal section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 26px; margin-bottom: 14px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #3E3749; font-size: 16.5px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--violet-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table table { width: 100%; border-collapse: collapse; min-width: 460px; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 15px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--soft); color: var(--ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-contact { margin-top: 14px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--grad-soft); border: 1px solid rgba(154, 90, 238, .2); }
.legal-contact p { margin: 0; }
.form-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.form-note a, .newsletter-note a, .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.newsletter-note { margin-top: 10px; font-size: 12.5px; color: #8F86A0; }
.newsletter-note a { color: #C6A6F6; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1100px) {
    .legal-grid { grid-template-columns: 1fr; gap: 28px; }
    .legal-toc { position: static; }
    .legal-toc ol { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
}
@media (max-width: 760px) {
    .legal-toc ol { grid-template-columns: 1fr; }
    .legal h2 { font-size: 22px; }
    .legal p, .legal li { font-size: 15.5px; }
}

/* Footer bottom: legal links on the right */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: #C6A6F6; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
