/* ═══════════════════════════════════════════════════════════
   CASE STUDY PAGE — styles
   Uses design tokens from styles.css
   ═══════════════════════════════════════════════════════════ */

.case-study-page { background: #050708; }

/* ── HERO ────────────────────────────────────────────────── */
.cs-hero {
  position: relative;
  min-height: 820px;
  padding-top: 180px;
  padding-bottom: 110px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 42%, rgba(48, 147, 168, .14), transparent 30%);
}

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

.cs-pulse-ring {
  position: absolute;
  left: 68%;
  top: 38%;
  border-radius: 50%;
  border: 1px solid rgba(140, 243, 255, .12);
  transform: translate(-50%, -50%);
}
.ring-1 { width: 480px; height: 480px; animation: cs-pulse 4s ease-in-out infinite; }
.ring-2 { width: 340px; height: 340px; animation: cs-pulse 4s ease-in-out .7s infinite; border-style: dashed; }
.ring-3 { width: 200px; height: 200px; animation: cs-pulse 4s ease-in-out 1.4s infinite; border-color: rgba(140, 243, 255, .28); }

@keyframes cs-pulse {
  0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
}

/* Animated waveform in hero */
.cs-waveform {
  position: absolute;
  left: 63%;
  top: 36%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 5px;
  align-items: center;
  height: 60px;
}
.cs-waveform span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
  animation: cs-wave 1.2s ease-in-out infinite;
}
.cs-waveform span:nth-child(1)  { height: 12px; animation-delay: 0s; }
.cs-waveform span:nth-child(2)  { height: 28px; animation-delay: .07s; }
.cs-waveform span:nth-child(3)  { height: 44px; animation-delay: .14s; }
.cs-waveform span:nth-child(4)  { height: 22px; animation-delay: .21s; }
.cs-waveform span:nth-child(5)  { height: 54px; animation-delay: .28s; }
.cs-waveform span:nth-child(6)  { height: 18px; animation-delay: .35s; }
.cs-waveform span:nth-child(7)  { height: 40px; animation-delay: .42s; }
.cs-waveform span:nth-child(8)  { height: 30px; animation-delay: .49s; }
.cs-waveform span:nth-child(9)  { height: 50px; animation-delay: .56s; }
.cs-waveform span:nth-child(10) { height: 16px; animation-delay: .63s; }
.cs-waveform span:nth-child(11) { height: 36px; animation-delay: .7s; }
.cs-waveform span:nth-child(12) { height: 48px; animation-delay: .77s; }
.cs-waveform span:nth-child(13) { height: 20px; animation-delay: .84s; }
.cs-waveform span:nth-child(14) { height: 38px; animation-delay: .91s; }
.cs-waveform span:nth-child(15) { height: 14px; animation-delay: .98s; }

@keyframes cs-wave {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50%      { transform: scaleY(1.8); opacity: 1; }
}

.cs-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.cs-hero-breadcrumb a { color: #758689; text-decoration: none; }
.cs-hero-breadcrumb a:hover { color: var(--cyan); }
.cs-hero-breadcrumb i { color: #4d5d60; font-style: normal; }
.cs-hero-breadcrumb span { color: var(--cyan); }

.cs-hero h1 {
  font-size: clamp(62px, 7.4vw, 128px);
  line-height: .93;
  margin: 30px 0 0;
  max-width: 900px;
}

.cs-hero-intro {
  max-width: 640px;
  margin: 34px 0 0;
  color: #a6b4b6;
  font-size: 17px;
  line-height: 1.8;
}

.cs-hero-meta {
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-meta-item {
  padding: 22px 38px 22px 0;
  border-right: 1px solid var(--line);
  min-width: 200px;
}
.cs-meta-item:last-child { border-right: 0; }
.cs-meta-item small {
  display: block;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.cs-meta-item strong {
  font: 500 16px var(--display);
  color: #dff6f8;
  letter-spacing: -.02em;
}

/* ── SECTIONS (shared) ───────────────────────────────────── */
.cs-section {
  padding-top: 130px;
  padding-bottom: 130px;
  border-top: 1px solid var(--line);
}
.cs-section h2 {
  font-size: clamp(52px, 5.6vw, 96px);
  line-height: .96;
  margin-top: 46px;
}

/* ── PROBLEM ─────────────────────────────────────────────── */
.cs-split {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 55px;
  margin-top: 0;
}
.cs-split-copy p {
  max-width: 550px;
  margin-top: 32px;
  color: #99a7a9;
  font-size: 16px;
  line-height: 1.8;
}

.cs-pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-self: center;
}
.cs-pain-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(11, 19, 22, .6);
  transition: border-color .35s, box-shadow .35s;
}
.cs-pain-grid article:hover {
  border-color: rgba(140, 243, 255, .3);
  box-shadow: 0 0 40px rgba(140, 243, 255, .06);
}
.cs-pain-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}
.cs-pain-grid h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.cs-pain-grid p {
  color: #89989a;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

/* ── SOLUTION ────────────────────────────────────────────── */
.cs-solution { background: #080b0c; }
.cs-solution-intro {
  max-width: 820px;
}
.cs-solution-intro p {
  max-width: 740px;
  margin-top: 30px;
  color: #99a7a9;
  font-size: 16px;
  line-height: 1.8;
}

.cs-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-capability {
  padding: 30px 28px 28px 0;
  border-right: 1px solid var(--line);
  min-height: 300px;
  position: relative;
  transition: background .35s;
}
.cs-capability:hover {
  background: linear-gradient(145deg, rgba(58, 158, 181, .08), transparent);
}
.cs-capability + .cs-capability { padding-left: 28px; }
.cs-capability:last-child { border-right: 0; }
.cs-cap-number {
  font: 13px var(--display);
  color: var(--cyan);
  margin-bottom: 40px;
}
.cs-capability h3 {
  font-size: 24px;
  margin-bottom: 14px;
}
.cs-capability p {
  color: #89989a;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* ── ARCHITECTURE ────────────────────────────────────────── */
.cs-arch { background: #071013; }
.cs-arch-desc {
  max-width: 680px;
  margin-top: 30px;
  color: #99a7a9;
  font-size: 16px;
  line-height: 1.8;
}

.cs-arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 70px;
}
.cs-arch-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(11, 19, 23, .85), rgba(8, 11, 12, .6));
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s, transform .4s;
}
.cs-arch-card:hover {
  border-color: rgba(140, 243, 255, .35);
  transform: translateY(-4px);
}

.cs-arch-visual {
  position: relative;
  height: 140px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.cs-arch-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(140, 243, 255, .2);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.cs-arch-visual span {
  position: relative;
  z-index: 1;
  font: 600 28px var(--display);
  color: #d4fcff;
  letter-spacing: 3px;
}

.cs-arch-card small {
  display: block;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cs-arch-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.cs-arch-card p {
  color: #89989a;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.cs-arch-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.cs-arch-specs span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  color: #a8bfc1;
  font-size: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ── PROCESS / TIMELINE ──────────────────────────────────── */
.cs-process { background: #080b0c; }
.cs-process-intro {
  max-width: 640px;
  margin-top: 30px;
  color: #99a7a9;
  font-size: 16px;
  line-height: 1.8;
}

.cs-timeline {
  position: relative;
  margin-top: 80px;
  padding-left: 60px;
}
.cs-timeline-line {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.cs-timeline-line span {
  display: block;
  width: 1px;
  height: 0%;
  background: var(--cyan);
  transition: height 2s ease;
}

.cs-timeline-step {
  position: relative;
  padding-bottom: 60px;
}
.cs-timeline-step:last-child { padding-bottom: 0; }

.cs-step-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(140, 243, 255, .45);
  background: #0a1417;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  box-shadow: 0 0 28px rgba(140, 243, 255, .1);
}
.cs-step-marker span {
  transform: rotate(-45deg);
  font: 12px var(--display);
  color: var(--cyan);
}

.cs-step-content small {
  display: block;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cs-step-content h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.cs-step-content p {
  max-width: 650px;
  color: #93a0a2;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

/* ── RESULTS ─────────────────────────────────────────────── */
.cs-results { background: #071013; }
.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-metric {
  padding: 35px 28px 30px 0;
  border-right: 1px solid var(--line);
  min-height: 260px;
  transition: background .35s;
}
.cs-metric:hover {
  background: linear-gradient(145deg, rgba(58, 158, 181, .08), transparent);
}
.cs-metric + .cs-metric { padding-left: 28px; }
.cs-metric:last-child { border-right: 0; }
.cs-metric strong {
  display: block;
  font: 64px var(--display);
  letter-spacing: -5px;
  color: #e6feff;
}
.cs-metric strong span {
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: 0;
}
.cs-metric h3 {
  font-size: 20px;
  margin: 18px 0 10px;
}
.cs-metric p {
  color: #89989a;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}


/* ── WHY ZEONE ───────────────────────────────────────────── */
.cs-why-zeone { background: #071013; }
.cs-why-layout {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 55px;
  margin-top: 0;
}
.cs-why-layout h2 {
  margin-top: 46px;
}
.cs-why-layout > div:first-child p {
  max-width: 550px;
  margin-top: 30px;
  color: #99a7a9;
  font-size: 16px;
  line-height: 1.8;
}

.cs-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-self: center;
}
.cs-trust-grid article {
  padding: 25px;
  border: 1px solid var(--line);
  background: rgba(11, 19, 22, .5);
  min-height: 180px;
  transition: border-color .35s;
}
.cs-trust-grid article:hover {
  border-color: rgba(140, 243, 255, .3);
}
.cs-trust-grid span {
  font: 13px var(--display);
  color: var(--cyan);
}
.cs-trust-grid h3 {
  font-size: 19px;
  margin: 24px 0 10px;
}
.cs-trust-grid p {
  color: #89989a;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cs-cta {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #071013, #050708);
}
.cs-cta-content {
  max-width: 700px;
}
.cs-cta h2 {
  font-size: clamp(55px, 6vw, 100px);
  line-height: .94;
  margin: 40px 0 24px;
}
.cs-cta p {
  max-width: 520px;
  color: #a0afb1;
  font-size: 17px;
  line-height: 1.7;
}
.cs-cta-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 44px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cs-hero { min-height: 700px; padding-top: 160px; padding-bottom: 80px; }
  .cs-hero h1 { font-size: clamp(50px, 12vw, 90px); }

  .cs-hero-meta { flex-direction: column; }
  .cs-meta-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; min-width: 0; }
  .cs-meta-item:last-child { border-bottom: 0; }

  .cs-waveform { left: 50%; top: 75%; }
  .cs-pulse-ring { left: 50%; top: 70%; }

  .cs-section { padding-top: 90px; padding-bottom: 90px; }

  .cs-split,
  .cs-why-layout { display: block; }
  .cs-pain-grid { margin-top: 40px; }
  .cs-trust-grid { margin-top: 40px; }

  .cs-capabilities { grid-template-columns: 1fr 1fr; }
  .cs-capability { min-height: 0; border-bottom: 1px solid var(--line); padding: 24px 22px 24px 0; }
  .cs-capability:nth-child(2n) { border-right: 0; }

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

  .cs-metrics-grid { grid-template-columns: 1fr 1fr; }
  .cs-metric { min-height: 0; border-bottom: 1px solid var(--line); }
  .cs-metric:nth-child(2n) { border-right: 0; }

  .cs-timeline { padding-left: 50px; }
}

@media (max-width: 520px) {
  .cs-hero { min-height: 620px; padding-top: 140px; }
  .cs-hero h1 { font-size: 52px; }
  .cs-hero-intro { font-size: 15px; }

  .cs-pain-grid,
  .cs-capabilities,
  .cs-arch-grid,
  .cs-metrics-grid,
  .cs-trust-grid { grid-template-columns: 1fr; }

  .cs-capability,
  .cs-arch-card,
  .cs-metric,
  .cs-trust-grid article {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    padding-left: 0 !important;
  }

  .cs-capability { min-height: 0; }
  .cs-metric { min-height: 0; }

  .cs-cta h2 { font-size: 48px; }
  .cs-cta-actions { flex-direction: column; align-items: flex-start; gap: 16px; }

  .cs-timeline { padding-left: 46px; }
  .cs-step-marker { left: -46px; width: 30px; height: 30px; }
  .cs-step-content h3 { font-size: 22px; }
}
