/* QuBit — Referenzen / Kunden page
   Dark-dominant, matches the QuExpert visual language. Builds on design tokens. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--qb-ink-1000);
  color: #fff;
  font-family: var(--qb-font-sans);
  -webkit-font-smoothing: antialiased;
}
.rf { overflow-x: hidden; }
a { text-decoration: none; }

/* shared ------------------------------------------------------------------- */
.rf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.rf-overline {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--qb-violet-300);
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
}
.rf-overline::before { content: ""; width: 28px; height: 1px; background: var(--qb-violet-400); opacity: .7; }
.rf-grad {
  background: var(--qb-grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rf-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--qb-font-sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: all 200ms var(--qb-ease-out);
}
.rf-btn--gradient { background: var(--qb-grad-primary); color: #fff; box-shadow: 0 8px 24px rgba(111,61,240,.4); }
.rf-btn--gradient:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(111,61,240,.5); }
.rf-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.rf-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.rf-btn .arr { transition: transform 200ms var(--qb-ease-out); }
.rf-btn:hover .arr { transform: translateX(3px); }

/* ---------- NAV ---------- */
.rf-nav__bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,8,20,0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.rf-nav { display: flex; align-items: center; gap: 24px; padding: 18px 32px; max-width: 1180px; margin: 0 auto; }
.rf-nav__logo { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.rf-nav__logo img { height: 32px; width: auto; }
.rf-nav__tag { margin-left: 14px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 500; color: rgba(255,255,255,.6); }
.rf-nav__spacer { flex: 1; }
.rf-nav__links { display: flex; gap: 26px; align-items: center; margin-right: 8px; }
.rf-nav__links a { color: rgba(255,255,255,.74); font-size: 14px; font-weight: 500; transition: color 200ms var(--qb-ease-out); }
.rf-nav__links a:hover { color: #fff; }
.rf-nav__links a.is-active { color: #fff; }
@media (max-width: 1080px) { .rf-nav__links { display: none; } }

/* ---------- HERO ---------- */
.rf-hero { position: relative; padding: 92px 0 64px; overflow: hidden; }
.rf-hero__orb {
  position: absolute; right: -240px; top: -80px; width: 760px; height: 760px;
  background: var(--qb-grad-orb); opacity: .42; filter: blur(8px); pointer-events: none; border-radius: 50%;
}
.rf-hero__inner { position: relative; max-width: 880px; }
.rf-hero h1 {
  font-size: clamp(42px, 5.6vw, 74px); font-weight: 700; line-height: 1.03;
  letter-spacing: -0.03em; margin: 24px 0 0;
}
.rf-hero__lead {
  font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: rgba(255,255,255,.74);
  margin: 24px 0 0; max-width: 640px;
}
.rf-hero__lead strong { color: #fff; font-weight: 600; }
.rf-hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; }
.rf-stat__n { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rf-stat__l { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------- LOGO WALL ---------- */
.rf-logos { padding: 40px 0 8px; border-top: 1px solid rgba(255,255,255,.06); }
.rf-logos__label {
  font-family: var(--qb-font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); text-align: center; margin: 0 0 24px;
}
.rf-logos__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.rf-logos__cell {
  height: 92px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center; padding: 14px;
  transition: border-color 200ms var(--qb-ease-out);
}
.rf-logos__cell:hover { border-color: rgba(139,92,246,.4); }
.rf-logos__cell image-slot { width: 100%; height: 100%; --is-bg: transparent; }
@media (max-width: 900px) { .rf-logos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .rf-logos__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FILTER ---------- */
.rf-gridsec { padding: 16px 0 80px; }
.rf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.rf-filter__btn {
  font-family: var(--qb-font-sans); font-size: 13.5px; font-weight: 500; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12);
  transition: all 180ms var(--qb-ease-out);
}
.rf-filter__btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.rf-filter__btn.is-active { color: #fff; background: var(--qb-grad-primary); border-color: transparent; box-shadow: 0 6px 18px rgba(111,61,240,.35); }

/* ---------- TILE GRID ---------- */
.rf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.rf-tile {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  font-family: var(--qb-font-sans); color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.1); border-radius: 22px;
  padding: 26px; min-height: 300px;
  display: flex; flex-direction: column;
  transition: transform 240ms var(--qb-ease-out), border-color 240ms var(--qb-ease-out), box-shadow 240ms var(--qb-ease-out);
}
.rf-tile--wide { grid-column: span 2; }
.rf-tile:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.45); box-shadow: 0 22px 50px rgba(10,8,20,.5); }
.rf-tile__glow {
  position: absolute; right: -110px; top: -110px; width: 300px; height: 300px;
  background: var(--qb-grad-orb); opacity: 0; filter: blur(10px); pointer-events: none;
  transition: opacity 300ms var(--qb-ease-out);
}
.rf-tile:hover .rf-tile__glow { opacity: .26; }
.rf-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.rf-tile__cat {
  padding: 6px 12px; border-radius: 999px; background: rgba(139,92,246,.14);
  border: 1px solid rgba(139,92,246,.35); font-size: 11.5px; font-weight: 600;
  color: #d8c9ff; letter-spacing: 0.03em;
}
.rf-tile__logo {
  width: 96px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-end;
}
.rf-tile__logo image-slot { width: 100%; height: 100%; }
.rf-tile__logoimg {
  height: 64px; min-width: 120px; max-width: 230px; flex-shrink: 0;
  background: #fff; border-radius: 11px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: center;
}
.rf-tile__logoimg img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.rf-tile__logoimg--dark { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); padding: 4px 8px; }
.rf-tile__mid { position: relative; margin-top: 22px; flex: 1; display: flex; flex-direction: column; }
.rf-tile__metric { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.rf-tile__metric-n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rf-tile__metric-l { font-size: 12.5px; color: rgba(255,255,255,.55); }
.rf-tile__headline { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: pretty; }
.rf-tile--wide .rf-tile__headline { font-size: 28px; }
.rf-tile__hook { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.66); margin: 12px 0 0; max-width: 440px; }
.rf-tile__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.rf-tile__name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.rf-tile__cta { font-size: 13.5px; font-weight: 600; color: var(--qb-violet-300); display: inline-flex; align-items: center; gap: 7px; }
.rf-tile__cta .arr { transition: transform 200ms var(--qb-ease-out); }
.rf-tile:hover .rf-tile__cta .arr { transform: translateX(4px); }

/* own QuBit solutions — specially marked */
.rf-tile--own {
  border-color: rgba(236,72,153,.42);
  background: linear-gradient(180deg, rgba(236,72,153,.085), rgba(139,92,246,.03));
}
.rf-tile--own:hover { border-color: rgba(244,114,182,.65); box-shadow: 0 22px 50px rgba(40,8,30,.55); }
.rf-tile--own .rf-tile__glow { background: var(--qb-grad-primary); }
.rf-tile__cat--own { background: var(--qb-grad-primary); border-color: transparent; color: #fff; }
.rf-tile__ownmark {
  font-family: var(--qb-font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.62); display: inline-flex; align-items: center; gap: 8px;
}
.rf-tile__ownmark::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--qb-grad-orb); box-shadow: 0 0 12px rgba(236,72,153,.6);
}
.rf-meta__cat--own { background: var(--qb-grad-primary); border-color: transparent; color: #fff; }
@media (max-width: 980px) { .rf-grid { grid-template-columns: repeat(2, 1fr); } .rf-tile--wide { grid-column: span 2; } }
@media (max-width: 640px) { .rf-grid { grid-template-columns: 1fr; } .rf-tile--wide { grid-column: span 1; } .rf-tile { min-height: 0; } }

/* shared chips / meta-cat (used in modal too) */
.rf-meta__cat {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.35);
  font-size: 12px; font-weight: 600; color: #d8c9ff; letter-spacing: 0.02em;
}
.rf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rf-chip {
  font-family: var(--qb-font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 7px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75);
}

/* ---------- MODAL ---------- */
.rf-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,4,14,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 24px; overflow-y: auto;
  animation: rf-fade 200ms var(--qb-ease-out);
}
@keyframes rf-fade { from { opacity: 0; } to { opacity: 1; } }
.rf-modal__panel {
  position: relative; width: 100%; max-width: 1000px;
  background: linear-gradient(180deg, #15102a, #0c0a1c);
  border: 1px solid rgba(255,255,255,.14); border-radius: 26px;
  padding: 40px; box-shadow: 0 40px 120px rgba(0,0,0,.6);
  animation: rf-rise 280ms var(--qb-ease-out);
}
@keyframes rf-rise { from { opacity: 0; transform: translateY(24px) scale(.99); } to { opacity: 1; transform: none; } }
.rf-modal__close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  color: #fff; font-size: 22px; line-height: 1; transition: all 160ms var(--qb-ease-out);
}
.rf-modal__close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }
.rf-modal__head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rf-modal__logo {
  width: 120px; height: 56px; flex-shrink: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.rf-modal__logo image-slot { width: 100%; height: 100%; }
.rf-modal__logoimg {
  width: 150px; height: 76px; flex-shrink: 0;
  background: #fff; border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: center;
}
.rf-modal__logoimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rf-modal__logoimg--dark { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); }
.rf-modal__head-txt { flex: 1; min-width: 200px; }
.rf-modal__name { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 0; }
.rf-modal__desc { font-size: 14px; color: rgba(255,255,255,.6); margin: 6px 0 0; }
.rf-modal__metric { text-align: right; }
.rf-modal__metric span { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rf-modal__metric small { font-size: 12px; color: rgba(255,255,255,.55); }
.rf-modal__headline { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 28px 0 0; }
.rf-modal__chips { margin-top: 16px; }
.rf-modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 32px; }
.rf-modal__col { display: flex; flex-direction: column; gap: 28px; }
.rf-rolelabel { font-size: 13.5px; color: rgba(255,255,255,.55); margin: 0 0 10px; }
@media (max-width: 820px) {
  .rf-modal__cols { grid-template-columns: 1fr; gap: 28px; }
  .rf-modal__panel { padding: 28px 22px; }
  .rf-modal__metric { text-align: left; }
}

/* body blocks (shared by modal) */
.rf-body { display: flex; flex-direction: column; gap: 32px; }
.rf-block__h {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; margin: 0 0 12px;
}
.rf-block__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--qb-grad-primary); box-shadow: 0 0 10px rgba(139,92,246,.6); }
.rf-block--solution .rf-block__dot { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.rf-block--qubit .rf-block__dot { background: linear-gradient(135deg, #c084fc, #ec4899); }
.rf-block--benefit .rf-block__dot { background: linear-gradient(135deg, #f472b6, #ec4899); }
.rf-block__p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.78); margin: 0; }
.rf-block__p strong { color: #fff; font-weight: 600; }

.rf-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 0; }
.rf-list li {
  display: flex; align-items: flex-start; gap: 13px; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.84);
}
.rf-list li:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.rf-list .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; background: var(--qb-grad-primary); }
.rf-list li strong { color: #fff; font-weight: 600; }

/* QuBit role list — role: description */
.rf-roles { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.rf-role {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: baseline;
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
}
.rf-role__k { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.005em; }
.rf-role__v { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.68); }
@media (max-width: 600px) { .rf-role { grid-template-columns: 1fr; gap: 4px; } }

.rf-benefit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.rf-benefit__card {
  padding: 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(236,72,153,.08), rgba(139,92,246,.04));
  border: 1px solid rgba(244,114,182,.22);
}
.rf-benefit__h { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 5px; }
.rf-benefit__p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.66); margin: 0; }
@media (max-width: 760px) { .rf-benefit { grid-template-columns: 1fr; } }

/* testimonial */
.rf-quote {
  margin-top: 8px; padding: 28px 30px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  position: relative; overflow: hidden;
}
.rf-quote__glow { position: absolute; right: -100px; top: -100px; width: 280px; height: 280px; background: var(--qb-grad-orb); opacity: .18; filter: blur(10px); pointer-events: none; }
.rf-quote__mark { font-size: 56px; line-height: .6; color: var(--qb-violet-400); font-family: Georgia, serif; position: relative; }
.rf-quote__text { font-size: 18px; line-height: 1.55; color: #fff; font-weight: 500; margin: 8px 0 0; position: relative; }
.rf-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 20px; position: relative; }
.rf-quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--qb-grad-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.rf-quote__name { font-size: 14.5px; font-weight: 600; color: #fff; }
.rf-quote__role { font-size: 13px; color: rgba(255,255,255,.6); }

@media (max-width: 880px) {
  .rf-case__inner { grid-template-columns: 1fr; gap: 28px; }
  .rf-meta { position: static; }
  .rf-nav__tag { display: none; }
}

/* ---------- CTA ---------- */
.rf-cta { padding: 120px 0 130px; background: var(--qb-ink-950); position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.rf-cta__orb { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 640px; height: 640px; background: var(--qb-grad-orb); opacity: .3; filter: blur(12px); pointer-events: none; border-radius: 50%; }
.rf-cta__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.rf-cta__inner h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 22px 0 0; }
.rf-cta__inner p { font-size: 19px; color: rgba(255,255,255,.78); margin: 20px 0 0; }
.rf-cta__actions { display: flex; gap: 13px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.rf-footer { background: var(--qb-ink-1000); color: rgba(255,255,255,.7); padding: 64px 0 36px; border-top: 1px solid rgba(255,255,255,.07); }
.rf-footer__grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.rf-footer__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.rf-footer__brand address { font-style: normal; line-height: 1.7; font-size: 14px; }
.rf-footer__brand a { color: var(--qb-violet-300); }
.rf-footer__links { display: flex; gap: 56px; }
.rf-footer__links h4 { color: #fff; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.rf-footer__links a { display: block; color: rgba(255,255,255,.6); font-size: 14px; padding: 4px 0; }
.rf-footer__links a:hover { color: #fff; }
.rf-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.45); }
