/* ═══════════════════════════════════════
       TOKENS & RESET
    ═══════════════════════════════════════ */
:root {
  --primary: #00b4d8;
  --primary-dark: #0077b6;
  --accent: #f72585;
  --green: #28c840;
  --orange: #ff9f0a;
  --purple: #af52de;
  --yellow: #fbbf24;
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #1e2530;
  --text: #e6edf3;
  --muted: #8b949e;
  --white: #ffffff;
  --border: rgba(0, 180, 216, 0.14);
  --border-s: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(135deg, #00b4d8, #0077b6);
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --ease: cubic-bezier(.25, .46, .45, .94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fb);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fd);
}

a {
  color: var(--primary);
  text-decoration: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-block;
  background: rgba(0, 180, 216, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* reveal */
.r {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.r.in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: .07s
}

.d2 {
  transition-delay: .14s
}

.d3 {
  transition-delay: .21s
}

.d4 {
  transition-delay: .28s
}

.d5 {
  transition-delay: .35s
}

.d6 {
  transition-delay: .42s
}

/* ═══════════════════════════════════════
       BREADCRUMB
    ═══════════════════════════════════════ */
.breadcrumb {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}

.bc-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-inner a {
  color: var(--muted);
  transition: color .2s;
}

.bc-inner a:hover {
  color: var(--primary);
}

.bc-inner i.fa-chevron-right {
  font-size: 9px;
}

.bc-inner span {
  color: var(--primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════
       HERO
    ═══════════════════════════════════════ */
.cs-hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-glow-1 {
  position: absolute;
  width: 560px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 180, 216, 0.1), transparent 70%);
  top: -120px;
  right: -80px;
  filter: blur(80px);
  pointer-events: none;
  animation: drift 11s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.07), transparent 70%);
  bottom: -60px;
  left: 5%;
  filter: blur(60px);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite reverse;
}

@keyframes drift {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-26px)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeUp .5s ease both;
}

.hero-line {
  width: 40px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.hero-h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 18px;
  animation: fadeUp .5s ease .1s both;
}

.hero-h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 40px;
  animation: fadeUp .5s ease .18s both;
}

/* hero stat row */
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  animation: fadeUp .5s ease .26s both;
}

.hs {
  padding: 0 32px 0 0;
}

.hs:first-child {
  padding-left: 0;
}

.hs+.hs {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.hs-num {
  font-family: var(--fd);
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hs-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
       FILTER BAR
    ═══════════════════════════════════════ */
.filter-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.fb-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fcat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--fb);
}

.fcat i {
  font-size: 12px;
}

.fcat:hover {
  color: var(--text);
}

.fcat.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ═══════════════════════════════════════
       FEATURED CASE STUDY
    ═══════════════════════════════════════ */
.featured-sec {
  padding: 72px 0 0;
  background: var(--dark);
}

.featured-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  z-index: 1;
}

.featured-card:hover {
  border-color: rgba(0, 180, 216, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* visual panel */
.fc-visual {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fc-visual-bg {
  position: absolute;
  inset: 0;
  transition: transform .5s var(--ease);
}

.featured-card:hover .fc-visual-bg {
  transform: scale(1.04);
}

/* floating icon grid inside visual */
.icon-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 14px;
}

.ig-cell {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform .3s;
}

.ig-cell:hover {
  transform: scale(1.1) rotate(-3deg);
}

.ig-cell.empty {
  background: rgba(13, 17, 23, 0.3);
  border-style: dashed;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--grad);
  color: #fff;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
}

/* info panel */
.fc-info {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fc-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.fc-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.fc-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 24px;
}

.fc-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.fc-hl {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.fc-hl i {
  color: var(--primary);
  font-size: 11px;
  margin-top: 4px;
  flex-shrink: 0;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.fc-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-s);
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}

.fc-result-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fcr {
  background: var(--dark-3);
  border: 1px solid var(--border-s);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.fcr-num {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 3px;
}

.fcr-lbl {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════
       MAIN CASE STUDY GRID
    ═══════════════════════════════════════ */
.cs-grid-sec {
  padding: 64px 0 96px;
  background: var(--dark);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* case study card */
.cs-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .35s var(--ease);
  position: relative;
  cursor: default;
}

.cs-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
}

.cs-card.hidden {
  display: none;
}

/* card visual strip */
.cs-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-visual-bg {
  position: absolute;
  inset: 0;
  transition: transform .5s var(--ease);
}

.cs-card:hover .cs-visual-bg {
  transform: scale(1.06);
}

.cs-visual-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(13, 17, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform .3s;
}

.cs-card:hover .cs-visual-icon {
  transform: scale(1.1) rotate(-4deg);
}

.cs-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  z-index: 2;
}

.cs-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
}

/* card body */
.cs-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cs-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 16px;
}

/* challenge / solution mini pills */
.cs-pillrow {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.cs-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.cs-pill i {
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 3px;
}

.cs-pill.challenge i {
  color: #ff9f0a;
}

.cs-pill.solution i {
  color: var(--green);
}

/* tags */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.cs-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-s);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--muted);
}

/* card footer */
.cs-footer {
  border-top: 1px solid var(--border-s);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-industry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.cs-industry i {
  color: var(--primary);
  font-size: 10px;
}

.cs-expand-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 180, 216, 0.25);
  background: none;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--fb);
}

.cs-expand-btn:hover {
  background: rgba(0, 180, 216, 0.1);
  border-color: var(--primary);
}

.cs-expand-btn i {
  font-size: 10px;
  transition: transform .2s;
}

.cs-card.expanded .cs-expand-btn i {
  transform: rotate(180deg);
}

/* expanded detail panel */
.cs-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.cs-detail-inner {
  padding: 0 22px 20px;
  border-top: 1px solid var(--border-s);
}

.cs-detail-inner h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-detail-inner h4 i {
  color: var(--primary);
  font-size: 11px;
}

.cs-detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
  line-height: 1.6;
}

.cs-detail-list li i {
  color: var(--primary);
  font-size: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

.cs-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.cs-metric {
  background: var(--dark-3);
  border: 1px solid var(--border-s);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.cs-metric-val {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 3px;
}

.cs-metric-lbl {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════
       RESULTS BAND
    ═══════════════════════════════════════ */
.results-band {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}

.marquee-wrap {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-wrap:hover {
  animation-play-state: paused;
}

.mi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.mi-num {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mi-lbl {
  font-size: 12px;
  color: var(--muted);
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ═══════════════════════════════════════
       TECH ECOSYSTEM
    ═══════════════════════════════════════ */
.tech-sec {
  padding: 88px 0;
  background: var(--dark);
}

.tech-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 52px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tech-cat {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  transition: all .3s;
}

.tech-cat:hover {
  border-color: rgba(0, 180, 216, 0.28);
  transform: translateY(-3px);
}

.tc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tc-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}

.tc-label {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.tc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-s);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
  transition: color .2s;
}

.tech-cat:hover .tc-pill {
  color: var(--text);
}

/* ═══════════════════════════════════════
       CTA
    ═══════════════════════════════════════ */
.cs-cta {
  padding: 80px 0;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cs-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 180, 216, 0.06), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.cta-inner h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-inner p {
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.32);
  transition: all .3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.5);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(0, 180, 216, 0.35);
  cursor: pointer;
  transition: all .3s;
}

.btn-outline:hover {
  background: rgba(0, 180, 216, 0.08);
  border-color: var(--primary);
}

/* ═══════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .fc-visual {
    min-height: 240px;
  }

  .tech-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }

  .hs+.hs {
    border-left: none;
    padding-left: 0;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fc-result-row {
    grid-template-columns: 1fr 1fr;
  }

  .cs-metrics-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .fc-info {
    padding: 28px 22px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}