/* Cyberside site credit — RFQ.Gastro
   Institutional signature. Signal red, not orange SaaS glow. */

.cs-credit {
  --cs-void: #05070a;
  --cs-panel: #0b0f14;
  --cs-panel-2: #111822;
  --cs-line: rgba(232, 237, 242, 0.08);
  --cs-muted: #8b95a3;
  --cs-soft: #c5cdd8;
  --cs-white: #f3f5f7;
  --cs-signal: #b42318;
  --cs-signal-soft: rgba(180, 35, 24, 0.55);
  --cs-signal-glow: rgba(180, 35, 24, 0.18);

  position: relative;
  z-index: 50;
  display: none;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--cs-line);
  background:
    radial-gradient(80% 120% at 0% 0%, var(--cs-signal-glow), transparent 55%),
    radial-gradient(70% 100% at 100% 100%, rgba(138, 154, 171, 0.08), transparent 50%),
    linear-gradient(180deg, var(--cs-panel-2), var(--cs-void));
  color: var(--cs-soft);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cs-credit.is-visible {
  display: block;
  animation: cs-credit-in 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-credit__ambient {
  pointer-events: none;
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(180, 35, 24, 0.12), transparent 72%);
  filter: blur(8px);
  opacity: 0.9;
}

.cs-credit__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(243, 245, 247, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 245, 247, 0.7) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.cs-credit__rail {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(180, 35, 24, 0.15) 12%,
    var(--cs-signal) 50%,
    rgba(180, 35, 24, 0.15) 88%,
    transparent 100%
  );
  transform-origin: center;
  animation: cs-credit-rail 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-credit__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.65rem 1.35rem 1.75rem;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.cs-credit__identity {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.cs-credit__mark {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #121110;
  border: 1px solid rgba(243, 238, 230, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(243, 238, 230, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.4);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.cs-credit__mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cs-credit__mark svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.cs-credit__titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cs-credit__kicker {
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cs-muted);
}

.cs-credit__brand {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--cs-white);
}

.cs-credit__statement {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cs-muted);
}

.cs-credit__statement em {
  font-style: normal;
  color: var(--cs-soft);
  font-weight: 600;
}

.cs-credit__meta {
  display: none;
}

.cs-credit__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cs-white);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  transition:
    background 250ms ease,
    border-color 250ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 250ms ease,
    color 250ms ease;
}

.cs-credit__cta-arrow {
  display: grid;
  place-items: center;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-credit__panel:hover .cs-credit__mark,
.cs-credit__panel:focus-visible .cs-credit__mark {
  transform: translateY(-3px);
  border-color: rgba(180, 35, 24, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(180, 35, 24, 0.18);
}

.cs-credit__panel:hover .cs-credit__cta,
.cs-credit__panel:focus-visible .cs-credit__cta {
  background: rgba(180, 35, 24, 0.14);
  border-color: rgba(180, 35, 24, 0.55);
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.16);
  transform: translateY(-1px);
}

.cs-credit__panel:hover .cs-credit__cta-arrow,
.cs-credit__panel:focus-visible .cs-credit__cta-arrow {
  transform: translateX(3px);
}

.cs-credit__panel:hover .cs-credit__brand,
.cs-credit__panel:focus-visible .cs-credit__brand {
  color: #fff;
}

.cs-credit__panel:focus-visible {
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.65);
}

@keyframes cs-credit-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cs-credit-rail {
  from {
    transform: scaleX(0.15);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .cs-credit__panel {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.4rem 1.1rem 1.5rem;
  }

  .cs-credit__cta {
    justify-self: start;
  }

  .cs-credit__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(139, 149, 163, 0.9);
  }

  .cs-credit__dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--cs-signal);
    opacity: 0.75;
  }
}

@media (min-width: 901px) {
  .cs-credit__panel {
    grid-template-areas:
      "identity statement cta"
      "identity meta cta";
  }

  .cs-credit__identity {
    grid-area: identity;
  }

  .cs-credit__statement {
    grid-area: statement;
  }

  .cs-credit__cta {
    grid-area: cta;
    align-self: center;
  }

  .cs-credit__meta {
    grid-area: meta;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    margin-top: 0.15rem;
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(139, 149, 163, 0.92);
  }

  .cs-credit__dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--cs-signal);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-credit.is-visible,
  .cs-credit__rail {
    animation: none;
  }

  .cs-credit__mark,
  .cs-credit__cta,
  .cs-credit__cta-arrow {
    transition: none;
  }
}
