/* StelloPay case study - Behance-inspired structure, blue Web3 theme */

body.case-study--stellopay {
  --sp-blue: #1d8fe8;
  --sp-blue-soft: rgba(29, 143, 232, 0.12);
  --sp-purple: #7c3aed;
  --sp-dark: #0a0e1a;
  --sp-gradient: linear-gradient(135deg, #1d8fe8 0%, #7c3aed 100%);
}

body.case-study--stellopay .case-hero__tag {
  background: var(--sp-blue-soft);
  color: var(--sp-blue);
}

body.case-study--stellopay .case-kicker,
body.case-study--stellopay .screen-group-title,
body.case-study--stellopay .four-ws__label,
body.case-study--stellopay .interview-q,
body.case-study--stellopay .flow-branch__col h4,
body.case-study--stellopay .stat-card__num,
body.case-study--stellopay .ai-callout strong {
  color: var(--sp-blue);
}

body.case-study--stellopay .four-ws__card--who {
  background: linear-gradient(135deg, #1d8fe8 0%, #3b82f6 100%);
}

body.case-study--stellopay .four-ws__card--what {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d8fe8 100%);
}

body.case-study--stellopay .four-ws__card--when {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

body.case-study--stellopay .four-ws__card--why {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

body.case-study--stellopay .stat-bar__fill {
  background: linear-gradient(90deg, var(--sp-blue), #60a5fa);
}

body.case-study--stellopay .stat-card:hover {
  box-shadow: 0 12px 36px rgba(29, 143, 232, 0.14);
}

body.case-study--stellopay .video-overlay-btn {
  background: rgba(29, 143, 232, 0.92);
}

body.case-study--stellopay .video-overlay-btn:hover {
  background: var(--sp-blue);
}

body.case-study--stellopay .screen-group-title {
  border-bottom-color: rgba(29, 143, 232, 0.25);
}

body.case-study--stellopay .project-slide__tag--web3-blue {
  color: var(--sp-blue);
}

/* ── Behance-style section index ── */
.cs-index {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 28px;
  align-items: start;
  margin-top: 40px;
}

.cs-index__num {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  background: var(--sp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-index__body h3 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.cs-index__body p {
  margin: 0;
  font-size: 15px;
  color: var(--case-text-soft);
}

/* ── Design goals grid ── */
.sp-goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.sp-goal {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--case-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-goal:hover {
  transform: translateY(-4px);
}

.sp-goal__num {
  font-family: "Lexend Deca", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.sp-goal h3 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.sp-goal p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.sp-goal--01 {
  background: linear-gradient(145deg, #1d8fe8 0%, #3b82f6 100%);
  box-shadow: 0 12px 32px rgba(29, 143, 232, 0.28);
}

.sp-goal--02 {
  background: linear-gradient(145deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.28);
}

.sp-goal--03 {
  background: linear-gradient(145deg, #1d8fe8 0%, #7c3aed 55%, #6366f1 100%);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.28);
}

.sp-goal--04 {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 50%, #1d8fe8 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
}

.sp-goal--01 .sp-goal__num,
.sp-goal--02 .sp-goal__num,
.sp-goal--03 .sp-goal__num,
.sp-goal--04 .sp-goal__num {
  color: rgba(255, 255, 255, 0.82);
}

.sp-goal--01 h3,
.sp-goal--02 h3,
.sp-goal--03 h3,
.sp-goal--04 h3 {
  color: #fff;
}

.sp-goal--01 p,
.sp-goal--02 p,
.sp-goal--03 p,
.sp-goal--04 p {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Before / After showcase ── */
.sp-showcase {
  margin-top: 32px;
}

.sp-showcase__label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Lexend Deca", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sp-showcase__label--before {
  background: rgba(100, 100, 100, 0.12);
  color: var(--case-text-muted);
}

.sp-showcase__label--after {
  background: var(--sp-blue-soft);
  color: var(--sp-blue);
}

.sp-showcase__frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--case-border);
  background: var(--case-surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.sp-showcase__frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

.sp-showcase__caption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--case-text-muted);
  border-top: 1px solid var(--case-border);
  text-align: center;
}

.sp-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

/* ── Section highlights (new design breakdown) ── */
.sp-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.sp-section-card {
  padding: 24px 22px;
  border-radius: 16px;
  border: 1px solid var(--case-border);
  background: var(--sp-dark);
  color: #e8ecf4;
}

.sp-section-card h3 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}

.sp-section-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(232, 236, 244, 0.75);
}

.sp-section-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-gradient);
  margin-bottom: 14px;
}

/* ── Insight quote ── */
.sp-quote {
  margin: 40px 0 0;
  padding: 32px 28px;
  border-radius: 16px;
  border-left: 4px solid var(--sp-blue);
  background: var(--sp-blue-soft);
}

.sp-quote p {
  margin: 0;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--case-text);
}

/* ── Landing hero - pre-rendered showcase, no fake device chrome ── */
.sp-landing-hero {
  background: #08080a;
  padding: 0;
  overflow: visible;
}

.sp-hero-showcase {
  margin: 0;
  padding: clamp(32px, 5vw, 56px) var(--page-padding, 24px);
  max-width: calc(1120px + var(--page-padding, 24px) * 2);
  margin-inline: auto;
}

.sp-hero-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Mobile screens - simple rounded grid ── */
.case-section__inner--wide {
  max-width: 1200px;
}

#mobile,
.sp-mobile-section {
  background: var(--case-surface);
  max-width: 100%;
  border-top: 1px solid var(--case-border);
  border-bottom: 1px solid var(--case-border);
}

.sp-mobile-section__lead {
  max-width: 52ch;
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: 15px;
  line-height: 1.5;
  color: var(--case-text-soft);
}

.sp-mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  padding: 0;
}

.sp-mobile-grid__item {
  margin: 0;
}

.sp-mobile-grid__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--case-border);
}

.sp-showcase__frame--desktop-full {
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.1);
}

.sp-showcase__frame--desktop-full img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Behance-style typography ── */
.sp-type-section {
  background: #050508;
  padding: clamp(64px, 10vw, 120px) var(--page-padding, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-type-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  gap: 0;
}

.sp-type-card {
  position: relative;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 48px);
  min-height: 420px;
  overflow: hidden;
}

.sp-type-card:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-type-card__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(29, 143, 232, 0.45);
  font-family: "Lexend Deca", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.sp-type-card__specimen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  margin: 0;
  font-size: clamp(7rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.sp-type-card__specimen--title {
  font-family: "Lexend Deca", sans-serif;
}

.sp-type-card__specimen--body {
  font-family: "DM Sans", sans-serif;
}

.sp-type-card__name {
  position: relative;
  z-index: 1;
  margin: clamp(48px, 8vw, 80px) 0 0;
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
}

.sp-type-card__name--body {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
}

.sp-type-card__meta {
  position: relative;
  z-index: 1;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
}

.sp-type-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-type-card__meta dt {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.sp-type-card__meta dd {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-align: right;
}

/* ── Behance-style color palette ── */
.sp-palette-section {
  background: #030305;
  padding: clamp(80px, 12vw, 140px) var(--page-padding, 24px) clamp(100px, 14vw, 160px);
  overflow: hidden;
}

.sp-palette-stage {
  position: relative;
  max-width: 960px;
  height: clamp(320px, 45vw, 420px);
  margin: 0 auto;
}

.sp-palette-stage__floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -20%;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(29, 143, 232, 0.04) 40%, rgba(0, 0, 0, 0.8) 100%);
  filter: blur(2px);
  pointer-events: none;
}

.sp-palette-card {
  position: absolute;
  bottom: 0;
  width: clamp(110px, 18vw, 160px);
  border-radius: 20px 20px 12px 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.sp-palette-card--primary {
  left: 2%;
  height: 88%;
  background: #1d8fe8;
  transform: rotate(-7deg);
  z-index: 1;
}

.sp-palette-card--purple {
  left: 20%;
  height: 72%;
  background: #7c3aed;
  transform: rotate(-3deg);
  z-index: 2;
}

.sp-palette-card--light {
  left: 50%;
  transform: translateX(-50%);
  height: 58%;
  background: #ffffff;
  z-index: 5;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.sp-palette-card--surface {
  right: 20%;
  height: 70%;
  background: #f5f4f0;
  transform: rotate(3deg);
  z-index: 3;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sp-palette-card--dark {
  right: 2%;
  height: 88%;
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(7deg);
  z-index: 2;
}

.sp-palette-card__hex {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 8px;
  background: #1d8fe8;
  font-family: "Lexend Deca", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(29, 143, 232, 0.35);
}

.sp-palette-card__hex::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1d8fe8;
}

.sp-palette-card--light .sp-palette-card__hex {
  background: #fff;
  color: #0a0e1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sp-palette-card--light .sp-palette-card__hex::after {
  border-top-color: #fff;
}

.sp-palette-card--purple .sp-palette-card__hex {
  background: #7c3aed;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.sp-palette-card--purple .sp-palette-card__hex::after {
  border-top-color: #7c3aed;
}

.sp-palette-card--surface .sp-palette-card__hex {
  background: #f5f4f0;
  color: #0a0e1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sp-palette-card--surface .sp-palette-card__hex::after {
  border-top-color: #f5f4f0;
}

.sp-palette-card--dark .sp-palette-card__hex {
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sp-palette-card--dark .sp-palette-card__hex::after {
  border-top-color: #0a0e1a;
}

.sp-palette-card--primary::after,
.sp-palette-card--purple::after,
.sp-palette-card--light::after,
.sp-palette-card--surface::after,
.sp-palette-card--dark::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -40%;
  height: 50%;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.5;
  pointer-events: none;
}

.sp-palette-card--primary::after {
  background: rgba(29, 143, 232, 0.55);
}

.sp-palette-card--purple::after {
  background: rgba(124, 58, 237, 0.5);
}

.sp-palette-card--light::after {
  background: rgba(255, 255, 255, 0.35);
}

.sp-palette-card--surface::after {
  background: rgba(245, 244, 240, 0.4);
}

.sp-palette-card--dark::after {
  background: rgba(10, 14, 26, 0.8);
}

/* ── Behance-style "explore more" ── */
.sp-more-work {
  position: relative;
  background: #050508;
  padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-more-work::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 70vw);
  height: min(500px, 70vw);
  background: radial-gradient(circle, rgba(29, 143, 232, 0.2) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.sp-more-work__headline {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.sp-more-work__carousel {
  position: relative;
  z-index: 3;
  margin-top: clamp(24px, 4vw, 40px);
}

.sp-more-work__carousel-header {
  justify-content: space-between;
}

body.case-study--stellopay .sp-more-work .project-slide {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.case-study--stellopay .sp-more-work .project-slide__body h3,
body.case-study--stellopay .sp-more-work .project-slide__body p {
  color: rgba(255, 255, 255, 0.85);
}

body.case-study--stellopay .sp-more-work .project-slide__body p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .sp-compare-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cs-index {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cs-index__num {
    font-size: 2rem;
  }

  .sp-hero-showcase {
    padding: 24px var(--page-padding, 16px);
  }

  .sp-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .sp-type-section__grid {
    grid-template-columns: 1fr;
  }

  .sp-type-card:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sp-type-card {
    min-height: auto;
  }

  .sp-palette-card--primary {
    left: 0;
    height: 75%;
  }

  .sp-palette-card--purple {
    left: 18%;
    height: 62%;
  }

  .sp-palette-card--surface {
    right: 18%;
    height: 60%;
  }

  .sp-palette-card--dark {
    right: 0;
    height: 75%;
  }

  .sp-palette-card {
    width: clamp(90px, 22vw, 130px);
  }
}

@media (max-width: 480px) {
  .sp-mobile-grid {
    grid-template-columns: 1fr;
  }
}
