/* ── Case Study Pages — shared base styles ─────────────────────── */

:root {
  --cs-bg: #030B18;
  --cs-bg2: #060f1e;
  --cs-bg3: #0a1628;
  --cs-border: rgba(255,255,255,0.07);
  --cs-indigo: #6366f1;
  --cs-purple: #7c3aed;
  --primary: #0080ff;
}

.cs-page { background: var(--cs-bg); min-height: 100vh; overflow-x: hidden; color: #fff; font-family: 'Montserrat', sans-serif; }

/* Section helpers */
.cs-section { padding: 96px 0; }
.cs-section.alt { background: var(--cs-bg2); }
.cs-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.cs-inner-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }

/* Eyebrow label */
.cs-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cs-eyebrow .bar { width: 32px; height: 2px; background: var(--cs-indigo); flex-shrink: 0; }
.cs-eyebrow span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #818cf8; }

.cs-h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin: 0 0 16px; line-height: 1.15; }
.cs-lead { color: #94a3b8; font-size: 17px; line-height: 1.7; max-width: 640px; margin: 0 0 56px; }

/* Badge pill */
.cs-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 6px 16px; margin-bottom: 32px; font-size: 12px; font-weight: 600; color: #cbd5e1; letter-spacing: .04em; }
.cs-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }

/* Gradient text */
.cs-grad-text { background: linear-gradient(90deg, #818cf8, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Cards */
.cs-card { background: var(--cs-bg3); border: 1px solid var(--cs-border); border-radius: 20px; padding: 28px; transition: border-color .25s, transform .25s; }
.cs-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); }

/* 4-col grid */
.cs-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 3-col grid */
.cs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* 2-col grid */
.cs-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Step number */
.cs-step-num { font-size: 11px; font-weight: 700; font-family: monospace; color: #818cf8; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }

/* CTA Bar */
.cs-cta-bar { background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(124,58,237,.1)); border-top: 1px solid rgba(99,102,241,.2); border-bottom: 1px solid rgba(99,102,241,.2); padding: 56px 32px; text-align: center; }
.cs-cta-bar h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; margin: 0 0 24px; }
.cs-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--cs-indigo), var(--cs-purple)); color: #fff; font-weight: 700; padding: 14px 32px; border-radius: 10px; font-size: 15px; text-decoration: none; transition: opacity .2s, transform .2s; }
.cs-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.cs-btn-outline { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.15); color: #cbd5e1; font-weight: 600; padding: 14px 32px; border-radius: 10px; font-size: 15px; text-decoration: none; transition: background .2s, border-color .2s; }
.cs-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,.3); }

/* FAQ accordion */
.cs-faq { display: flex; flex-direction: column; gap: 10px; }
.cs-faq-item { background: var(--cs-bg3); border: 1px solid var(--cs-border); border-radius: 16px; overflow: hidden; }
.cs-faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; font-weight: 600; font-size: 14px; font-family: inherit; }
.cs-faq-q:hover { color: #a5b4fc; }
.cs-faq-arrow { font-size: 20px; color: #64748b; transition: transform .25s; flex-shrink: 0; }
.cs-faq-item.open .cs-faq-arrow { transform: rotate(90deg); }
.cs-faq-a { display: none; padding: 0 24px 20px; color: #94a3b8; font-size: 14px; line-height: 1.7; border-top: 1px solid var(--cs-border); padding-top: 16px; }
.cs-faq-item.open .cs-faq-a { display: block; }

/* Tech tag */
.cs-tech-tag { background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); color: #a5b4fc; padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; }

/* Marquee */
@keyframes marqueeRTL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cs-marquee { animation: marqueeRTL 32s linear infinite; display: flex; gap: 20px; width: max-content; }
.cs-marquee:hover { animation-play-state: paused; }
.cs-marquee-wrap { overflow: hidden; position: relative; }
.cs-marquee-fade-l { position: absolute; left: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to right, var(--cs-bg2), transparent); z-index: 2; pointer-events: none; }
.cs-marquee-fade-r { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to left, var(--cs-bg2), transparent); z-index: 2; pointer-events: none; }
.cs-tech-card { display: flex; flex-direction: column; align-items: center; gap: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 24px 28px; min-width: 120px; transition: border-color .25s; cursor: default; }
.cs-tech-card:hover { border-color: rgba(99,102,241,.4); }
.cs-tech-card img { width: 40px; height: 40px; object-fit: contain; }
.cs-tech-card span { font-size: 13px; color: #cbd5e1; font-weight: 500; white-space: nowrap; }

/* Testimonial */
.cs-testimonial { background: var(--cs-bg3); border: 1px solid var(--cs-border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; height: 100%; }
.cs-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.cs-star { color: #fbbf24; font-size: 14px; }
.cs-quote { color: #cbd5e1; font-size: 14px; line-height: 1.7; flex: 1; margin-bottom: 20px; }
.cs-author { font-weight: 700; font-size: 14px; color: #fff; }
.cs-role { font-size: 12px; color: #64748b; }

/* Responsive */
@media (max-width: 1024px) {
  .cs-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cs-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cs-section { padding: 64px 0; }
  .cs-inner, .cs-inner-narrow { padding: 0 20px; }
  .cs-grid-4, .cs-grid-3, .cs-grid-2 { grid-template-columns: 1fr; }
  .cs-h2 { font-size: 1.6rem; }
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
