/* Use Cases Page Dedicated Styles */

.use-cases-hero {
  padding: 180px 0 100px;
  background-color: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  text-align: left;
}

.hero-copy-side {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.use-cases-hero h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 16px 0 24px;
  color: var(--white);
  max-width: 650px;
}

.use-cases-hero h1 em {
  color: var(--light-blue) !important;
}

.use-cases-hero .kicker {
  color: var(--light-blue) !important;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin: 0;
  text-align: left;
}

/* Floating Case Study Cards Visual */
.hero-visual-side {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-cards-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 24px;
  width: 240px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease-out;
  text-align: left;
}

.floating-card.c1 {
  left: 5%;
  top: 10%;
  z-index: 3;
}

.floating-card.c2 {
  right: 5%;
  top: 25%;
  z-index: 2;
  background: rgba(255, 255, 255, 0.015);
}

.floating-card.c3 {
  left: 20%;
  bottom: 5%;
  z-index: 1;
}

.floating-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-card h4 span {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--light-blue);
  background: rgba(147, 197, 253, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.floating-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.card-visual-sketch {
  height: 44px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mockup mini visualizations inside cards */
.mini-bar {
  height: 6px;
  background: var(--light-blue);
  border-radius: 3px;
  width: 90%;
  opacity: 0.8;
  animation: pulseBar 2s ease-in-out infinite alternate;
}

@keyframes pulseBar {
  to { opacity: 0.4; }
}

.mini-scanner {
  height: 6px;
  background: var(--blue);
  border-radius: 3px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mini-scanner::after {
  content: "";
  position: absolute;
  left: -50%;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--light-blue);
  animation: scan 2s infinite linear;
}

@keyframes scan {
  to { left: 100%; }
}

.mini-chart-lines {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 100%;
}

.mini-chart-lines span {
  width: 8px;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.mini-chart-lines span:nth-child(1) { height: 16px; background: var(--blue); }
.mini-chart-lines span:nth-child(2) { height: 26px; background: var(--light-blue); }
.mini-chart-lines span:nth-child(3) { height: 36px; background: var(--white); }

@media(max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual-side {
    height: 320px;
    max-width: 360px;
    margin: 0 auto;
  }
  .floating-card {
    width: 180px;
    padding: 16px;
  }
}

/* ===== "What are we building" — capability cards ===== */
.uc-cards-section {
  padding: 90px 0 120px;
  background-color: var(--bg);
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Outer card = depth shadow + gentle float (added by JS after reveal) */
.uc-card {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 26px 50px -18px rgba(28, 33, 40, 0.28);
  transition: box-shadow 0.4s ease;
}
.uc-card:hover { box-shadow: 0 42px 70px -20px rgba(37, 99, 235, 0.35); }
.uc-card.floating { animation: ucFloat 5s ease-in-out infinite; }
.uc-card.floating:nth-child(2) { animation-duration: 5.6s; animation-delay: 0.35s; }
.uc-card.floating:nth-child(3) { animation-duration: 5.2s; animation-delay: 0.15s; }
.uc-card.floating:nth-child(4) { animation-duration: 5.8s; animation-delay: 0.5s; }
.uc-card.floating:nth-child(5) { animation-duration: 5.3s; animation-delay: 0.25s; }
.uc-card.floating:nth-child(6) { animation-duration: 5.5s; animation-delay: 0.4s; }
@keyframes ucFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .uc-card.floating { animation: none; } }

/* Inner layer = the surface that tilts in 3D (transform set by JS) */
.uc-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(28, 33, 40, 0.07);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease-out, border-color 0.35s;
  will-change: transform;
}
.uc-card:hover .uc-inner { border-color: var(--blue); }

/* Infographic banner */
.uc-graphic {
  width: 100%;
  height: 128px;
  flex-shrink: 0;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.07), rgba(147, 197, 253, 0.06));
  border-bottom: 1px solid rgba(28, 33, 40, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.uc-graphic svg { width: 90%; height: 90%; display: block; }
.uc-graphic-light { background: rgba(255, 255, 255, 0.06); border-bottom-color: rgba(255, 255, 255, 0.12); }

.uc-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.uc-card h3 {
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--ink);
}
.uc-tagline { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 16px; }
.uc-desc { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0 0 18px; }

.uc-points { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.uc-points li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.uc-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 2px; background: var(--light-blue); }

.uc-for {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 33, 40, 0.07);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

/* CTA card */
.uc-cta-card { text-decoration: none; color: #fff; }
.uc-cta-card .uc-inner { background: linear-gradient(160deg, #2563EB 0%, #1c3aa8 100%); border-color: transparent; }
.uc-card.uc-cta-card:hover .uc-inner { border-color: transparent; }
.uc-cta-card h3 { color: #fff; }
.uc-cta-card .uc-desc { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.uc-cta-card .uc-for { border-top-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); }
.uc-cta-link { margin-top: auto; font-weight: 700; font-size: 15px; color: #fff; }

@media (max-width: 1000px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}

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