/* ============================================================
   LiftBot — resources.css
   Rebuilt on the same visual system as features.css
   Prefix: res-
   ============================================================ */

main:has(.lb) {
  max-width: none;
  width: 100%;
  padding: 0;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@keyframes res-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,206,122,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(31,206,122,0); }
}

/* ============================================================
   HERO  (mirrors .feat-hero)
   ============================================================ */
.res-hero {
  position: relative;
  overflow: hidden;
  background: #f3f2ee;
  text-align: center;
  padding: 120px 24px 100px;
}

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

.res-hero__glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 700px;
  pointer-events: none;
  background:
    radial-gradient(500px 400px at 30% 20%, rgba(75,58,255,0.12), transparent 70%),
    radial-gradient(400px 300px at 80% 10%, rgba(255,77,141,0.09), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

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

.res-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4b3aff;
  background: #eeecff;
  border: 1px solid rgba(75,58,255,0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.res-hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px rgba(31,206,122,0.3);
  animation: res-pulse 1.8s ease-in-out infinite;
}

.res-hero__h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 22px;
  letter-spacing: -0.03em;
}
.res-hero__h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #4b3aff 0%, #ff4d8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.res-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #53555f;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 auto;
}

/* ============================================================
   EXPLORE GRID  (mirrors .feat-grid-section / .feat-card)
   ============================================================ */
.res-grid-section {
  background: var(--paper-dim);
  padding: 100px 24px;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.res-grid-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.res-grid-section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; }
}

.res-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.res-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -16px rgba(75,58,255,0.22);
}

.res-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.res-card__icon--1 { background: #4b3aff; }
.res-card__icon--2 { background: #0e8f52; }
.res-card__icon--3 { background: #ff4d8d; }
.res-card__icon--4 { background: #d9a62e; }
.res-card__icon--5 { background: #15161b; }

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

.res-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #53555f;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.res-card__cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 4px;
}

/* ============================================================
   FINAL CTA  (mirrors .feat-cta)
   ============================================================ */
.res-cta {
  background: #f3f2ee;
  padding: 120px 24px;
  text-align: center;
}
.res-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}
.res-cta__h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.res-cta__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #53555f;
  line-height: 1.65;
  margin: 0 0 38px;
}
.res-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.res-cta .lb__eyebrow {
  color: #2e21c9;
  background: #eeecff;
  border-color: rgba(75, 58, 255, 0.18);
}

.res-cta .lb__btn--outline {
  color: var(--ink);
  border-color: var(--paper-line);
}
.res-cta .lb__btn--outline:hover {
  border-color: var(--ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .res-hero { padding: 96px 20px 72px; }
  .res-grid-section,
  .res-cta { padding: 72px 20px; }
  .res-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}