/* ================================================
   ORKA GROWTH â CASE STUDY (Documentary Style)
   Raw. Authentic. Story-first.
   ================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --black: #050505;
  --dark: #0a0a0a;
  --dark-2: #121212;
  --dark-3: #1c1c21;

  --panel-bg: rgba(255, 255, 255, 0.03);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-shine: rgba(255, 255, 255, 0.12);

  --gray-100: #e5e5e5;
  --gray-200: #d4d4d4;
  --gray-300: #a3a3a3;
  --gray-400: #737373;
  --gray-500: #525252;
  --gray-600: #404040;

  --white: #ffffff;

  /* Standard Orka Blue Brand */
  --brand-primary: #3b82f6;
  --brand-glow: #2563eb;
  --brand-accent: #60a5fa;

  --blue: #3b82f6;
  /* Keep for legacy reference, but prefer brand-* */
  --blue-glow: rgba(59, 130, 246, 0.4);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --red: #ef4444;
  --green: #22c55e;
  --blue-light: #93c5fd;
  --gray-bg: #f8f8f8;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 720px;
  --container-wide: 1200px;
  /* Slight increase for modern feel */
  --section-py: 100px;
  --radius: 20px;
  --transition: .4s cubic-bezier(.22, 1, .36, 1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -3px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.3);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-200);
  background: var(--black);
  line-height: 1.7;
  font-size: 16px;
  /* slightly smaller base for denser, tech feel */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

strong {
  font-weight: 700
}

em {
  font-style: italic
}

.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px
}

.story-container {
  max-width: var(--container)
}

.text-blue {
  color: var(--blue)
}

.text-nowrap {
  white-space: nowrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  /* Slightly squarer than pill for modern tech feel */
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 4px 25px rgba(59, 130, 246, 0.6), 0 0 0 8px rgba(59, 130, 246, 0), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 0 0 rgba(59, 130, 246, 0), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--xl {
  padding: 18px 40px;
  font-size: 1.125rem;
  font-weight: 700;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  transition: var(--transition);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide)
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff
}

.navbar__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%
}

.navbar__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar__cta {
  white-space: nowrap
}

/* ===== PROGRESS BAR ===== */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: var(--blue);
  width: 0%;
  box-shadow: 0 0 10px var(--blue-glow);
  transition: width 0.1s ease-out;
}

/* ===== CHAPTER INDICATOR ===== */
.chapter-indicator {
  position: fixed;
  top: 100px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .4s ease, transform .4s ease;
}

.chapter-indicator.visible {
  opacity: 1;
  transform: translateX(0)
}

.chapter-indicator__line {
  width: 2px;
  height: 40px;
  background: var(--blue);
}

.chapter-indicator__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-400);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

@media(max-width:1200px) {
  .chapter-indicator {
    display: none
  }
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ===== STORY SECTIONS ===== */
.story-section {
  padding: var(--section-py) 0;
  position: relative;
}

.story-section--dark {
  background: var(--dark);
  color: #fff;
}

.story-section--dark h2 {
  color: #fff
}

.story-section--dark p {
  color: var(--gray-300)
}

.story-section--dark strong {
  color: #fff
}

.story-section--cta {
  background: var(--dark);
  color: #fff;
  padding: 100px 0 120px;
  overflow: hidden;
}

/* ===== STORY MARKERS (timeline dots) ===== */
.story-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.story-marker__dot {
  width: 10px;
  height: 10px;
  background: var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
}

.story-marker__dot--blue {
  background: var(--blue)
}

.story-marker__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ===== STORY BLOCKS ===== */
.story-block {
  margin-bottom: 40px
}

.story-block--centered {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mb-60 {
  margin-bottom: 60px !important;
}

.story-block h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 20px;
}

.story-block p {
  color: var(--gray-600);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.story-block p:last-child {
  margin-bottom: 0
}

.story-callout {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--black) !important;
  border-left: 4px solid var(--blue);
  padding: 12px 0 12px 20px;
  margin-top: 8px;
}

.story-section--dark .story-callout {
  color: #fff !important
}

.story-highlight {
  background: rgba(37, 99, 235, .06);
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--black) !important;
}

.story-section--dark .story-highlight {
  background: rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .25);
  color: #fff !important;
}

/* ===== HERO ===== */
.hero {
  background-color: #050505 !important;
  background-image: none !important;
  color: #fff;
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Additional isolation for the landing hero to block body gradient */
header#hero.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #050505;
  z-index: -1;
}

/* Solar Interactive Grid */
.glow-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 80px 80px;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.25) 1px, transparent 1px);
  mask-image: radial-gradient(400px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  transition: opacity 0.3s;
}

.hero__glow {
  display: none;
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 800px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.15), transparent);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

/* Ambient center glow behind the headline for depth */
.hero__container {
  position: relative;
  z-index: 1;
}

.hero__container::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  pointer-events: none;
}

/* Trust bar below CTAs */
.hero__trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.hero__trust-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.hero__trust-bar strong {
  color: var(--gray-200);
  font-weight: 600;
}

.hero__container {
  max-width: var(--container-wide) !important;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.hero__headline-sub {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: #cbd5e1;
  font-weight: 500;
  display: block;
  margin-top: 12px;
  background: none;
  -webkit-text-fill-color: initial;
  line-height: 1.4;
  letter-spacing: normal;
}

.hero__headline .text-blue {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Text shadow for glow effect */
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.hero__sub {
  font-size: 1.25rem;
  color: var(--gray-300);
  line-height: 1.6;
  margin: 0 auto 40px;
  max-width: 680px;
  font-weight: 400;
}

.logo-cloud {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
}

.logo-cloud span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-cloud strong {
  display: inline-block;
  margin: 0 24px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gray-500);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.logo-cloud strong:hover {
  color: var(--white);
  opacity: 1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.hero__portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop watermark */
  transform: scale(1.15);
  object-position: center bottom;
}

.hero__portrait-info {
  margin-top: 20px;
  text-align: right;
}

.hero__portrait-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.hero__portrait-info span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

@media(max-width: 991px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__stats {
    margin: 40px auto 0;
  }

  .hero__portrait-info {
    text-align: center;
  }

  .hero__portrait-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
}



/* ===== RAW LIST (pain points) ===== */
.raw-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.raw-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.raw-list__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.5
}

.raw-list__item p {
  color: var(--gray-600);
  margin: 0;
  font-size: 1rem
}

.raw-list__item strong {
  color: var(--black)
}

/* ===== PROOF SCREENSHOTS ===== */
.proof-screenshot {
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proof-screenshot__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.proof-screenshot__badge {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  color: var(--blue);
  background: rgba(37, 99, 235, .08);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(37, 99, 235, .15);
}

.story-section--dark .proof-screenshot__badge {
  background: rgba(37, 99, 235, .15);
  border-color: rgba(37, 99, 235, .3);
  color: var(--blue-light);
}

.proof-screenshot__note {
  font-size: .78rem;
  color: var(--gray-400);
  font-style: italic;
}

.proof-screenshot__img {
  border-radius: var(--radius);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, .12);
  border: 1px solid rgba(0, 0, 0, .06);
}

/* URGENCY */
.dynamic-month,
.dynamic-month-full {
  color: var(--blue);
  font-weight: 700;
}

.cta-block__lead .dynamic-month {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.proof-screenshot__img--phone {
  max-width: 360px;
}

.proof-screenshot__img--wide {
  width: 100%;
}

.story-section--dark .proof-screenshot__img {
  border-color: rgba(255, 255, 255, .08);
}

/* ===== CHAT QUOTES ===== */
.chat-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 40px;
}

.chat-quote {
  padding: 14px 20px;
  background: var(--gray-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--gray-300);
}

.story-section--dark .chat-quote {
  background: rgba(255, 255, 255, .04);
  border-left-color: var(--gray-600);
}

.chat-quote--us {
  border-left-color: var(--blue) !important;
  background: rgba(37, 99, 235, .04);
}

.story-section--dark .chat-quote--us {
  background: rgba(37, 99, 235, .1);
}

.chat-quote--highlight {
  border-left-color: var(--green) !important;
  background: rgba(34, 197, 94, .04);
}

.story-section--dark .chat-quote--highlight {
  background: rgba(34, 197, 94, .08);
}

.chat-quote__from {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  display: block;
  margin-bottom: 4px;
}

.chat-quote p {
  font-size: 1.05rem;
  color: var(--black);
  margin: 0;
  font-style: italic;
}

.story-section--dark .chat-quote p {
  color: var(--gray-200)
}

/* ===== SYSTEM FLOW ===== */
.system-flow {
  margin: 32px 0 40px;
}

.system-flow__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.system-flow__num {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--blue-glow);
}

.system-flow__content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.system-flow__content p {
  color: var(--gray-500);
  font-size: .95rem;
  margin: 0;
}

.system-flow__connector {
  width: 2px;
  height: 28px;
  background: var(--gray-200);
  margin-left: 19px;
}

/* ===== BIG NUMBER ===== */
.big-number {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 32px;
}

.big-number__value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 9rem);
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
}

.big-number__context {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gray-400);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== STATS CALLOUT ===== */
.stats-callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0 48px;
}

.stats-callout__item {
  text-align: center;
  padding: 20px 12px;
  background: var(--dark-2);
}

.stats-callout__item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-light);
  margin-bottom: 4px;
}

.stats-callout__item span {
  font-size: .75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== EARNED CTA (mid-page) ===== */
/* ===== EARNED CTA (mid-page) ===== */
.earned-cta {
  text-align: center;
  margin: 60px 0;
  padding: 40px;
  background: var(--gray-bg);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.story-section--dark .earned-cta {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
}

.earned-cta p {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--black);
}

.story-section--dark .earned-cta p {
  color: #fff;
}

/* ===== LANDING PAGE SPECIFIC ===== */

/* Hero Landing Modifications */
.hero--landing {
  text-align: center;
  padding-top: 160px;
  background: radial-gradient(circle at center top, #1a1a1e 0%, #0a0a0a 100%);
}

.hero--landing .hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--landing .hero__sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.35rem;
  color: var(--gray-300);
}

.hero--landing .hero__headline {
  font-size: clamp(3rem, 7vw, 5rem);
}

/* Logo Cloud */
.logo-cloud {
  margin-top: 80px;
  opacity: 0.5;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.logo-cloud strong {
  font-size: 1.1rem;
  color: var(--gray-400);
}

/* Problem / Solution */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.ps-card {
  padding: 40px;
  border-radius: 20px;
  height: 100%;
}

.ps-card--problem {
  background: var(--gray-bg);
  border: 1px solid var(--gray-200);
}

.ps-card--solution {
  background: var(--dark);
  color: white;
  border: 1px solid var(--gray-600);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ps-card--solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

.ps-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-card ul {
  padding: 0;
}

.ps-card ul li {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.5;
}

.ps-card--problem ul li {
  color: var(--gray-600);
}

.ps-card--solution ul li {
  color: var(--gray-200);
}

.ps-card--problem ul li::before {
  content: '\2717';
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.ps-card--solution ul li::before {
  content: '\2713';
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: 800;
}

/* Case Study Grid */
.grid-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}



/* Mechanism Icons */
/* Mechanism Flow (Connected Pipeline) */
.mech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 80px;
  padding: 0 40px;
}

/* Connecting Line */
.mech-grid::before {
  content: '\2713';
  position: absolute;
  top: 30px;
  left: 80px;
  right: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 50%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 0;
}

.mech-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
  background: transparent;
  border: none;
}

.mech-item:hover {
  transform: translateY(-5px);
}

.mech-icon {
  width: 80px;
  height: 80px;
  background: var(--dark);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  box-shadow: 0 0 0 8px var(--dark);
  /* Mask the line behind */
  transition: all 0.3s ease;
}

.mech-item:hover .mech-icon {
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue-glow);
}

.mech-icon {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.mech-item h3 {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.mech-item p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive specific to LP */
@media(max-width: 900px) {
  .problem-solution {
    grid-template-columns: 1fr;
  }

  .mech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .mech-grid {
    grid-template-columns: 1fr;
  }

  .hero--landing .hero__headline {
    font-size: 2.5rem;
  }

  .logo-cloud {
    flex-direction: column;
    gap: 16px;
  }
}



.earned-cta p {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.earned-cta strong {
  color: #fff
}

/* ===== TRANSFORMATION COMPARE ===== */
.transformation-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.transformation-compare__col {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.story-section--dark .transformation-compare__col {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.transformation-compare__header {
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.transformation-compare__header--before {
  background: rgba(239, 68, 68, .12);
  color: var(--red);
}

.transformation-compare__header--after {
  background: rgba(34, 197, 94, .12);
  color: var(--green);
}

.transformation-compare__col ul {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.transformation-compare__col li {
  padding: 14px 20px;
  font-size: .95rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  flex: 1;
  display: flex;
  align-items: center;
}

.story-section--dark .transformation-compare__col li {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  color: var(--gray-400);
}

.transformation-compare__col:first-child li {
  color: var(--gray-500);
}

.story-section--dark .transformation-compare__col:first-child li {
  color: #ff9999;
  /* Reddish for 'Old Hustle' on dark */
}

.transformation-compare__col li:last-child {
  border-bottom: none
}

.transformation-compare__col:last-child li {
  color: var(--green)
}

.story-section--dark .transformation-compare__col:last-child li {
  color: var(--green);
}

/* ===== TESTIMONIAL (Centered Card) ===== */
.testimonial {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  text-align: center;
}

.testimonial__quote p {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 40px;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.testimonial__portrait-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue);
}

.testimonial__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  object-position: center bottom;
}

.testimonial__details strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue-light);
  margin-bottom: 4px;
}

.testimonial__details span {
  font-size: 0.9rem;
  color: var(--gray-400);
}

@media(max-width: 768px) {
  .testimonial {
    padding: 40px 24px;
  }
}

/* ===== CTA BLOCK ===== */
.cta-glow {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, .15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block {
  text-align: center
}

.cta-block h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-block__lead {
  font-size: 1.15rem;
  color: var(--gray-300);
  margin-bottom: 32px;
}

.cta-block__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px auto;
  max-width: 460px;
  text-align: left;
}

.cta-block__point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--gray-300);
}

.cta-main-btn {
  margin-bottom: 20px;
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px var(--blue-glow)
  }

  50% {
    box-shadow: 0 8px 48px rgba(37, 99, 235, .45)
  }
}

.cta-block__footer {
  font-size: .88rem;
  color: var(--gray-500);
  font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
  margin: 24px 0 40px
}

.faq-item {
  border-bottom: 1px solid var(--gray-200)
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-200)
}

.story-section--dark .faq-item,
.story-section--dark .faq-item:first-child {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--black);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.story-section--dark .faq-item__q {
  color: #fff;
}

.faq-item__q:hover {
  color: var(--blue)
}

.story-section--dark .faq-item__q:hover {
  color: var(--blue-light);
}

.faq-chevron {
  transition: transform .3s ease;
  flex-shrink: 0
}

.faq-item__q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg)
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}

.faq-item__a.open {
  max-height: 300px;
  padding-bottom: 18px
}

.faq-item__a p {
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.7
}

.story-section--dark .faq-item__a p {
  color: var(--gray-300);
}

.faq-bottom {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-bg);
  overflow: visible;
}

.story-section--dark .faq-bottom {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-bottom p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gray-600);
}

.story-section--dark .faq-bottom p {
  color: var(--gray-300);
}

.faq-bottom .btn--outline {
  padding: 12px 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%
}

.footer__brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff
}

.footer__copy {
  font-size: .78rem
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(10, 10, 10, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  z-index: 99;
  transform: translateY(100%);
  transition: transform .4s ease;
  display: none;
}

.floating-cta.visible {
  transform: translateY(0)
}

.floating-cta .btn {
  width: 100%
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  :root {
    --section-py: 60px
  }

  body {
    font-size: 16px
  }

  .hero {
    padding: 120px 0 48px
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 40px auto 0;
    gap: 12px;
  }

  .hero__stat {
    padding: 16px 12px;
  }

  .hero__stat-num {
    font-size: 1.8rem;
  }

  .stats-callout {
    grid-template-columns: repeat(2, 1fr)
  }

  .transformation-compare {
    grid-template-columns: 1fr
  }

  .footer__inner {
    flex-direction: column;
    gap: 10px;
    text-align: center
  }

  .floating-cta {
    display: block
  }

  .proof-screenshot__img--phone {
    max-width: 280px
  }
}

@media(max-width:480px) {
  .hero__stats {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 40px auto 0;
  }

  .hero__stat {
    padding: 20px 16px;
  }

  .hero__stat-num {
    font-size: 2.2rem;
  }

  .big-number__value {
    font-size: 5rem
  }

  .navbar__name {
    display: none
  }

  .stats-callout__item strong {
    font-size: 1.2rem
  }
}

/* ===== LUXURY DESIGN POLISH (Critique Implementation) ===== */

/* 1. Spacing & Breathability */
:root {
  --section-py: 100px;
  /* Increased from 80px */
}

/* 2. Tactile Buttons (Ferrari Feel) */
.btn {
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* 3. Luxury Borders */
.story-section--dark .mech-item,
.story-section--dark .faq-item,
.ps-card--solution {
  border-color: rgba(255, 255, 255, 0.08);
  /* Thinner, consistent */
}

/* 4. Textures */
.story-section--dark {
  background: #050505;
  /* Rich Black */
  background-image: radial-gradient(circle at 50% 0%, #111 0%, #050505 60%);
}

/* ===== FOUNDERS SECTION (Consolidated) ===== */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  /* Reduced visually */
  justify-content: center;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.founder-card {
  text-align: center;
  max-width: 340px;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.founder-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.founder-card__img-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

/* Gold/Blue Ring Effect */
.founder-card__img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#050505, #050505) padding-box,
    linear-gradient(45deg, var(--blue), #ffffff 50%, var(--blue)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

.founder-card:hover .founder-card__img-wrapper {
  transform: scale(1.03);
}

.founder-card:hover .founder-card__img-wrapper::after {
  opacity: 1;
}

.founder-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease;
}

.founder-card:hover .founder-card__img {
  filter: grayscale(0%) contrast(1.05);
}

.founder-card__info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}

.founder-card__role {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 16px;
  font-weight: 600;
}

.founder-card__info p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}


/* ===== NETFLIX-STYLE HORIZONTAL SCROLL (Critique Implementation) ===== */

.case-study-slider-wrapper {
  position: relative;
  margin-top: 60px;
  /* Ensure overflow doesn't break page */
  overflow: visible;
}

.case-study-slider {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  padding: 20px 4px 60px 4px;
  /* Bottom padding for hover lift effect */

  /* Modern CSS Scroll Snap */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */

  /* Masking for smooth fade out */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.case-study-slider::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Card Sizing Logic for "3 at a time" */
.case-study-slider .case-card {
  flex: 0 0 350px;
  /* Fixed width base */
  scroll-snap-align: center;
  height: auto;
  /* Allow content to dictate height, but flex row keeps them equal */
}

/* Modern Fade Masks (Visual Cues) */
.slider-mask-left,
.slider-mask-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  /* Hidden by default until JS logic or hover? Keeping it subtle with mask-image above instead */
  transition: opacity 0.3s;
}

/* Glassmorphism Hints */
.slider-mask-right {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

@media(max-width: 1200px) {
  .case-study-slider .case-card {
    flex: 0 0 320px;
  }
}

@media(max-width: 768px) {
  .case-study-slider {
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
    mask-image: none;
    /* Let full bleed on mobile */
    -webkit-mask-image: none;
  }

  .case-study-slider .case-card {
    flex: 0 0 280px;
    /* Smaller cards on mobile */
    scroll-snap-align: start;
  }
}

/* ===== PREMIUM CASE STUDY CARDS ===== */
.case-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

.case-card__img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--gray-100);
  transition: transform 0.6s ease;
}

.case-card:hover .case-card__img {
  transform: scale(1.05);
}

.case-card__content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 12px;
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
  width: fit-content;
}

.case-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #1e293b;
}

.case-card__stat {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-card__stat {
  margin-top: auto;
  font-size: 0.95rem;
  color: #475569;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.case-card__stat strong {
  color: #0f172a;
  display: block;
  font-size: 1.1rem;
  margin-top: 4px;
}

/* ===== FOUNDERS RESPONSIVE ===== */
@media(max-width: 600px) {

  /* Only on small mobile */
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== CASE STUDY SCROLL ARROWS ===== */
.case-study-slider-wrapper::before,
.case-study-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: var(--blue);
  font-weight: 800;
  z-index: 10;
  pointer-events: none;
  opacity: 0.85;
  font-family: system-ui;
  font-size: 1.2rem;
}

.case-study-slider-wrapper::before {
  content: '\2190';
  left: -22px;
}

.case-study-slider-wrapper::after {
  content: '\2192';
  right: -22px;
}

@media(max-width: 768px) {

  .case-study-slider-wrapper::before,
  .case-study-slider-wrapper::after {
    display: none;
  }

  .case-study-slider .case-card {
    min-width: 280px;
  }
}

/* ===== CTA GLOW EFFECT ===== */
.story-section--cta .cta-block {
  position: relative;
  z-index: 1;
}

.story-section--cta .cta-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: ctaGlow 8s infinite alternate;
}

@keyframes ctaGlow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.cta-block__footer {
  font-size: .88rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 16px;
}

/* ===== RESTORED CASE STUDY HERO STYLES ===== */
@media(min-width: 992px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .hero__portrait-info {
    text-align: right;
  }
}

.hero__visual {
  position: relative;
  perspective: 1000px;
}

/* Ensure portrait wrapper has 3D context if needed */
.hero__portrait-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.hero__visual:hover .hero__portrait-wrapper {
  transform: rotateY(-5deg) rotateX(5deg);
}

/* ===== CASE STUDY PAGE OVERRIDES ===== */
body.case-study-page {
  background-color: var(--dark);
}

/* Alternating Backgrounds: White for default story sections */
body.case-study-page .story-section {
  background-color: #ffffff;
  color: var(--black);
}

/* Keep dark sections dark */
body.case-study-page .story-section--dark {
  background-color: var(--dark);
  color: #fff;
}

/* Reduce headline size for case studies */
body.case-study-page .hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Redesigned Hero Stats for Case Studies (Pop-up Card Style) */
body.case-study-page .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 50px;
}

body.case-study-page .hero__stat {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.case-study-page .hero__stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(59, 130, 246, 0.3);
}

body.case-study-page .hero__stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--blue);
  opacity: 0.8;
}

body.case-study-page .hero__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
  line-height: 1.1;
}

body.case-study-page .hero__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Mobile Tweak for Hero Stats & Layout */
@media(max-width: 768px) {
  body.case-study-page .hero__stats {
    grid-template-columns: 1fr;
    /* Stack vertically */
    margin-top: 40px;
    gap: 16px;
  }

  body.case-study-page .hero__visual {
    margin-top: 60px;
    /* Prevent overlap with stats */
    margin-bottom: 40px;
  }
}

/* Force Dark Theme for 'Your Turn' CTA Section */
body.case-study-page .story-section--cta {
  background-color: var(--dark);
  color: #fff;
}

body.case-study-page .cta-block__lead {
  color: var(--gray-300);
}

body.case-study-page .cta-block__point span {
  color: var(--gray-300);
  /* Ensure text is visible on dark bg */
}

/* Ensure 'Your Turn' Button is Brand Blue */
body.case-study-page .story-section--cta .cta-main-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

body.case-study-page .story-section--cta .cta-main-btn:hover {
  background: var(--blue-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Enhanced FAQ styling for Case Studies (World Class Redesign) */
body.case-study-page .faq-bottom {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(5, 5, 20, 1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

body.case-study-page .faq-bottom::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

body.case-study-page .faq-bottom p {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Force FAQ Button to be Premium Blue & Brighten on Hover */
body.case-study-page .faq-bottom .btn--outline {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.case-study-page .faq-bottom .btn--outline:hover {
  background: var(--blue-light);
  /* Lighter blue, not white/black */
  border-color: var(--blue-light);
  color: var(--dark);
  /* Or white? Let's try white text on light blue for max pop? No, dark text on light bg is safer contrast. Let's stick to simple brighten: */
  background: #3b82f6;
  /* Slightly lighter/brighter manually if var not perfect, or just use filter */
  filter: brightness(1.2);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* Mechanism Line Fix - Remove checkmark and make it a subtle line */
.mech-grid::before {
  content: '';
  /* Changed from \2713 to empty */
  position: absolute;
  top: 40px;
  /* Adjusted to center behind icons */
  left: 80px;
  right: 80px;
  height: 2px;
  /* Thinner line */
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0.1) 100%);
  /* Subtle blue gradient */
  z-index: 0;
}

/* Hero CTA Row - Add flex control */
.hero__cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

/* Mobile Hero Buttons - Stack on small screens */
@media(max-width: 600px) {
  .hero__cta-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero__cta-row .btn {
    width: 100%;
    /* Full width buttons on mobile */
  }

  .logo-cloud {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2x2 grid */
    gap: 20px;
    align-items: center;
    justify-items: center;
  }
}

/* Ensure Logo Cloud uses flex on desktop (override recent flex-wrap rule if needed or ensure it cascades correctly) */
@media(min-width: 601px) {
  .logo-cloud {
    display: flex;
    flex-wrap: wrap;
    /* Keep desktop flexible */
  }
}

/* Case Study Slider Container - ensure horizontal scroll */
.case-study-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 4px;
  /* Space for shadow/hover */
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.case-study-slider::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.case-card {
  flex: 0 0 320px;
  /* Fixed width cards */
  scroll-snap-align: start;
}

/* Slider Masks/Arrows */
.slider-mask-left,
.slider-mask-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slider-mask-left:hover,
.slider-mask-right:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.slider-mask-left {
  left: -24px;
}

.slider-mask-right {
  right: -24px;
}

/* Adjust for mobile slider arrows */
@media(max-width: 768px) {

  .slider-mask-left,
  .slider-mask-right {
    display: none;
    /* Hide arrows on mobile, rely on swipe */
  }
}


/* --- Logo Cloud Marquee --- */
.logo-cloud-wrapper {
  margin-top: 60px;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-cloud-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.logo-cloud-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-cloud-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.logo-cloud-marquee strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-600);
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: default;
}

.logo-cloud-marquee strong:hover {
  color: var(--white);
  opacity: 1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Scrolls half distance (one full set) */
}

/* --- Case Study Marquee --- */
.case-study-marquee-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* Full width breakout */
  position: relative;
  padding: 20px 0;
}

.case-study-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.case-study-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: case-scroll 60s linear infinite;
  /* Slower scroll for cards */
  padding-left: 40px;
  /* Initial offset so it doesn't look cut off */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Force GPU */
}

@keyframes case-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.case-study-track:hover {
  animation-play-state: paused;
}

.case-study-track {
  align-items: stretch;
}


/* --- Case Card Metadata --- */
.case-card {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  width: 360px;
  max-width: 360px;
  text-decoration: none;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.case-card img.case-card__img {
  height: 240px !important;
  width: 100% !important;
  object-fit: cover !important;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.case-card__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #ffffff;
}

.case-card__meta {
  padding: 0 32px 32px 32px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.case-card__meta strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #0f172a;
  display: block;
}

.case-card__meta span {
  font-size: 0.875rem;
  color: #64748b;
}

.case-card__title {
  min-height: 3.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
}

/* --- Big Number (Impact Section) Responsive Fix --- */
.big-number {
  text-align: center;
  margin: 40px 0;
}

.big-number__value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3rem, 15vw, 8rem);
  line-height: 1;
  color: var(--brand-primary);
  margin-bottom: 16px;
  letter-spacing: -0.05em;
  display: block;
}

.big-number__context {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================
   CASE STUDIES HUB
   ================================================ */

.cs-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

@media(max-width: 768px) {
  .cs-hub-grid { grid-template-columns: 1fr; }
}

.cs-hub-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.cs-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-glow);
}

.cs-hub-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.cs-hub-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cs-hub-card:hover .cs-hub-card__cover img {
  transform: scale(1.05);
}

.cs-hub-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cs-hub-card__tag {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.cs-hub-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 12px;
}

.cs-hub-card__result {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.cs-hub-card__result strong {
  color: var(--success);
}

.cs-hub-card__meta {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.cs-hub-card__meta strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--white);
}

.cs-hub-card__meta span {
  font-size: 0.85rem;
  color: var(--gray-400);
}