/* ============================================================
   LiftBot — usecases.css
   Prefix: uc-
   ============================================================ */

/* ── Full-width override ── */
main:has(.lb) {
  max-width: none;
  width: 100%;
  padding: 0;
}

/* ── Design tokens ── */
:root {
  --brand:      #4b3aff;
  --signal:     #1fce7a;
  --pop:        #ff4d8d;
  --ink:        #15161b;
  --paper-dim:  #f3f2ee;
  --paper-line: #e7e5de;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes lb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   HERO
   ============================================================ */
.uc-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-dim);
  text-align: center;
  padding: 120px 24px 100px;
}

.uc-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.uc-hero__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(75,58,255,0.16) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.uc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.uc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(75,58,255,0.08);
  border: 1px solid rgba(75,58,255,0.24);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}

.uc-hero__badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: lb-pulse 2s ease-in-out infinite;
}

.uc-hero__h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.uc-hero__h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 50%, #15b56a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.uc-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(21,22,27,0.65);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 40px;
}

.uc-hero__sub strong {
  color: var(--ink);
  font-weight: 600;
}

.uc-hero__strike {
  text-decoration: line-through;
  text-decoration-color: rgba(21,22,27,0.3);
  opacity: 0.6;
}

.uc-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Button overrides for off-white hero background ── */
.uc-hero .lb__btn--primary {
  background: #15161b !important;
  color: #fff !important;
  border-color: #15161b !important;
}
.uc-hero .lb__btn--primary:hover {
  background: #2a2b33 !important;
  border-color: #2a2b33 !important;
}
.uc-hero .lb__btn--outline {
  background: transparent !important;
  color: #15161b !important;
  border-color: rgba(21,22,27,0.3) !important;
}
.uc-hero .lb__btn--outline:hover {
  border-color: #15161b !important;
}

/* ============================================================
   USE CASES GRID SECTION
   ============================================================ */
.uc-grid-section {
  background: var(--paper-dim);
  padding: 100px 24px;
}

.uc-grid-section__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.uc-grid-section__header {
  text-align: center;
  margin-bottom: 60px;
}

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

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

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

/* ── Use Case Card ── */
.uc-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.uc-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 16px 44px rgba(21,22,27,0.09);
}

.uc-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.uc-card__icon svg {
  width: 22px;
  height: 22px;
}

.uc-card__icon--1 { background: #eeecff; color: #4b3aff; }
.uc-card__icon--2 { background: #ffeaf2; color: #ff4d8d; }
.uc-card__icon--3 { background: #e6fbf0; color: #0e8f52; }
.uc-card__icon--4 { background: #fff8e5; color: #c9861a; }
.uc-card__icon--5 { background: #f0f4ff; color: #2563eb; }
.uc-card__icon--6 { background: #f5f0ff; color: #8b5cf6; }

.uc-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.3;
}

.uc-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: #52535a;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}

.uc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.uc-card__cta:hover {
  gap: 8px;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.uc-cta {
  background: var(--paper-dim);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.uc-cta::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(75,58,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.uc-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.uc-cta__h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.uc-cta__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(21,22,27,0.65);
  line-height: 1.65;
  margin: 0 0 40px;
}

.uc-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 640px) {
  .uc-hero {
    padding: 100px 20px 80px;
  }
  .uc-grid-section,
  .uc-cta {
    padding: 72px 20px;
  }
}