/* ==========================================================================
   Flumen Systems — Site Stylesheet
   Design language: premium, minimal, enterprise. Inspired by Stripe / Linear / Mercury.
   ========================================================================== */

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

:root {
  /* Color */
  --ink: #0B1220;
  --ink-2: #1D2939;
  --body: #4B5568;
  --body-soft: #6B7688;
  --line: #E7EAF0;
  --line-soft: #F0F2F6;
  --paper: #FFFFFF;
  --bg: #F6F7FB;
  --bg-deep: #EEF1F7;

  --brand: #094886;
  --brand-ink: #06315F;
  --brand-soft: #EAF1F8;
  --brand-soft-2: #D7E5F1;

  --mint: #0F9D6C;
  --mint-soft: #E4F7EE;
  --amber: #B5680A;
  --amber-soft: #FCEFD9;
  --red: #C23A2E;
  --red-soft: #FBEAE8;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.06);
  --shadow-md: 0 8px 24px -8px rgba(11,18,32,0.12);
  --shadow-lg: 0 24px 64px -16px rgba(11,18,32,0.18);
  --shadow-nav: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 32px -10px rgba(11,18,32,0.14);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 112px 0; }
.section-pad-sm { padding: 88px 0; }

@media (max-width: 780px) {
  .section-pad { padding: 72px 0; }
  .section-pad-sm { padding: 56px 0; }
}

.bg-alt { background: var(--bg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.9vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--body);
  line-height: 1.65;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15.5px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px -10px rgba(9,72,134,0.55);
}
.btn-primary:hover {
  background: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 30px -10px rgba(9,72,134,0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-sm { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

.btn svg { width: 16px; height: 16px; }

/* ---------- Nav ---------- */

.nav-wrap {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  padding: 16px 20px 0;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 18px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(11,18,32,0.07);
  box-shadow: var(--shadow-nav);
  transition: box-shadow .25s ease, background .25s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-brand img { height: 30px; width: 30px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 96px; left: 20px; right: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 998;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  display: block;
  padding: 14px 12px;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a.btn { margin-top: 10px; color: #fff; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn-secondary { display: none; }
  .mobile-menu { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 176px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 14% -10%, rgba(30,79,214,0.10), transparent 60%),
    radial-gradient(560px 360px at 96% 6%, rgba(15,157,108,0.09), transparent 60%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
.hero-copy h1 .accent { color: var(--brand); }

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  max-width: 560px;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 46px;
}
.hero-trust-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-soft);
  margin-bottom: 14px;
}
/* Outcome badges (replace software-logo trust row) */
.outcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.outcome-badge .ob-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
}
.outcome-badge .ob-check svg { width: 11px; height: 11px; }

@media (max-width: 980px) {
  .hero { padding: 148px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 620px; }
}

@media (max-width: 560px) {
  .hero-visual { height: 400px; }
  .hv-card-1 { width: 84%; left: 0; }
  .hv-card-2 { width: 78%; right: 0; top: 150px; }
  .hv-card-3 { width: 76%; left: 4%; }
  .hv-tag { right: 6%; top: 84px; font-size: 12px; }
}

/* Hero visual: illustrative product mockup */
.hero-visual {
  position: relative;
  height: 460px;
}
.hv-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.hv-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.hv-card-1 {
  top: 0; left: 4%;
  width: 300px;
  animation: float1 7s ease-in-out infinite;
}
.hv-card-2 {
  top: 168px; right: 0;
  width: 288px;
  animation: float2 8s ease-in-out infinite;
}
.hv-card-3 {
  bottom: 8px; left: 10%;
  width: 270px;
  animation: float3 6.5s ease-in-out infinite;
}
.hv-tag {
  position: absolute;
  top: 96px; right: 26%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float2 8s ease-in-out infinite;
}
.hv-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.28); }

@keyframes float1 { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
@keyframes float2 { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }
@keyframes float3 { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }

.hv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hv-dot { width: 9px; height: 9px; border-radius: 50%; }
.hv-dot.red { background: #FF5F57; } .hv-dot.yellow { background: #FEBC2E; } .hv-dot.green { background: #28C840; }
.hv-label { font-size: 12px; font-weight: 600; color: var(--body-soft); text-transform: uppercase; letter-spacing: .04em; }
.hv-name { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.hv-meta { font-size: 13px; color: var(--body-soft); }
.hv-bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; margin-top: 12px; }
.hv-bar > div { height: 100%; background: var(--mint); border-radius: 4px; }
.hv-chat {
  background: var(--brand-soft);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hv-check {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.hv-check svg { width: 18px; height: 18px; }

/* ---------- Where clinics lose money ---------- */

.loss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.loss-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.loss-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.loss-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.loss-icon svg { width: 20px; height: 20px; }
.loss-event {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 12px;
}
.loss-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body-soft);
}
.loss-arrow svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--red); }
.loss-result {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--red);
}

.loss-callout {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.loss-callout-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.loss-callout-icon svg { width: 26px; height: 26px; color: #fff; }
.loss-callout p { font-size: 17px; line-height: 1.6; color: #D8DEEC; }
.loss-callout strong { color: #fff; }

@media (max-width: 900px) {
  .loss-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .loss-grid { grid-template-columns: 1fr; }
  .loss-callout { flex-direction: column; align-items: flex-start; }
}

/* ---------- Marketing → Flumen split flow ---------- */

.flow-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
.flow-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.flow-col.flumen {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.flow-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-soft);
  margin-bottom: 10px;
}
.flow-col.flumen .flow-label { color: #8FB0D6; }
.flow-col h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.flow-col.flumen h3 { color: #fff; }
.flow-list { flex: 1; }
.flow-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.flow-list li:last-child { border-bottom: none; }
.flow-col.flumen .flow-list li { color: #D8DEEC; border-bottom-color: rgba(255,255,255,0.1); }
.flow-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--body-soft);
  flex-shrink: 0;
}
.flow-col.flumen .flow-list li::before { background: #74E0B4; }
.flow-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-result svg { width: 16px; height: 16px; flex-shrink: 0; }
.flow-col.flumen .flow-result { border-top-color: rgba(255,255,255,0.14); color: #fff; }

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
}
.flow-connector svg { width: 28px; height: 28px; color: var(--brand); }

@media (max-width: 900px) {
  .flow-split { grid-template-columns: 1fr; }
  .flow-connector { width: auto; height: 48px; }
  .flow-connector svg { transform: rotate(90deg); }
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.process-step {
  background: #fff;
  padding: 36px 28px;
  position: relative;
}
.process-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.process-step p { font-size: 14.5px; color: var(--body); line-height: 1.6; }

@media (max-width: 980px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- What We Build ---------- */

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.build-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.build-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30,79,214,0.25);
}
.build-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.build-icon svg { width: 23px; height: 23px; }
.build-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.build-tagline { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.build-desc { font-size: 14.5px; color: var(--body); line-height: 1.6; }
.build-card.wide { grid-column: span 1; }

@media (max-width: 980px) {
  .build-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .build-grid { grid-template-columns: 1fr; }
}

/* ---------- Subpage hero ---------- */

.page-hero {
  padding: 176px 0 88px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 14% -10%, rgba(9,72,134,0.10), transparent 60%),
    radial-gradient(560px 360px at 96% 6%, rgba(15,157,108,0.08), transparent 60%),
    var(--paper);
}
.page-hero-inner { max-width: 760px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  max-width: 620px;
}
@media (max-width: 780px) {
  .page-hero { padding: 148px 0 64px; }
}

/* ---------- Services grid ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9,72,134,0.25);
}
.service-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-outcome {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-soft);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.service-desc { font-size: 14.5px; color: var(--body); line-height: 1.6; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Compatibility list (How We Work) ---------- */

.compat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.compat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.compat-item:hover { border-color: rgba(9,72,134,0.3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.compat-item.wide { grid-column: 1 / -1; background: var(--brand-soft); border-color: var(--brand-soft-2); }
.compat-mark {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
}
.compat-mark svg { width: 20px; height: 20px; }
.compat-q { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.compat-a { font-size: 14.5px; color: var(--body); }

@media (max-width: 700px) {
  .compat-list { grid-template-columns: 1fr; }
}

/* ---------- Case study ---------- */

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.case-badge svg { width: 15px; height: 15px; }

.case-panel {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 52px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.case-panel::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(30,79,214,0.35), transparent 70%);
}
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 44px;
  position: relative;
}
.case-top h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 560px;
}
.case-client {
  font-size: 14px;
  color: #9FB0D6;
  margin-top: 8px;
}
.case-client strong { color: #fff; }

.case-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  position: relative;
  margin-bottom: 40px;
}
.case-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: #9FB0D6;
}
.case-col.before h4 { color: #F0A38C; }
.case-col.after h4 { color: #74E0B4; }
.case-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #D8DEEC;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  line-height: 1.5;
}
.case-list li:last-child { border-bottom: none; }
.case-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.case-col.before svg { color: #F0A38C; }
.case-col.after svg { color: #74E0B4; }

.case-results {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.case-results.cols-5 { grid-template-columns: repeat(5, 1fr); }
.case-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}
.case-stat-before {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #8592B4;
  text-decoration: line-through;
  text-decoration-color: rgba(133,146,180,0.5);
  margin-bottom: 4px;
}
.case-stat-arrow { width: 14px; height: 14px; color: #74E0B4; margin-bottom: 6px; }
.case-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}
.case-stat-label { font-size: 13px; color: #AEB9D6; line-height: 1.4; }

@media (max-width: 900px) {
  .case-results.cols-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .case-results.cols-5 { grid-template-columns: 1fr; }
}

.case-note {
  position: relative;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #9FB0D6;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .case-panel { padding: 34px 24px; }
  .case-cols { grid-template-columns: 1fr; gap: 24px; }
  .case-results { grid-template-columns: 1fr 1fr; }
  .case-top { flex-direction: column; }
}
@media (max-width: 480px) {
  .case-results { grid-template-columns: 1fr; }
}

/* ---------- Why Flumen ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.why-card.muted { background: var(--bg); }
.why-card.brand { background: var(--ink); color: #fff; }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.why-card.brand h3 { color: #fff; }
.why-card p { font-size: 15px; color: var(--body); line-height: 1.65; }
.why-card.brand p { color: #C6CEE2; }

.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.compare-row.head { background: var(--bg); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--body-soft); }
.compare-cell {
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--line);
}
.compare-cell:last-child { border-right: none; }
.compare-row.head .compare-cell { color: var(--body-soft); }
.compare-cell.label { font-weight: 600; color: var(--ink); }
.compare-cell svg { width: 16px; height: 16px; flex-shrink: 0; }
.compare-cell.yes { color: var(--mint); }
.compare-cell.no { color: var(--body-soft); }

@media (max-width: 780px) {
  .why-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .compare-row.head { display: none; }
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform .25s ease;
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; }
.faq-item.open .faq-q .plus { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after { background: #fff; }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 4px 26px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  max-width: 660px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 50% -20%, rgba(30,79,214,0.35), transparent 65%);
}
.final-cta-inner { position: relative; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.final-cta p {
  color: #B9C2DC;
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 32px;
}
.final-cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-cta-note { margin-top: 22px; font-size: 13.5px; color: #8892AD; }

/* ---------- Footer ---------- */

.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; color: var(--body-soft); line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-soft);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14.5px;
  color: var(--body);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--body-soft);
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 36px; }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
