/* ============================================
   TOOLSLAB — HOME SCREEN
   All values reference design tokens from variables.css.
   Mobile-first. Respects prefers-reduced-motion.
   ============================================ */

/* ---------- HOME SCREEN CONTAINER ---------- */
.screen-home {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-med) transparent;
  background: var(--bg-app);
  width: 100%;
  max-width: 100vw;
}
.screen-home::-webkit-scrollbar { width: 6px; }
.screen-home::-webkit-scrollbar-thumb { background: var(--border-med); border-radius: var(--r-full); }

/* ---------- HOME TOPBAR ---------- */
.home-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-5);
  height: var(--topbar-h);
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  width: 100%;
}
.home-topbar-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}
.home-topbar-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: contain;
}
.home-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}
#hamburgerBtnHome {
  display: none !important;
}

/* ---------- HOME CONTENT WRAPPER ---------- */
.home-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--sp-5) var(--sp-9);
  overflow-x: hidden;
}

/* ---------- SECTION: HERO ---------- */
.home-hero {
  position: relative;
  padding: var(--sp-9) 0 var(--sp-7);
  text-align: center;
  overflow: hidden;
}

/* Gradient blob background */
.home-hero-blob {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

/* Pill badge */
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #e65100; /* Dark orange for high contrast */
  margin-bottom: var(--sp-5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.home-hero-badge svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.home-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}
.home-hero-headline em {
  font-style: normal;
  color: #e65100; /* Dark orange */
}

.home-hero-sub {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  margin-bottom: var(--sp-7);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.home-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.home-hero-ctas .btn {
  min-width: 160px;
}

/* ---------- SECTION: LIVE INPUT MOCKUP ---------- */
.home-input-section {
  padding: var(--sp-6) 0;
}

.home-input-label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

/* Reuse chat input card styles */
.home-input-wrap {
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--sh-md);
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.home-input-wrap:focus-within {
  border-color: var(--border-med);
  box-shadow: var(--sh-lg);
}

.home-input-field {
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  resize: none;
  min-height: 72px;
  line-height: 1.5;
}

.home-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}

.home-input-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.home-input-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-text-on);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.home-input-submit:hover { background: var(--accent-hover); }
.home-input-submit:active { transform: scale(0.97); }
.home-input-submit svg { width: 16px; height: 16px; }

/* ---------- SECTION HEADER (shared) ---------- */
.home-section {
  padding: var(--sp-7) 0;
}

.home-section-header {
  margin-bottom: var(--sp-6);
}

.home-section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.home-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}

.home-section-sub {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- SECTION 3: CAPABILITY GRID ---------- */
.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  /* Cells will automatically stretch to equal heights */
}

/* ---------- Capability cell — base (text/icon version) ---------- */
.home-cap-cell {
  background: #1E1E22 radial-gradient(circle at 100% 50%, rgba(139, 92, 246, 0.25) 0%, transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.35);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.home-cap-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5);
}

.home-cap-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(168, 85, 247, 0.15); /* Bright purple background for high visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C084FC; /* Bright purple for high visibility on dark cards */
  flex-shrink: 0;
}
.home-cap-icon svg { width: 18px; height: 18px; }

.home-cap-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #F3F4F6; /* Force light text on dark card */
}

.home-cap-sub {
  font-size: var(--fs-xs);
  color: #9CA3AF; /* Force light text on dark card */
  line-height: 1.5;
}

/* ---------- Capability cell — full image asset (icon+title+description baked in) ---------- */
.home-cap-cell--img {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #1E1E22; /* Match PNG background perfectly */
  border-radius: var(--r-lg);
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.5);
  display: block;
  position: relative;
}

.home-cap-cell--img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 56px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.6);
}

.home-cap-cell-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transform: scale(1.01); /* Fix subpixel gaps without blowing up the image */
}

/* Modifier specifically for Fast Responses and Code & Logic which have extra baked-in #1E1E22 padding in the PNG itself */
.home-cap-cell-img--zoom {
  transform: scale(1.27) translate(5%, -1%); /* Zooms slightly more to remove the top gap, and translates right to prevent left-side text cutoff */
  transform-origin: center;
}

/* ---------- SECTION 4: FEATURE BENTO ---------- */
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.home-feature-card {
  background: #1E1E22; /* Matches the dark PNG asset seamlessly */
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.4);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
}
.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 64px rgba(0,0,0,0.75), 0 4px 20px rgba(0,0,0,0.5);
}

.home-feature-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.home-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  white-space: nowrap;
}

.home-feature-tag.tag-pro {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.home-feature-tag.tag-soon {
  background: rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
}

.home-feature-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: #F3F4F6; /* Force light text on dark card */
  line-height: 1.3;
}

.home-feature-desc {
  font-size: var(--fs-sm);
  color: #9CA3AF; /* Force light text on dark card */
  line-height: 1.6;
  flex: 1;
}

/* Mini visual mockup inside each card — text/chip version only */
.home-feature-mini {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.03); /* Force dark mode container */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Force dark mode border */
  border-radius: var(--r-md);
  padding: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
  min-height: 56px;
}

/* IMPORTANT: when card has an image, strip all base-rule styles */
.home-feature-card .home-feature-mini.home-feature-mini--img {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* ---------- Feature card inner visual — replaced with real image asset ---------- */
/* BLEED-TO-EDGE TECHNIQUE:
   Negative margins pull the image container flush against ALL card edges.
   The outer card's overflow:hidden + border-radius:24px acts as the single
   clipping mask — perfectly concentric, zero fake inner border, zero seam.
   No inner border-radius needed. */
.home-feature-mini--img {
  margin-top: auto;
  padding: 0;
  display: block;
  width: calc(100% + var(--sp-5) * 2); 
  margin-left: calc(-1 * var(--sp-5)); 
  margin-right: calc(-1 * var(--sp-5));
  margin-bottom: calc(-1 * var(--sp-5)); 
  height: auto;
  min-height: 0;
  background: #1E1E22;
  border-radius: 0;
  overflow: hidden; 
  clip-path: none;
  border: none;
  aspect-ratio: 16 / 9; /* Creates the crop box naturally */
}

.home-feature-mini-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Perfectly crops without distortion, just like capability cards */
  object-position: top center; /* Aligns to top so we don't crop top UI elements */
  margin: 0;
  transform: scale(1.01);
}

.home-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px var(--sp-2);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05); /* Force dark mode */
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF; /* Force dark mode text */
}
.home-mini-chip svg { width: 12px; height: 12px; color: var(--accent); }

.home-mini-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1); /* Force dark mode */
  border-radius: var(--r-full);
  overflow: hidden;
}
.home-mini-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-full);
  width: 65%;
}

.home-mini-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.home-mini-toggle {
  width: 28px; height: 16px;
  border-radius: var(--r-full);
  background: var(--accent);
  position: relative;
}
.home-mini-toggle::after {
  content: '';
  position: absolute;
  right: 2px; top: 2px;
  width: 12px; height: 12px;
  border-radius: var(--r-full);
  background: var(--accent-text-on);
}

.home-mini-globe {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.home-mini-globe svg { width: 14px; height: 14px; color: var(--accent); }

.home-mini-flags {
  display: flex;
  gap: var(--sp-1);
  font-size: 20px;
  line-height: 1;
}

/* ---------- SECTION 5: CATEGORY SHOWCASE ---------- */
.home-category-scroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scrollbar-width: none;
  min-width: 0;
  width: 100%;
}

.home-category-scroll::-webkit-scrollbar { display: none; }

.home-cat-card {
  flex-shrink: 0;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  text-align: left;
}
.home-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--border-med);
}

.home-cat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.home-cat-icon svg { width: 20px; height: 20px; }

.home-cat-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.home-cat-count {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- SECTION 6: VALUE COMPARISON ---------- */
.home-compare-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-4);
  align-items: center;
}

.home-compare-left {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
}

.home-compare-left-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.home-compare-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.home-compare-item:last-child { border-bottom: none; }

.home-compare-item-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-compare-item-icon svg { width: 14px; height: 14px; color: var(--text-muted); }

.home-compare-vs {
  width: 40px; height: 40px;
  background: var(--bg-surface-2);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.home-compare-right {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.16);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.home-compare-right-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.home-compare-right-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
}
.home-compare-right-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-primary);
}
.home-compare-right-list li svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- SECTION 7: SOCIAL PROOF ---------- */
.home-proof {
  text-align: center;
  padding: 0 0 var(--sp-7) 0;
  background: var(--bg-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.home-proof-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.home-proof-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--bg-surface-3);
  border: 2px solid var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: -10px;
}
.home-proof-avatar:first-child { margin-left: 0; }

/* Different background tints for visual variety */
.home-proof-avatar:nth-child(1) { background: var(--bg-surface-2); }
.home-proof-avatar:nth-child(2) { background: var(--bg-surface-3); }
.home-proof-avatar:nth-child(3) { background: var(--accent-soft); color: var(--accent); }
.home-proof-avatar:nth-child(4) { background: var(--bg-surface-2); }
.home-proof-avatar:nth-child(5) { background: var(--bg-surface-3); }
.home-proof-avatar.more {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-text-on);
}

.home-proof-text {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.home-proof-sub {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ---------- SECTION 8: FINAL CTA BAND ---------- */
.home-cta-band {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  margin: var(--sp-7) 0;
}

.home-cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}

.home-cta-band-sub {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

/* ---------- SECTION 9: FOOTER ---------- */
.home-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-6) 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.home-footer-brand {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.home-footer-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.home-footer-link {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}
.home-footer-link:hover { color: var(--text-secondary); }

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .home-cap-cell:hover,
  .home-feature-card:hover,
  .home-cat-card:hover {
    transform: none;
  }
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width: 640px) {
  .home-topbar {
    padding: 0 var(--sp-3);
  }
  .home-topbar-actions .btn {
    padding: 0 var(--sp-3) !important;
  }
  
  .home-content {
    padding: 0 var(--sp-4) var(--sp-7);
  }

  .home-hero {
    padding: var(--sp-7) 0 var(--sp-6);
  }

  .home-hero-blob {
    width: 320px;
    height: 240px;
    top: -40px;
  }

  .home-capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-compare-wrap {
    grid-template-columns: 1fr;
  }
  .home-compare-vs {
    display: none;
  }

  .home-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .home-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .home-capability-grid {
    grid-template-columns: 1fr;
  }
  .home-topbar-actions .btn {
    padding: 0 var(--sp-2) !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   VISUAL UPGRADE — SHARED UTILITY CLASSES (additive only)
   Reference-inspired depth: corner glows, floating pills,
   ghost icons, animated logo card — all in ToolsLab dark/gold.
   Nothing above this line was modified.
   ============================================================ */

/* ---------- SHARED: CORNER GLOW ---------- */
.home-glow-corner {
  position: absolute;
  width: 280px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.home-glow-corner--top-right  { top: -40px;  right: -40px;  }
.home-glow-corner--top-left   { top: -40px;  left: -40px;   }
.home-glow-corner--bottom-left { bottom: -30px; left: -30px; }

/* ---------- SHARED: FLOATING PILL ---------- */
.home-float-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-med);
  box-shadow: var(--sh-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

/* ---------- SHARED: GHOST ICON ---------- */
.home-ghost-icon {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  color: var(--text-primary);
  z-index: 0;
}
.home-ghost-icon svg { width: 100%; height: 100%; }

/* ---------- SHARED: SLOW FLOAT ANIMATION ---------- */
@keyframes home-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}
.home-float-anim {
  animation: home-float 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .home-float-anim { animation: none !important; transform: rotate(-2deg) !important; }
}

/* ---------- HERO: SECOND GLOW (top-right corner) ---------- */
.home-hero-glow-2 {
  width: 340px;
  height: 280px;
  opacity: 0.7;
}

/* ---------- HERO: FLOATING LOGO CARD ---------- */
.home-hero-logo-card {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-2deg);
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-med);
  box-shadow: var(--sh-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  /* float animation overrides the static transform */
}
.home-hero-logo-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
}
/* Hide on narrow viewports — must not overlap headline */
@media (max-width: 640px) {
  .home-hero-logo-card { display: none; }
}
/* On medium screens where card could sit beside text, ensure hero has room */
@media (min-width: 641px) {
  .home-hero {
    padding-right: 96px; /* makes room for the 72px card + gap */
  }
}

/* ---------- CAPABILITY GRID: CAP-CELL GLOW ---------- */
.home-cap-cell {
  position: relative;
  overflow: hidden;
}
.home-cap-cell-glow {
  width: 180px;
  height: 140px;
  opacity: 0.4;
  transition: opacity var(--dur-slow) var(--ease);
}
.home-cap-cell:hover .home-cap-cell-glow {
  opacity: 0.75;
}
/* Ensure existing cap-cell content sits above glow */
.home-cap-icon,
.home-cap-title,
.home-cap-sub {
  position: relative;
  z-index: 1;
}

/* ---------- FEATURE CARDS: MINI AREA POSITIONING BASE ---------- */
.home-feature-mini {
  position: relative;
  overflow: visible; /* pills may float slightly above the box */
}

/* ---------- FEATURE CARD: SOURCE PILLS (Deep Research) ---------- */
.home-source-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px var(--sp-2);
  border-radius: var(--r-full);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--sh-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.home-source-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---------- FEATURE CARD: NAME SPEECH-BUBBLE PILLS (Team Collab) ---------- */
.home-name-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 4px var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--sh-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
/* Speech-bubble triangle pointing down */
.home-name-pill::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--bg-surface-3);
}

/* ---------- COMPARE: RIGHT SIDE WRAPPER + GLOW ---------- */
.home-compare-right-wrap {
  position: relative;
}

/* ---------- SOCIAL PROOF: TRUST BADGE ---------- */
.home-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid var(--border-med);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}
.home-proof-badge-stars {
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 11px;
}

/* ---------- CTA BAND: GLOW LAYERS ---------- */
.home-cta-band {
  position: relative;
  overflow: hidden;
}
/* Ensure CTA band text content sits above glows */
.home-cta-band-title,
.home-cta-band-sub,
.home-cta-band .btn {
  position: relative;
  z-index: 1;
}

/* ---------- MOBILE SAFETY: clamp pill positions ---------- */
@media (max-width: 640px) {
  .home-source-pill,
  .home-name-pill {
    font-size: 10px;
  }
  /* Source pills: keep within card bounds on mobile */
  .home-source-pill[style*="right:-8px"] {
    right: 0 !important;
  }
  /* Name pills: slightly tighter on mobile */
  .home-name-pill {
    padding: 3px var(--sp-1);
  }
}
