/* CoderLyft Case Studies — enterprise portfolio (page-scoped) */

.cs-page {
  --cs-navy: #071a2d;
  --cs-blue: #0b66c3;
  --cs-electric: #2f7dff;
  --cs-purple: #7c3aed;
  --cs-muted: #5a7086;
  --cs-line: #e4ebf2;
  --cs-soft: #f4f7fb;
  --cs-mist: #eef3f8;
  background: #fff;
  color: var(--cs-navy);
  font-family: "Outfit", "Outfit Placeholder", sans-serif;
}

.cs-page main,
.cs-page main * {
  font-family: "Outfit", "Outfit Placeholder", sans-serif !important;
}

.cs-page :focus-visible {
  outline: 3px solid #63a9ff;
  outline-offset: 3px;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #9bc7ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cs-eyebrow i {
  width: 28px;
  height: 1px;
  background: #63a9ff;
}

.cs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(220, 234, 250, .62);
  font-size: .86rem;
  font-weight: 600;
}

.cs-breadcrumb a {
  color: rgba(220, 234, 250, .82);
  text-decoration: none;
}

.cs-breadcrumb a:hover,
.cs-breadcrumb strong {
  color: #fff;
}

.cs-btn {
  min-height: 46px;
  padding: 11px 20px !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
}

.cs-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.cs-btn-secondary:hover {
  background: rgba(255, 255, 255, .08);
}

.cs-label {
  color: #a78bfa;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.cs-sample-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, .12);
  color: #6d28d9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cs-method .cs-sample-label,
.cs-hero .cs-sample-label {
  background: rgba(255, 255, 255, .12);
  color: #d8c7ff;
}

/* Hero */
.cs-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 56px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(47, 125, 255, .28), transparent 55%),
    linear-gradient(160deg, #04192c 0%, #071c3c 48%, #001018 100%);
}

.cs-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cs-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}

.cs-hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 169, 255, .35), transparent 68%);
  filter: blur(8px);
}

.cs-hero-lines {
  position: absolute;
  inset: auto 8% 18% auto;
  width: min(320px, 36vw);
  height: 90px;
}

.cs-hero-lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 197, 255, .75), transparent);
  animation: cs-line 4.8s ease-in-out infinite;
}

.cs-hero-lines i:nth-child(2) { top: 28px; animation-delay: .6s; }
.cs-hero-lines i:nth-child(3) { top: 56px; animation-delay: 1.2s; }

@keyframes cs-line {
  0%, 100% { opacity: .25; transform: translateX(-8%); }
  50% { opacity: .9; transform: translateX(8%); }
}

.cs-hero-grid-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr);
  gap: 28px;
  align-items: stretch;
}

.cs-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 700 !important;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.cs-hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff 8%, #8fc5ff 55%, #b8f0c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.cs-hero-lead {
  max-width: 58ch;
  margin: 0 0 22px;
  color: rgba(230, 241, 255, .84);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-hero-actions .button-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  border: 0 !important;
}

.cs-cred-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
}

.cs-cred-item {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(4, 20, 36, .35);
}

.cs-cred-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(46, 83, 50, .22);
  color: #9dcf9f;
}

.cs-cred-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.cs-cred-item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.cs-cred-item span {
  color: rgba(220, 234, 250, .75);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Visual mock */
.cs-visual {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #0a2340, #071a2d);
}

.cs-visual-soft { background: linear-gradient(160deg, #e8eef6, #d7e3f2); }
.cs-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.cs-mock {
  position: relative;
  height: 100%;
  padding: 18px;
}

.cs-mock-browser {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.cs-visual-soft .cs-mock-browser {
  border-color: rgba(7, 26, 45, .08);
  background: #fff;
  box-shadow: 0 14px 28px rgba(7, 26, 45, .1);
}

.cs-mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cs-visual-soft .cs-mock-chrome {
  background: #f3f6fa;
  border-bottom-color: #e4ebf2;
}

.cs-mock-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.cs-visual-soft .cs-mock-chrome span { background: #c5d0dc; }

.cs-mock-chrome em {
  margin-left: 8px;
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-visual-soft .cs-mock-chrome em { color: #7d90a3; }

.cs-mock-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  height: calc(100% - 37px);
}

.cs-mock-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 12px;
  background: rgba(0, 0, 0, .18);
}

.cs-visual-soft .cs-mock-rail { background: #edf2f7; }

.cs-mock-rail i {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .18);
}

.cs-visual-soft .cs-mock-rail i { background: #c9d5e3; }

.cs-mock-main {
  position: relative;
  padding: 12px;
}

.cs-mock-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cs-mock-toolbar strong {
  color: rgba(255, 255, 255, .85);
  font-size: .78rem;
}

.cs-visual-soft .cs-mock-toolbar strong { color: var(--cs-navy); }

.cs-mock-toolbar span,
.cs-mock-cards div,
.cs-mock-chart b {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.cs-visual-soft .cs-mock-toolbar span,
.cs-visual-soft .cs-mock-cards div,
.cs-visual-soft .cs-mock-chart b {
  background: #dbe5f0;
}

.cs-mock-toolbar span {
  width: 42%;
  height: 10px;
}

.cs-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.cs-mock-cards div { height: 42px; }

.cs-mock-chart {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 58px;
}

.cs-mock-chart b {
  flex: 1;
  height: 35%;
}

.cs-mock-chart b:nth-child(2) { height: 58%; }
.cs-mock-chart b:nth-child(3) { height: 42%; }
.cs-mock-chart b:nth-child(4) { height: 78%; }
.cs-mock-chart b:nth-child(5) { height: 52%; }
.cs-mock-chart b:nth-child(6) { height: 68%; }

.theme-commerce .cs-mock-chart b { background: linear-gradient(180deg, #63a9ff, rgba(99, 169, 255, .2)); }
.theme-pipeline .cs-mock-chart b { background: linear-gradient(180deg, #a78bfa, rgba(167, 139, 250, .2)); }
.theme-workspace .cs-mock-chart b { background: linear-gradient(180deg, #7dd3a7, rgba(125, 211, 167, .2)); }

.cs-mock-blur {
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 28%;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  background: linear-gradient(180deg, transparent, rgba(4, 20, 36, .35));
}

.cs-float-metrics {
  position: absolute;
  right: 10px;
  bottom: 54px;
  display: grid;
  gap: 8px;
  z-index: 2;
}

.cs-float-metric {
  min-width: 108px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: var(--cs-navy);
}

.cs-float-metric strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.1;
}

.cs-float-metric span {
  display: block;
  margin-top: 2px;
  color: var(--cs-muted);
  font-size: .68rem;
  font-weight: 700;
}

.cs-visual-tech {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.cs-visual-tech span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7, 26, 45, .72);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}

/* Featured */
.cs-featured {
  padding: 56px 0;
  background: #fff;
}

.cs-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 28px;
  align-items: start;
}

.cs-featured-story h2 {
  margin: 0 0 12px;
  color: var(--cs-navy);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 700 !important;
  letter-spacing: -.03em;
  line-height: 1.18;
}

.cs-featured-summary,
.cs-featured-blocks p {
  margin: 0;
  color: #4a6075;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.cs-featured-summary { margin-bottom: 16px; }

.cs-featured-blocks {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.cs-featured-blocks h3,
.cs-card-grid-meta h4,
.cs-stack-block h3 {
  margin: 0 0 6px;
  color: #7d90a3;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cs-card-tags > span,
.cs-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--cs-soft);
  color: var(--cs-blue);
  font-size: .78rem;
  font-weight: 700;
}

.cs-badge {
  background: rgba(124, 58, 237, .12);
  color: #6d28d9;
}

.cs-impact-strip {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--cs-soft);
}

.cs-impact-strip.is-featured {
  background: linear-gradient(135deg, #f4f7ff, #eef6ff);
}

.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cs-impact-grid strong {
  display: block;
  color: var(--cs-navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.cs-impact-grid span {
  display: block;
  margin-top: 4px;
  color: var(--cs-muted);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}

.cs-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.cs-chip-tech {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cs-navy);
  font-size: .82rem;
  font-weight: 700;
}

.cs-chip-tech.is-capability {
  border-color: rgba(47, 125, 255, .25);
  background: rgba(47, 125, 255, .06);
  color: #0b57a8;
}

/* Discovery */
.cs-collection {
  padding: 56px 0 64px;
}

.cs-collection-head {
  margin-bottom: 18px;
}

.cs-collection-head h2,
.cs-section-head h2 {
  margin: 0 0 6px;
  color: var(--cs-navy);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700 !important;
  letter-spacing: -.03em;
}

.cs-result-count,
.cs-section-head p {
  margin: 0;
  color: var(--cs-muted);
  font-size: .98rem;
  font-weight: 500;
}

.cs-section-head {
  margin-bottom: 22px;
}

.cs-section-head.is-light h2,
.cs-section-head.is-light p {
  color: #fff;
}

.cs-section-head.is-light p {
  color: rgba(230, 241, 255, .78);
}

.cs-discover {
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
}

.cs-discover-form {
  display: block;
}

.cs-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
}

.cs-filter-panel label span {
  display: block;
  margin-bottom: 6px;
  color: var(--cs-muted);
  font-size: .74rem;
  font-weight: 700;
}

.cs-discover input,
.cs-discover select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  background: var(--cs-soft);
  color: var(--cs-navy);
  font: inherit;
  font-size: .92rem;
}

.cs-mobile-filters {
  display: none;
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.cs-chip,
.cs-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}

.cs-chip {
  border: 1px solid var(--cs-line);
  background: var(--cs-soft);
  color: var(--cs-navy);
}

.cs-clear { color: var(--cs-blue); }

.cs-filter-drawer[hidden] { display: none !important; }

/* Cards */
.cs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cs-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cs-card-navy {
  background: linear-gradient(160deg, #071a2d, #0a2748);
  border-color: transparent;
  color: #fff;
}

.cs-card-accent {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #2f7dff, #7c3aed) border-box;
  border: 1px solid transparent;
}

.cs-card:hover {
  transform: translateY(-6px);
  border-color: var(--cs-electric);
  box-shadow: 0 18px 40px rgba(7, 26, 45, .12);
}

.cs-card:hover .cs-visual.has-image img,
.cs-card:hover .cs-mock-browser {
  transform: scale(1.03);
}

.cs-card:hover .cs-card-link span {
  transform: translateX(4px);
}

.cs-card-media {
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.cs-card-media .cs-visual {
  height: auto;
  min-height: 0;
  border-radius: 0;
  aspect-ratio: 5 / 4;
}

.cs-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.cs-card-navy .cs-card-tags > span {
  background: rgba(255, 255, 255, .1);
  color: #cfe3ff;
}

.cs-card-navy .cs-badge {
  background: rgba(167, 139, 250, .2);
  color: #ddd6fe;
}

.cs-card h3 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 1.22rem;
  font-weight: 700 !important;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.cs-card-summary,
.cs-card-grid-meta p {
  margin: 0;
  color: #4a6075;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
}

.cs-card-navy .cs-card-summary,
.cs-card-navy .cs-card-grid-meta p {
  color: rgba(230, 241, 255, .78);
}

.cs-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.cs-card-grid-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.cs-card-navy .cs-card-grid-meta h4,
.cs-card-navy .cs-impact-grid span {
  color: rgba(200, 220, 245, .7);
}

.cs-card-navy .cs-impact-strip {
  background: rgba(255, 255, 255, .06);
}

.cs-card-navy .cs-impact-grid strong,
.cs-card-navy .cs-card-link {
  color: #fff;
}

.cs-card-navy .cs-chip-tech {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: #e8f1ff;
}

.cs-card-navy .cs-sample-label {
  background: rgba(255, 255, 255, .1);
  color: #d8c7ff;
}

.cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--cs-blue);
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
}

.cs-card-link span {
  transition: transform .2s ease;
}

.cs-empty {
  padding: 36px 0;
}

.cs-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cs-pagination a,
.cs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  color: var(--cs-navy);
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}

.cs-pagination .is-current {
  background: var(--cs-purple);
  border-color: var(--cs-purple);
  color: #fff;
}

.cs-pagination .is-disabled { opacity: .4; }

/* Stack / industries / method / testimonial / CTA */
.cs-stack {
  padding: 64px 0;
  background: #fff;
}

.cs-stack-block + .cs-stack-block {
  margin-top: 18px;
}

.cs-industries {
  padding: 56px 0 64px;
  background: var(--cs-soft);
}

.cs-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cs-industry-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cs-industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--cs-electric);
  box-shadow: 0 12px 28px rgba(7, 26, 45, .08);
}

.cs-industry-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.cs-industry-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--cs-blue);
  font-size: .82rem;
  font-weight: 700;
}

.cs-industry-card em {
  display: block;
  color: var(--cs-muted);
  font-size: .86rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}

.cs-industry-arrow {
  align-self: flex-end;
  color: var(--cs-blue);
  font-weight: 700;
}

.cs-method {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 119, 200, .22), transparent 55%),
    linear-gradient(160deg, #04192c 0%, #071c3c 45%, #001018 100%);
  color: #fff;
}

.cs-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.cs-timeline li {
  position: relative;
  padding-top: 8px;
}

.cs-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 197, 255, .7), rgba(143, 197, 255, .15));
}

.cs-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #9bc7ff;
  font-size: .85rem;
  font-weight: 800;
}

.cs-timeline h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700 !important;
}

.cs-timeline p {
  margin: 0;
  color: rgba(230, 241, 255, .78);
  font-size: .95rem;
  line-height: 1.55;
}

.cs-testimonial {
  padding: 64px 0;
  background: #fff;
}

.cs-testimonial-inner {
  max-width: 860px;
}

.cs-testimonial blockquote {
  margin: 0 0 18px;
}

.cs-testimonial blockquote p {
  margin: 0;
  color: var(--cs-navy);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.cs-testimonial footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: end;
}

.cs-testimonial footer strong {
  display: block;
  margin-bottom: 4px;
}

.cs-testimonial footer span {
  display: block;
  color: var(--cs-muted);
  font-size: .92rem;
  font-weight: 500;
}

.cs-cta {
  padding: 64px 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, rgba(0, 119, 200, .25), transparent 55%),
    linear-gradient(160deg, #04192c 0%, #071c3c 45%, #001018 100%);
  color: #fff;
}

.cs-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 24px;
  align-items: center;
}

.cs-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 700 !important;
  letter-spacing: -.035em;
}

.cs-cta p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(230, 241, 255, .8);
  font-size: 1.02rem;
  line-height: 1.65;
}

.cs-trust {
  margin-top: 14px !important;
  color: #9bc7ff !important;
  font-weight: 650;
}

.cs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cs-cta .button-primary {
  background: #fff !important;
  color: var(--cs-navy) !important;
  border: 0 !important;
}

.cs-cta .button-primary:hover {
  background: #e8f1ff !important;
}

/* Seamless CTA into global footer (no white inline-gap from async stylesheet noscript) */
.cs-page main ~ noscript {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.cs-page main ~ .cl-footer {
  margin-top: 0;
}

/* Detail page retained styles */
.cs-detail-page .cs-detail-hero {
  padding: 132px 0 40px;
  background: #fff;
}

.cs-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: start;
}

.cs-detail-hero h1 {
  margin: 0 0 12px;
  color: var(--cs-navy);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700 !important;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.cs-detail-client {
  margin: 0 0 12px;
  color: var(--cs-blue);
  font-weight: 700;
}

.cs-detail-hero-copy > p:last-of-type {
  margin: 0;
  color: #4a6075;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cs-detail-hero-copy .cs-detail-summary {
  margin-top: 0;
}

.cs-detail-page .cs-breadcrumb {
  color: #7d90a3;
}

.cs-detail-page .cs-breadcrumb a {
  color: inherit;
}

.cs-detail-page .cs-breadcrumb a:hover,
.cs-detail-page .cs-breadcrumb strong {
  color: var(--cs-navy);
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.cs-detail-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 64px;
}

.cs-onpage {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.cs-onpage strong {
  margin-bottom: 4px;
  color: var(--cs-navy);
}

.cs-onpage a {
  color: var(--cs-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}

.cs-onpage a:hover { color: var(--cs-blue); }

.cs-detail-section {
  padding: 28px 0;
  border-top: 1px solid var(--cs-line);
}

.cs-detail-section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 700 !important;
}

.cs-detail-section p,
.cs-detail-section li {
  color: #4a6075;
  font-size: 1.02rem;
  line-height: 1.7;
}

.cs-detail-subtitle {
  margin: 0 0 12px;
  color: #4a6075;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 500;
  line-height: 1.5;
}

.cs-detail-summary {
  margin: 0;
  color: #4a6075;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cs-block {
  padding: 28px 0;
  border-top: 1px solid var(--cs-line);
}

.cs-section-title {
  margin: 0 0 14px;
  color: var(--cs-navy);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700 !important;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.cs-prose p,
.cs-lead,
.cs-block > p {
  margin: 0 0 14px;
  color: #4a6075;
  font-size: 1.02rem;
  line-height: 1.75;
}

.cs-lead {
  font-size: 1.08rem;
  font-weight: 500;
}

.cs-checklist {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.cs-checklist li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  color: #4a6075;
  font-size: 1rem;
  line-height: 1.65;
}

.cs-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-electric);
}

.cs-solution-sections {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cs-solution;
}

.cs-solution-item {
  counter-increment: cs-solution;
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
}

.cs-solution-item h3 {
  margin: 0 0 10px;
  color: var(--cs-navy);
  font-size: 1.08rem;
  font-weight: 700 !important;
  line-height: 1.35;
}

.cs-solution-item h3::before {
  content: counter(cs-solution) ". ";
  color: var(--cs-blue);
}

.cs-solution-item p:last-child,
.cs-solution-item .cs-checklist:last-child {
  margin-bottom: 0;
}

.cs-tech-groups {
  display: grid;
  gap: 18px;
}

.cs-tech-group h3 {
  margin: 0 0 10px;
  color: var(--cs-navy);
  font-size: 1rem;
  font-weight: 700 !important;
}

.cs-tech-roles,
.cs-arch,
.cs-outcome-list,
.cs-stages,
.cs-walkthrough {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-tech-roles li,
.cs-arch li,
.cs-outcome-list li {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: #fff;
}

.cs-tech-roles strong,
.cs-arch strong,
.cs-outcome-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cs-navy);
}

.cs-tech-roles p,
.cs-arch p,
.cs-outcome-list p {
  margin: 0;
  color: #4a6075;
  line-height: 1.65;
}

.cs-quote {
  margin: 0;
  padding: 22px;
  border-left: 4px solid var(--cs-electric);
  border-radius: 0 14px 14px 0;
  background: var(--cs-soft);
}

.cs-quote p {
  margin: 0 0 12px;
  color: var(--cs-navy);
  font-size: 1.08rem;
  line-height: 1.7;
}

.cs-snapshot-grid,
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--cs-blue);
  font-size: .84rem;
  font-weight: 700;
}

.cs-related-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--cs-line);
  text-decoration: none;
  color: inherit;
}

@media (max-width: 1100px) {
  .cs-hero-grid-layout,
  .cs-featured-grid,
  .cs-cta-inner,
  .cs-detail-hero-grid,
  .cs-detail-shell {
    grid-template-columns: 1fr;
  }

  .cs-discover-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
  }

  .cs-industry-grid,
  .cs-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-timeline li:not(:last-child)::after { display: none; }

  .cs-onpage { display: none; }
}

@media (max-width: 820px) {
  .cs-hero { padding: 118px 0 40px; }
  .cs-featured,
  .cs-collection,
  .cs-stack,
  .cs-industries,
  .cs-method,
  .cs-testimonial,
  .cs-cta {
    padding: 40px 0;
  }

  .cs-card-grid,
  .cs-industry-grid,
  .cs-timeline,
  .cs-impact-grid,
  .cs-card-grid-meta,
  .cs-cred-panel,
  .cs-snapshot-grid,
  .cs-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .cs-discover-form {
    grid-template-columns: 1fr auto;
  }

  .cs-filter-panel {
    grid-template-columns: 1fr;
  }

  .cs-filter-panel[hidden] {
    display: none !important;
  }

  .cs-mobile-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--cs-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cs-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .cs-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--cs-purple);
    color: #fff;
    font-size: .7rem;
  }

  .cs-hero-actions .cs-btn,
  .cs-hero-actions .cs-btn-secondary,
  .cs-cta-actions .cs-btn,
  .cs-cta-actions .cs-btn-secondary {
    width: 100%;
  }

  .cs-cta-actions { justify-content: stretch; }
}

@media (max-width: 560px) {
  .cs-card-grid,
  .cs-industry-grid,
  .cs-timeline,
  .cs-cred-panel {
    grid-template-columns: 1fr;
  }

  .cs-float-metrics { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero-lines i,
  .cs-card,
  .cs-card-link span,
  .cs-industry-card,
  .cs-visual.has-image img,
  .cs-mock-browser {
    animation: none !important;
    transition: none !important;
  }
}

/* Case study detail — dark header matching footer */
.cs-detail-page .site-header {
  top: 0 !important;
}

.cs-detail-page .site-header,
.cs-detail-page .site-header .nav-shell,
.cs-detail-page .site-header:not(.scrolled) .nav-shell,
.cs-detail-page .site-header.scrolled,
.cs-detail-page .site-header.scrolled .nav-shell,
body.cs-detail-page.menu-open .site-header,
body.cs-detail-page.menu-open .site-header .nav-shell {
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(0, 119, 200, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(109, 94, 247, 0.35), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 212, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #001018 0%, #001F2B 42%, #0A2F4A 100%) !important;
  box-shadow: 0 10px 30px rgba(2, 12, 22, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.cs-detail-page .site-header .nav-shell {
  width: 100%;
  max-width: none;
  min-height: 76px;
  margin: 0;
  padding: 0 18px 0 21px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

@media (max-width: 940px) {
  .cs-detail-page .site-header .nav-shell {
    min-height: 60px;
    padding: 8px 10px !important;
  }
}

.cs-detail-page .site-header .desktop-nav > a,
.cs-detail-page .site-header .desktop-nav .nav-link {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2) !important;
}

.cs-detail-page .site-header .desktop-nav > a:hover,
.cs-detail-page .site-header .desktop-nav .nav-link:hover,
.cs-detail-page .site-header .has-mega-menu:focus-within .nav-link {
  color: #8fc1ff !important;
}

.cs-detail-page .site-header .call-disc {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.cs-detail-page .site-header .call-disc svg {
  stroke: #fff;
}

.cs-detail-page .site-header .menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.cs-detail-page .site-header .mobile-book-call {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}
