/* ═══════════════════════════════════════════
   LIFEKit AI — Home Page
   ═══════════════════════════════════════════ */

/* ── HERO ───────────────────────────────── */
.hero {
  text-align: center;
  padding: 90px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero .badge { margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.grad {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ── SEARCH ─────────────────────────────── */
.search {
  max-width: 580px;
  margin: 40px auto 0;
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(192, 38, 211, 0.15);
  transition: border-color .3s, box-shadow .3s;
}
.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 50px rgba(192, 38, 211, 0.35);
}
.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
}
.search input::placeholder { color: var(--muted); }
.search button {
  background: linear-gradient(135deg, #a855f7, #c026d3);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s;
}
.search button:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(192, 38, 211, 0.5);
}

/* ── STATS ──────────────────────────────── */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin: 70px auto 0;
  max-width: 700px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── SECTIONS ───────────────────────────── */
.section {
  padding: 90px 32px;
  max-width: 1150px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ── TOOL CARD ──────────────────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c026d3, #a855f7, #22d3ee, transparent);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow:
    0 20px 50px rgba(192, 38, 211, 0.25),
    0 0 0 1px rgba(168, 85, 247, 0.1) inset;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: transform .3s;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 22px;
  flex-grow: 1;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-3);
  letter-spacing: -0.02em;
}
.price small {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.card-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s;
}
.card:hover .card-cta { gap: 10px; }

/* ── FEATURED CARD ──────────────────────── */
.card.featured {
  border-color: rgba(168, 85, 247, 0.4);
  background: linear-gradient(180deg, rgba(192, 38, 211, 0.08), var(--surface-2));
}
.card.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: 16px; right: 16px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: #000;
  padding: 4px 10px;
  border-radius: 999px;
}
.card.featured .card-icon {
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.2), rgba(251, 191, 36, 0.1));
  border-color: rgba(245, 196, 81, 0.3);
}
.card.featured .price { color: var(--gold); }
.card.featured:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(245, 196, 81, 0.2);
}

/* ── CTA BANNER ─────────────────────────── */
.cta-banner {
  max-width: 1000px;
  margin: 60px auto;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 50%, rgba(192, 38, 211, 0.20), transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.15), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-banner p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .hero { padding: 60px 20px 30px; }
  .section { padding: 60px 20px; }
  .stats { gap: 30px; margin-top: 50px; }
  .cta-banner { margin: 40px 20px; padding: 40px 24px; }
  .search button { padding: 12px 18px; }
}