@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto+Mono:wght@500;600&display=swap');

:root {
    --ink: #071525;
    --ink-soft: #183047;
    --paper: #f4f7f8;
    --white: #ffffff;
    --line: #d8e1e5;
    --line-dark: rgba(255, 255, 255, 0.14);
    --blue: #1859ff;
    --blue-dark: #0c3fca;
    --sky: #e9f5ff;
    --mint: #9df5cf;
    --mint-strong: #2fc993;
    --acid: #e5ff70;
    --orange: #ff8a4c;
    --muted: #526679;
    --danger: #e85656;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shadow: 0 24px 70px rgba(7, 21, 37, 0.11);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", "Trebuchet MS", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--mint); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.65rem, 6.4vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 750; }
p { color: var(--muted); }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink);
    border-radius: 10px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-sm { padding: clamp(48px, 7vw, 84px) 0; }
.section-kicker, .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--blue-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.section-kicker::before, .eyebrow::before {
    width: 8px;
    height: 8px;
    background: var(--mint-strong);
    border-radius: 50%;
    content: "";
}
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 560px; margin: 0 0 6px auto; font-size: 1.05rem; }
.mono { font-family: "Roboto Mono", monospace; font-variant-numeric: tabular-nums; }
.accent { color: var(--blue); }
.text-balance { text-wrap: balance; }

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--ink);
    background: rgba(244, 247, 248, 0.9);
    border-bottom: 1px solid rgba(7, 21, 37, 0.08);
    backdrop-filter: blur(18px);
}
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-size: 1.04rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
    position: relative;
    width: 31px;
    height: 31px;
    overflow: hidden;
    background: var(--ink);
    border-radius: 9px;
}
.brand-mark::before, .brand-mark::after { position: absolute; bottom: 7px; width: 4px; background: var(--mint); border-radius: 4px 4px 0 0; content: ""; }
.brand-mark::before { left: 8px; height: 8px; box-shadow: 7px -5px 0 var(--acid), 14px -13px 0 var(--mint); }
.brand-mark::after { right: 5px; width: 13px; height: 2px; background: var(--blue); transform: rotate(-35deg); transform-origin: right; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 12px; color: var(--ink-soft); border-radius: 10px; font-size: 0.89rem; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); background: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button { min-width: 37px; padding: 6px 8px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: 0.72rem; font-weight: 800; }
.lang-switch button.is-active, .lang-switch button[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button, .btn-primary, .btn-secondary, .btn-ghost {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.button:hover, .btn-primary:hover, .btn-secondary:hover, .btn-ghost:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 24px rgba(24, 89, 255, 0.2); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 16px 30px rgba(24, 89, 255, 0.28); }
.btn-secondary { color: var(--ink); background: var(--acid); }
.btn-secondary:hover { background: #d7f751; }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--blue); background: var(--white); border-color: var(--blue); }
.btn-dark { color: var(--white); background: var(--ink); }
.arrow { font-size: 1.2em; transition: transform 180ms ease; }
a:hover .arrow { transform: translateX(4px); }

/* Home hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 9vw, 128px) 0 86px;
    background-color: var(--paper);
    background-image: linear-gradient(rgba(7, 21, 37, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 21, 37, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
}
.hero::after { position: absolute; top: -160px; left: 54%; width: 720px; height: 720px; border: 1px solid rgba(24, 89, 255, 0.12); border-radius: 50%; content: ""; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr); gap: clamp(45px, 7vw, 100px); align-items: center; }
.hero-copy h1 { max-width: 760px; margin-bottom: 28px; }
.hero-copy > p { max-width: 690px; margin-bottom: 30px; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { width: 7px; height: 7px; background: var(--mint-strong); border-radius: 50%; content: ""; }

.dashboard {
    position: relative;
    padding: 16px;
    color: var(--white);
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 38px 90px rgba(7, 21, 37, 0.25);
    transform: rotate(1deg);
}
.dashboard::before { position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; content: ""; pointer-events: none; }
.dash-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 20px; color: #a9b9c6; font-size: 0.72rem; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 5px rgba(157, 245, 207, 0.1); content: ""; }
.dash-grid { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-dark); border-radius: 18px; }
.metric-cell { min-height: 118px; padding: 20px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.metric-cell:nth-child(2n) { border-right: 0; }
.metric-label { margin-bottom: 10px; color: #9fb1bf; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.metric-value { margin-bottom: 6px; font-family: "Roboto Mono", monospace; font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.06em; }
.metric-delta { color: var(--mint); font-family: "Roboto Mono", monospace; font-size: 0.72rem; }
.chart-cell { min-height: 205px; grid-column: 1 / -1; padding: 20px; }
.chart-bars { height: 112px; display: flex; align-items: end; gap: 8px; padding-top: 20px; border-bottom: 1px solid var(--line-dark); }
.chart-bars i { flex: 1; min-width: 8px; background: linear-gradient(to top, var(--blue), #69a1ff); border-radius: 5px 5px 0 0; animation: chart-grow 900ms cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.chart-bars i:nth-child(3n) { background: var(--mint); }
.chart-labels { display: flex; justify-content: space-between; padding-top: 9px; color: #7890a3; font-size: 0.61rem; }
.ai-note { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-top: 12px; padding: 15px; color: var(--ink); background: var(--acid); border-radius: 15px; transform: translate(24px, 24px); }
.ai-note b { font-size: 0.76rem; }
.ai-note p { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.68rem; line-height: 1.45; }
.ai-icon { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--acid); border-radius: 9px; font-family: "Roboto Mono", monospace; font-size: 0.72rem; }

/* Metrics and service architecture */
.trust-strip { background: var(--white); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); }
.trust-item { min-height: 122px; display: flex; flex-direction: column; justify-content: center; padding: 26px 32px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item:first-child { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.trust-value { margin-bottom: 4px; color: var(--ink); font-family: "Roboto Mono", monospace; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.06em; }
.trust-label { color: var(--muted); font-size: 0.78rem; }
.priority-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.priority-card { position: relative; min-height: 520px; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 50px); border-radius: var(--radius-lg); }
.priority-card.dark { color: var(--white); background: var(--ink); }
.priority-card.blue { color: var(--white); background: var(--blue); }
.priority-card .section-kicker { color: inherit; }
.priority-card h3 { max-width: 590px; margin-bottom: 18px; font-size: clamp(2rem, 4.2vw, 3.8rem); }
.priority-card > p { max-width: 530px; color: inherit; opacity: 0.75; }
.priority-card.blue > p { opacity: .92; }
.priority-card .card-link { margin-top: auto; padding-top: 34px; font-weight: 800; }
.mini-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 38px; }
.pipeline-step { min-height: 92px; padding: 14px 10px; color: #bfd0dc; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); border-radius: 12px; font-size: 0.7rem; }
.pipeline-step b { display: block; margin-bottom: 16px; color: var(--mint); font-family: "Roboto Mono", monospace; }
.risk-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: min(100%, 430px); margin-top: 36px; }
.risk-matrix i { aspect-ratio: 1.8; background: rgba(255,255,255,.1); border-radius: 7px; }
.risk-matrix i:nth-child(3n), .risk-matrix i:nth-child(7), .risk-matrix i:nth-child(10) { background: var(--acid); }
.risk-matrix i:nth-child(4n), .risk-matrix i:nth-child(9) { background: var(--orange); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 280px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 46px); background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 180ms ease; }
.service-card:hover { background: var(--sky); }
.service-index { margin-bottom: 42px; color: var(--blue); font-family: "Roboto Mono", monospace; font-size: 0.72rem; }
.service-card h3 { max-width: 500px; margin-bottom: 12px; }
.service-card p { max-width: 520px; margin-bottom: 24px; }
.service-card .card-link { margin-top: auto; color: var(--blue); font-weight: 800; }

.process-band { color: var(--white); background: var(--ink); }
.process-band .section-kicker, .process-band p { color: #aabac7; }
.process-band h2 { max-width: 840px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.process-item { min-height: 260px; padding: 28px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.process-number { color: var(--mint); font-family: "Roboto Mono", monospace; font-size: 0.72rem; }
.process-item h3 { margin: 62px 0 12px; font-size: 1.25rem; }
.process-item p { margin-bottom: 0; color: #aabac7; font-size: 0.85rem; }

.case-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.case-main, .case-side { padding: clamp(30px, 5vw, 58px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-main { background: var(--sky); }
.case-quote { margin-bottom: 46px; color: var(--ink); font-size: clamp(1.3rem, 2.7vw, 2.3rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.035em; }
.case-meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(7,21,37,.13); color: var(--muted); font-size: .78rem; }
.result-list { list-style: none; padding: 0; margin: 26px 0 0; }
.result-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.result-list strong { color: var(--ink); font-family: "Roboto Mono", monospace; font-size: 1.1rem; }
.expert-grid { display: grid; grid-template-columns: minmax(300px,.78fr) minmax(0,1.22fr); gap: clamp(36px,7vw,90px); align-items: center; }
.portrait-frame { position: relative; overflow: hidden; min-height: 560px; background: #c9d8dd; border-radius: var(--radius-lg); }
.portrait-frame img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 28%; filter: saturate(.72) contrast(1.05); }
.portrait-tag { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 17px; color: var(--white); background: rgba(7,21,37,.86); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; backdrop-filter: blur(12px); }
.portrait-tag b, .portrait-tag span { display: block; }
.portrait-tag span { color: #b8c6d0; font-size: .74rem; }
.expert-copy h2 { max-width: 680px; }
.expert-copy > p { max-width: 650px; font-size: 1.05rem; }
.expert-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.expert-stat { padding: 22px 18px 0 0; }
.expert-stat b { display: block; color: var(--ink); font-family: "Roboto Mono",monospace; font-size: 1.6rem; }
.expert-stat span { color: var(--muted); font-size: .72rem; }

.contact-panel { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 86px); color: var(--white); background: var(--blue); border-radius: var(--radius-lg); }
.contact-panel::after { position: absolute; right: -120px; bottom: -260px; width: 520px; height: 520px; border: 80px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.contact-panel h2 { max-width: 800px; margin-bottom: 18px; }
.contact-panel p { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.78); }
.contact-panel .section-kicker { color: var(--white); }
.contact-panel p { color: rgba(255,255,255,.92); }
.contact-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.contact-panel .btn-primary { color: var(--ink); background: var(--acid); box-shadow: none; }
.contact-panel .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }

/* Inner marketing pages */
.inner-hero { position: relative; overflow: hidden; padding: clamp(76px, 10vw, 130px) 0 82px; color: var(--white); background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px); background-size: 48px 48px; }
.inner-hero::after { position: absolute; right: -160px; bottom: -220px; width: 590px; height: 590px; border: 110px solid rgba(24,89,255,.35); border-radius: 50%; content: ""; }
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero .eyebrow { color: var(--mint); }
.inner-hero h1 { max-width: 1000px; margin-bottom: 26px; font-size: clamp(2.55rem, 6vw, 5.6rem); }
.inner-hero p { max-width: 740px; color: #b9c7d1; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.inner-hero .hero-actions { margin-top: 34px; }
.inner-hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.inner-hero .btn-ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: #9fb0bd; font-size: .72rem; font-weight: 700; }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb span::before { margin-right: 8px; content: "/"; opacity: .45; }
.content-section { padding: clamp(66px, 9vw, 112px) 0; }
.content-section.alt { background: var(--white); }
.content-grid { display: grid; grid-template-columns: minmax(240px,.66fr) minmax(0,1.34fr); gap: clamp(45px,9vw,120px); }
.content-grid .section-title { position: sticky; top: 112px; align-self: start; }
.section-title h2 { font-size: clamp(2rem,4vw,3.4rem); }
.section-title p { max-width: 420px; }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-item { min-height: 210px; padding: 30px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-item .index { display: block; margin-bottom: 36px; color: var(--blue); font-family: "Roboto Mono",monospace; font-size: .7rem; }
.feature-item h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-item p { margin-bottom: 0; font-size: .87rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 18px 0 18px 36px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.check-list li::before { position: absolute; top: 22px; left: 4px; width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink); background: var(--mint); border-radius: 50%; content: "✓"; font-size: .7rem; font-weight: 900; }
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step { counter-increment: step; display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); color: var(--blue); font-family: "Roboto Mono",monospace; font-size: .72rem; }
.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 10px; font-size: 1.12rem; }
.faq-item p { margin-bottom: 0; }
.product-visual { padding: clamp(26px,4vw,46px); color: var(--white); background: var(--ink); border-radius: var(--radius-lg); }
.product-visual .eyebrow { color: var(--mint); }
.product-visual-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 28px; border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; }
.product-visual-cell { min-height: 150px; padding: 22px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.product-visual-cell:nth-child(3n) { border-right: 0; }
.product-visual-cell small { color: #91a5b5; }
.product-visual-cell strong { display: block; margin-top: 18px; color: var(--mint); font-family: "Roboto Mono",monospace; font-size: 1.5rem; }

.cta-panel { padding: clamp(32px, 6vw, 68px); background: var(--sky); border: 1px solid #c8e6fa; border-radius: var(--radius-lg); }
.cta-panel h2 { max-width: 820px; }
.cta-panel > p { max-width: 760px; font-size: 1.05rem; }
.cta-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
.cta-grid .button, .cta-grid .btn-primary, .cta-grid .btn-ghost { width: 100%; min-height: 54px; }
.cta-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

/* Partners */
.partner-math { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 44px; border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; }
.partner-math > div { padding: 25px; border-right: 1px solid var(--line-dark); }
.partner-math > div:last-child { border-right: 0; }
.partner-math strong { display: block; margin-bottom: 7px; color: var(--acid); font-family: "Roboto Mono",monospace; font-size: 1.65rem; }
.partner-math span { color: #a9bbc8; font-size: .75rem; }

/* Documents and editorial pages */
.doc-hero { padding: 72px 0 56px; background: var(--white); border-bottom: 1px solid var(--line); }
.doc-hero h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(2.4rem,5vw,4.6rem); }
.doc-hero p { max-width: 720px; }
.doc-layout { display: grid; grid-template-columns: minmax(200px,.34fr) minmax(0,1fr); gap: clamp(34px,8vw,100px); padding: 60px 0 100px; }
.doc-aside { position: sticky; top: 110px; align-self: start; }
.doc-aside a { display: block; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 700; }
.doc-aside a:hover { color: var(--blue); }
.prose { max-width: 800px; }
.prose h2 { margin: 48px 0 18px; font-size: clamp(1.5rem,3vw,2.25rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; font-size: 1.15rem; letter-spacing: -.025em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.doc-cards { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.doc-card { min-height: 200px; display: flex; flex-direction: column; padding: 30px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-card h2 { margin-bottom: 12px; font-size: 1.3rem; }
.doc-card p { font-size: .86rem; }
.doc-card span { margin-top: auto; color: var(--blue); font-size: .8rem; font-weight: 800; }

/* Footer */
.site-footer { margin-top: 0; padding: 74px 0 24px; color: #d5e0e7; background: #04101d; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .9fr .8fr; gap: 40px; }
.footer-brand p { max-width: 330px; margin-top: 20px; color: #8297a7; font-size: .83rem; }
.site-footer h2 { margin-bottom: 18px; color: #8195a4; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #c5d2da; font-size: .82rem; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 58px; padding-top: 22px; color: #6d8292; border-top: 1px solid var(--line-dark); font-size: .7rem; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 800; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); background: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease,transform 180ms ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Motion */
[data-reveal] { opacity: 1; transform: none; transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes chart-grow { from { transform: scaleY(.05); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }

/* Compatibility layer for redesigned legacy content while markup is intentionally semantic. */
.legacy-page { background: var(--paper) !important; }
.legacy-page .hero-image { color: var(--white) !important; background-color: var(--ink) !important; background-image: linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px) !important; background-size:48px 48px !important; }
.legacy-page .hero-image h1 { font-size: clamp(2.55rem,6vw,5.4rem) !important; letter-spacing: -.055em; }
.legacy-page .hero-image p { color: #c1ced7 !important; }
.legacy-page .hero-image .btn-custom-yellow { color: var(--ink) !important; background: var(--acid) !important; border-radius: 12px !important; box-shadow: none !important; }
.legacy-page nav { background: rgba(244,247,248,.92) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; backdrop-filter: blur(18px); }
.legacy-page nav a { border-radius: 10px; }
.legacy-page nav .bg-blue-600 { background: var(--blue) !important; }
.legacy-page section:not(.inner-hero) { scroll-margin-top: 88px; }
.legacy-page .bg-white { background-color: var(--white) !important; }
.legacy-page .bg-gray-50, .legacy-page .bg-gray-100 { background-color: var(--paper) !important; }
.legacy-page .bg-blue-50 { background-color: var(--sky) !important; }
.legacy-page .bg-blue-600, .legacy-page .bg-blue-700, .legacy-page .bg-gradient-to-r { background: var(--blue) !important; }
.legacy-page .text-blue-600, .legacy-page .text-blue-700, .legacy-page .text-indigo-600 { color: var(--blue) !important; }
.legacy-page .text-gray-800, .legacy-page .text-gray-900 { color: var(--ink) !important; }
.legacy-page .text-gray-500, .legacy-page .text-gray-600, .legacy-page .text-gray-700 { color: var(--muted) !important; }
.legacy-page .text-gray-400 { color: var(--muted) !important; }
.legacy-page .text-blue-100 { color: #f5f9ff !important; }
.legacy-page .shadow, .legacy-page .shadow-md, .legacy-page .shadow-lg, .legacy-page .shadow-xl, .legacy-page .shadow-2xl { box-shadow: none !important; }
.legacy-page .rounded-lg, .legacy-page .rounded-xl, .legacy-page .rounded-2xl, .legacy-page .rounded-3xl { border-radius: var(--radius) !important; }
.legacy-page .border, .legacy-page .border-t, .legacy-page .border-b { border-color: var(--line) !important; }
.legacy-page h1, .legacy-page h2, .legacy-page h3 { color: inherit; }
.legacy-page .container, .legacy-page .max-w-6xl, .legacy-page .max-w-7xl, .legacy-page .max-w-5xl, .legacy-page .max-w-4xl { width: min(calc(100% - 40px), var(--container)); max-width: var(--container) !important; margin-inline: auto; }
.document-page main { flex: 1; }
.document-page main > section:first-child { background-color: var(--white) !important; border-bottom: 1px solid var(--line); }
.document-page main > section:first-child h1 { font-size: clamp(2.3rem,5vw,4.4rem) !important; }
.document-page main > section:not(:first-child) > div { max-width: 860px !important; }
.document-page main h2 { margin-top: 42px; font-size: clamp(1.45rem,3vw,2.2rem) !important; }
.document-page main p, .document-page main li { color: var(--ink-soft) !important; line-height: 1.75; }
.document-page main a { overflow-wrap: anywhere; }
.document-page main a { text-decoration: underline; text-underline-offset: 3px; }
.document-page main h1, .document-page main h2 { overflow-wrap: anywhere; }

@media (max-width: 980px) {
    .site-nav { position: fixed; inset: 78px 0 auto 0; max-height: calc(100vh - 78px); overflow-y: auto; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 20px 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 14px; font-size: 1rem; }
    .menu-toggle { display: block; }
    .nav-actions .btn-primary { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 780px; }
    .dashboard { max-width: 720px; margin-inline: auto; transform: none; }
    .section-head, .contact-grid { grid-template-columns: 1fr; align-items: start; }
    .section-head p { margin-left: 0; }
    .process-grid { grid-template-columns: repeat(2,1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .content-grid .section-title { position: static; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
    :root { --radius-lg: 22px; }
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 72px 0; }
    .nav-shell { min-height: 68px; }
    .site-nav { top: 68px; max-height: calc(100vh - 68px); }
    .lang-switch { margin-left: auto; }
    .hero { padding-top: 64px; }
    .hero::after { display: none; }
    .hero-actions, .contact-actions { width: 100%; }
    .hero-actions .button, .hero-actions .btn-primary, .hero-actions .btn-ghost, .contact-actions a { width: 100%; }
    .dashboard { padding: 10px; border-radius: 22px; }
    .metric-cell { min-height: 105px; padding: 16px; }
    .chart-cell { min-height: 180px; }
    .ai-note { transform: translate(0,16px); }
    .trust-grid { grid-template-columns: repeat(2,1fr); }
    .trust-item { min-height: 108px; padding: 20px; border-bottom: 1px solid var(--line); }
    .trust-item:nth-child(2n) { border-right: 0; }
    .priority-grid, .service-grid, .case-grid, .expert-grid, .feature-list, .doc-cards { grid-template-columns: 1fr; }
    .priority-card { min-height: 460px; }
    .mini-pipeline { grid-template-columns: repeat(2,1fr); }
    .process-grid { grid-template-columns: 1fr; }
    .process-item { min-height: 210px; }
    .process-item h3 { margin-top: 40px; }
    .portrait-frame { min-height: 480px; }
    .expert-stats { grid-template-columns: 1fr; }
    .expert-stat { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
    .cta-grid, .product-visual-grid, .partner-math { grid-template-columns: 1fr; }
    .product-visual-cell, .partner-math > div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .doc-layout { grid-template-columns: 1fr; }
    .document-page main { padding-inline: 14px !important; }
    .document-page main > div { width: 100% !important; max-width: 860px !important; padding: 24px 20px !important; }
    .document-page main h1 { font-size: 1.85rem !important; }
    .doc-aside { position: static; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
