:root {
  color-scheme: dark;
  --financial-bg: #15191d;
  --financial-text: rgba(255, 255, 255, .94);
  --financial-muted: rgba(235, 240, 244, .72);
  --financial-border: rgba(255, 255, 255, .13);
  --financial-accent: #e2a45f;
  --model-surface: #111b24;
  --model-surface-deep: #0b131a;
}

* { box-sizing: border-box; }

body.financial-models-page {
  margin: 0;
  color: var(--financial-text);
  background: var(--financial-bg);
  font-family: Manrope, var(--site-font-sans);
}

.financial-case-main {
  padding: clamp(44px, 6vw, 82px) 20px 110px;
  background: #15191d;
}

.financial-case {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.financial-case-hero,
.financial-case-copy {
  width: min(1040px, 100%);
  margin-inline: auto;
}

.financial-case-hero {
  padding-bottom: clamp(42px, 5vw, 68px);
  border-bottom: 1px solid var(--financial-border);
}

.financial-case-hero h1 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--site-font-display), Georgia, serif;
  font-size: clamp(54px, 6.6vw, 88px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.financial-case-hero p {
  max-width: 72ch;
  margin: 28px 0 0;
  color: rgba(245, 247, 249, .82);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.58;
}

.financial-case-copy { padding: clamp(44px, 5vw, 70px) 0 clamp(56px, 7vw, 94px); }
.financial-case-section + .financial-case-section { margin-top: clamp(40px, 5vw, 68px); }

.financial-case-section h2,
.blend-demo-head h2 {
  margin: 0 0 20px;
  font-family: var(--site-font-display), Georgia, serif;
  font-size: clamp(34px, 3.65vw, 50px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.financial-case-section p {
  max-width: 82ch;
  margin: 0;
  color: var(--financial-muted);
  font-size: 18px;
  line-height: 1.72;
}

.financial-case-section p + p { margin-top: 13px; text-indent: 2em; }
.financial-case-section a { color: rgba(242, 184, 116, .96); text-underline-offset: 4px; }
.financial-case-section a:hover,
.financial-case-section a:focus-visible { color: #ffd19b; }

.blend-demo {
  padding-top: clamp(48px, 6vw, 82px);
  border-top: 1px solid var(--financial-border);
}

.blend-demo-head { width: min(1040px, 100%); margin: 0 auto 34px; }
.blend-demo-head > p { margin: 0 0 16px; color: var(--financial-accent); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.blend-demo-head > span { display: block; max-width: 78ch; color: var(--financial-muted); font-size: 15px; line-height: 1.65; }

.blend-screen {
  padding: 24px;
  border: 1px solid rgba(226, 164, 95, .26);
  border-radius: 16px;
  background: #05080a;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .52);
  font-family: Manrope, var(--site-font-sans);
}

.blend-screen-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.blend-screen-title small { color: rgba(235, 240, 244, .53); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.blend-screen-title h3 { margin: 6px 0 0; font-size: 25px; line-height: 1.12; letter-spacing: -.025em; }
.blend-screen-title a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; color: #080808; background: linear-gradient(180deg, #ecad68, #d4873d); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.blend-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.blend-kpis > div { min-height: 116px; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: var(--model-surface); }
.blend-kpis span,
.blend-kpis small { display: block; color: rgba(229, 236, 241, .6); font-size: 11px; line-height: 1.4; }
.blend-kpis strong { display: block; margin: 7px 0 5px; font-size: 23px; line-height: 1.1; }
.blend-kpis .is-good { color: #80d7a3; }
.blend-kpis .is-result { border-color: rgba(226, 164, 95, .52); background: linear-gradient(145deg, rgba(194, 117, 50, .2), #111b24 72%); }
.blend-kpis .is-result strong { color: #f0b36e; }

.blend-body { display: grid; grid-template-columns: .9fr .9fr 1.2fr; gap: 12px; margin-top: 12px; }
.blend-input-card,
.blend-result-card { min-width: 0; padding: 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: var(--model-surface); }
.blend-input-card header span,
.blend-result-card header span { display: block; color: rgba(235, 240, 244, .55); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.blend-input-card header strong,
.blend-result-card header strong { display: block; margin-top: 5px; font-size: 16px; }
.blend-input-card dl { display: grid; gap: 0; margin: 15px 0 0; }
.blend-input-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.blend-input-card dt { color: rgba(235, 240, 244, .56); font-size: 12px; }
.blend-input-card dd { margin: 0; color: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 750; }
.blend-volume { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 12px; border-radius: 9px; background: var(--model-surface-deep); }
.blend-volume span { color: rgba(235, 240, 244, .58); font-size: 11px; }
.blend-volume strong { color: #f0b36e; font-size: 19px; }
.blend-bars { display: grid; gap: 12px; margin-top: 18px; }
.blend-bars div { display: grid; grid-template-columns: 112px minmax(60px, 1fr) 44px; align-items: center; gap: 9px; }
.blend-bars span,
.blend-bars b { font-size: 10px; }
.blend-bars span { color: rgba(235, 240, 244, .58); }
.blend-bars b { text-align: right; }
.blend-bars i { position: relative; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.blend-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar); border-radius: inherit; background: linear-gradient(90deg, #a85f28, #e2a45f); }
.blend-result-card > p { margin: 18px 0 0; color: rgba(235, 240, 244, .6); font-size: 11px; line-height: 1.55; }

@media (max-width: 900px) {
  .blend-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blend-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blend-result-card { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .financial-case-main { padding-inline: 18px; }
  .financial-case-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .financial-case-section p { font-size: 16px; line-height: 1.68; }
  .blend-screen { padding: 15px; }
  .blend-screen-title { align-items: flex-start; flex-direction: column; }
  .blend-kpis,
  .blend-body { grid-template-columns: 1fr; }
  .blend-result-card { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .blend-screen-title a { scroll-behavior: auto; }
}
