/**
 * Case studies — premium layout & readable contrast
 */
body.wf-cs-page {
  background-color: #0a0a0f;
  background-image:
    radial-gradient(1200px 500px at 20% -10%, rgba(0, 212, 255, 0.1), transparent 55%),
    radial-gradient(900px 400px at 90% 30%, rgba(123, 47, 255, 0.08), transparent 50%);
}

body.wf-cs-page .page-hero {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

body.wf-cs-page .section-desc {
  color: #d8e0ec !important;
  max-width: 680px;
}

/* Hero trust chips */
.wf-cs-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.wf-cs-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #c5d0e0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 26, 0.85);
}

.wf-cs-hero-trust i {
  color: #00d4ff;
  font-size: 0.8rem;
}

/* Featured live builds */
.wf-cs-featured-head {
  text-align: center;
  margin-bottom: 2rem;
}

.wf-cs-featured-head .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.wf-cs-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.wf-cs-featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(16, 22, 34, 0.98), rgba(8, 12, 20, 0.99));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}

.wf-cs-featured-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 28px 70px rgba(0, 212, 255, 0.12);
}

.wf-cs-featured-card--accent {
  border-color: rgba(0, 245, 160, 0.25);
}

.wf-cs-featured-card--accent:hover {
  border-color: rgba(0, 245, 160, 0.45);
  box-shadow: 0 28px 70px rgba(0, 245, 160, 0.1);
}

.wf-cs-featured-card__img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.wf-cs-featured-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 18, 0.95));
}

.wf-cs-featured-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wf-cs-featured-card__body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: #f4f7fb;
  margin: 0.5rem 0 0.65rem;
}

.wf-cs-featured-card__body p {
  color: #d8e0ec;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.wf-cs-featured-card__body .btn {
  align-self: flex-start;
}

/* Grid section title */
.wf-cs-grid-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.65rem;
  color: #f4f7fb;
}

.wf-cs-grid-title .gradient {
  background: linear-gradient(135deg, #00d4ff, #7b2fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wf-cs-grid-lead {
  text-align: center;
  color: #d8e0ec !important;
  font-size: 0.92rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Industries strip */
.wf-cs-industries {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.12);
  background: rgba(0, 212, 255, 0.04);
}

.wf-cs-industries__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00d4ff;
  margin-bottom: 0.85rem;
}

.wf-cs-industries__label i {
  margin-right: 0.35rem;
}

.wf-cs-industries__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.wf-cs-industries__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c5d0e0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.9);
}

/* Process section */
.wf-cs-process {
  padding: 3.5rem 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.04), transparent);
}

.wf-cs-process__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.wf-cs-process__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00d4ff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.wf-cs-process header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
  color: #f4f7fb;
  margin-bottom: 0.5rem;
}

.wf-cs-process header h2 span {
  background: linear-gradient(135deg, #00d4ff, #7b2fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wf-cs-process header p {
  text-align: center;
  color: #d8e0ec;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.wf-cs-process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: wf-cs-step;
}

.wf-cs-process__steps li {
  padding: 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 26, 0.9);
  transition: border-color 0.25s, transform 0.25s;
}

.wf-cs-process__steps li:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-3px);
}

.wf-cs-process__steps li strong {
  display: block;
  color: #00d4ff;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.wf-cs-process__steps li p {
  font-size: 0.82rem;
  color: #b8c6d8;
  margin: 0;
  line-height: 1.55;
}

.wf-cs-process__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
}

.wf-cs-process__trust span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c5d0e0;
}

.wf-cs-process__trust i {
  color: #00d4ff;
  margin-right: 0.35rem;
}

body.wf-cs-page .section-title {
  color: #f4f7fb;
}

/* Quick nav */
.wf-cs-quicknav {
  padding: 1.5rem 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.wf-cs-quicknav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.wf-cs-quicknav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 26, 0.85);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.wf-cs-quicknav a:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.1);
}

.wf-cs-quicknav a i {
  font-size: 1.15rem;
  color: #00d4ff;
}

.wf-cs-quicknav a strong {
  font-size: 0.82rem;
  color: #f0f4fa;
}

.wf-cs-quicknav a span {
  font-size: 0.68rem;
  color: #9eb2c8;
}

/* Stats bar */
.wf-cs-stats {
  padding: 0 2rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.wf-cs-stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.wf-cs-stats__item {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 26, 0.9);
  backdrop-filter: blur(8px);
}

.wf-cs-stats__item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #00d4ff;
  line-height: 1.1;
  background: none !important;
  -webkit-text-fill-color: #00d4ff !important;
}

.wf-cs-stats__item span {
  font-size: 0.7rem;
  color: #b8c6d8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Disclaimer */
.wf-cs-disclaimer {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.wf-cs-disclaimer p {
  font-size: 0.82rem;
  color: #b8c6d8;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 0, 0.25);
  background: rgba(255, 184, 0, 0.06);
}

/* Filters */
.wf-cs-filters {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.wf-cs-filters button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 26, 0.8);
  color: #c5d0e0;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.wf-cs-filters button.is-active,
.wf-cs-filters button:hover {
  border-color: rgba(0, 212, 255, 0.45);
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

body.wf-cs-page .cs-card {
  background: linear-gradient(165deg, rgba(16, 22, 34, 0.98), rgba(8, 12, 20, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

body.wf-cs-page .cs-card p {
  color: #d8e0ec !important;
}

body.wf-cs-page .cs-card h3 {
  color: #f4f7fb !important;
}

body.wf-cs-page .cs-m strong {
  font-size: 1.25rem !important;
  color: #5dffb8 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #5dffb8 !important;
  background-clip: border-box !important;
}

body.wf-cs-page .cs-m span {
  color: #b8c6d8 !important;
}

body.wf-cs-page .cs-card.is-hidden {
  display: none;
}

/* Bottom CTA panel */
.wf-cs-bottom {
  margin-top: 3rem;
  padding: 3.5rem 1.5rem;
  border-top: 2px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), rgba(6, 10, 18, 0.98));
}

.wf-cs-bottom__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.wf-cs-bottom h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: #f4f7fb;
  margin-bottom: 0.65rem;
}

.wf-cs-bottom p {
  color: #d8e0ec;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.wf-cs-bottom__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.wf-cs-bottom__grid article {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.wf-cs-bottom__grid article strong {
  display: block;
  color: #00d4ff;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.wf-cs-bottom__grid article p {
  font-size: 0.8rem;
  color: #b8c6d8;
  margin: 0;
}

.wf-cs-bottom__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

body.wf-cs-page .cta-section {
  background: transparent !important;
  border: none !important;
  padding-top: 2rem !important;
}

body.wf-cs-page .cta-inner p {
  color: #d8e0ec !important;
}

@media (max-width: 768px) {
  .wf-cs-quicknav,
  .wf-cs-stats,
  .wf-cs-disclaimer,
  .wf-cs-filters,
  .wf-cs-hero-trust {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wf-cs-featured-grid {
    grid-template-columns: 1fr;
  }
}
