/* ══════════════════════════════════════════════════════════
   Homepage visual refresh — hero, about, cards
   ══════════════════════════════════════════════════════════ */
.main-body {
  --home-white: #ffffff;
  --home-ink: #1e1b4b;
  --home-muted: #475569;
  --home-violet-deep: #5b21b6;
  --home-primary: #7c3aed;
  --home-primary-hover: #6d28d9;
  --home-accent: #0891b2;
  --home-secondary: #a78bfa;
  --home-border: #ddd6fe;
  --home-border-muted: #e4e0f0;
  --home-border-subtle: #9586ad;
  --home-border-hover: #bda7f2;
  --home-hero-background: linear-gradient(118deg, #faf5ff 0%, #f8faff 53%, #effaff 100%);
  --home-ambient-glow: radial-gradient(circle, rgba(167, 139, 250, 0.2), rgba(8, 145, 178, 0.06) 48%, transparent 72%);
  --home-tag-background: rgba(255, 255, 255, 0.8);
  --home-button-background: rgba(255, 255, 255, 0.82);
  --home-primary-shadow: 0 8px 18px rgba(124, 58, 237, 0.2);
  --home-primary-hover-shadow: 0 10px 22px rgba(109, 40, 217, 0.25);
  --home-focus-ring: 3px solid #6d28d9;
  --home-card-shadow: 0 8px 28px rgba(30, 27, 75, 0.07);
  --home-card-hover-shadow: 0 16px 36px rgba(30, 27, 75, 0.11);
  --home-window-border: rgba(124, 58, 237, 0.18);
  --home-window-shadow: 0 28px 72px -18px rgba(30, 27, 75, 0.24), 0 10px 30px -12px rgba(8, 145, 178, 0.2);
}

/* ── Hero section ────────────────────────────────────── */
.main-body .hero-section {
  --home-ink: #071f5c;
  --home-muted: #4a5568;
  --home-violet-deep: #0b2f91;
  --home-primary: #0879d1;
  --home-primary-hover: #065fa8;
  --home-accent: #08b9e8;
  --home-secondary: #5ec8f0;
  --home-border: #c3e0f8;
  --home-border-subtle: #8bbfe8;
  --home-border-hover: #5ca4d8;
  --home-hero-background: linear-gradient(145deg, #f0f7ff 0%, #f5fbff 40%, #eaf6ff 72%, #f0faff 100%);
  --home-ambient-glow: radial-gradient(ellipse at 60% 40%, rgba(8, 121, 209, 0.18) 0%, rgba(8, 185, 232, 0.08) 50%, transparent 70%);
  --home-primary-shadow: 0 10px 28px rgba(8, 92, 180, 0.28);
  --home-primary-hover-shadow: 0 14px 36px rgba(8, 92, 180, 0.36);
  --home-focus-ring: 3px solid #0879d1;
  --home-window-border: rgba(8, 121, 209, 0.2);
  --home-window-shadow: 0 32px 80px -12px rgba(11, 47, 145, 0.22), 0 12px 32px -8px rgba(8, 145, 220, 0.2);

  position: relative;
  isolation: isolate;
  padding-block: clamp(7rem, 11vw, 9rem) clamp(4rem, 6vw, 5rem);
  background: var(--home-hero-background);
  overflow: visible;
}

/* Multi-layer ambient backdrop — removes the single hard blob */
.main-body .hero-section::before,
.main-body .hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

/* Primary large glow — upper-right */
.main-body .hero-section::before {
  top: -14rem;
  right: -10rem;
  width: min(60vw, 820px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(8, 121, 209, 0.14) 0%, rgba(8, 185, 232, 0.06) 50%, transparent 70%);
}

/* Secondary soft glow — lower-left */
.main-body .hero-section::after {
  bottom: -8rem;
  left: -6rem;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(8, 185, 232, 0.04) 55%, transparent 75%);
}

.main-body .hero-section > .container {
  max-width: 1360px;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}

/* ── Hero copy (left) ────────────────────────────────── */
.main-body .hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-right: clamp(1rem, 2.5vw, 2.5rem);
}

/* Eyebrow tag */
.main-body .hero-section .hero-tag {
  display: inline-flex;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(8, 121, 209, 0.3) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(8, 92, 180, 0.08), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  color: #0756ad !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Headline */
.main-body .hero-section .hero-title {
  margin-bottom: 1.35rem;
  color: #071f5c !important;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.07 !important;
}

/* Underline accent on "Free Tools" */
.main-body .hero-section .hero-title__underline {
  position: relative;
  display: inline-block;
  color: #0879d1;
}

.main-body .hero-section .hero-title__underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0879d1, #08b9e8);
  animation: underlineGrow 0.9s ease 0.4s both;
  transform-origin: left;
}

/* Word rotator — brand gradient */
.main-body .hero-section .hero-title__gradient {
  background: linear-gradient(135deg, #0879d1 0%, #0756ad 40%, #08b9e8 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Description */
.main-body .hero-section .hero-desc {
  max-width: 38rem;
  margin-bottom: 2rem;
  padding-left: 14px !important;
  border-left: 3px solid rgba(8, 121, 209, 0.25) !important;
  color: #4a5568;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.78;
}

.main-body .hero-section .hero-desc::before {
  display: none !important;
}

/* ── CTA buttons ─────────────────────────────────────── */
.main-body .hero-section .hero-actions {
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.main-body .hero-section .hero-actions .btn-hero-primary,
.main-body .hero-section .hero-actions .btn-hero-ghost {
  min-height: 52px;
  padding: 0.8rem 1.65rem;
  border-radius: 14px !important;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 180ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 180ms cubic-bezier(0.16,1,0.3,1),
              background 180ms ease;
}

.main-body .hero-section .hero-actions .btn-hero-primary {
  background: linear-gradient(135deg, #0756ad 0%, #0879d1 55%, #089de8 100%) !important;
  border: 1px solid rgba(8, 92, 180, 0.4) !important;
  box-shadow: 0 10px 28px rgba(8, 92, 180, 0.3),
              inset 0 1px 0 rgba(255,255,255,0.25) !important;
  color: #fff !important;
  letter-spacing: -0.01em;
}

.main-body .hero-section .hero-actions .btn-hero-primary:hover {
  background: linear-gradient(135deg, #065fa8 0%, #0771c3 55%, #0889d4 100%) !important;
  box-shadow: 0 16px 40px rgba(8, 92, 180, 0.4),
              inset 0 1px 0 rgba(255,255,255,0.3) !important;
  transform: translateY(-3px);
}

.main-body .hero-section .hero-actions .btn-hero-ghost {
  border: 1.5px solid rgba(8, 121, 209, 0.28) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #0756ad !important;
  box-shadow: 0 2px 12px rgba(8, 92, 180, 0.08) !important;
}

.main-body .hero-section .hero-actions .btn-hero-ghost:hover {
  border-color: rgba(8, 121, 209, 0.55) !important;
  background: #ffffff !important;
  color: #0879d1 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(8, 92, 180, 0.14) !important;
}

.main-body .hero-section .hero-actions :is(.btn-hero-primary, .btn-hero-ghost):focus-visible {
  outline: var(--home-focus-ring) !important;
  outline-offset: 3px !important;
}

/* ── Hero visual card (right) ────────────────────────── */
/* Remove the browser-window box — diagram floats directly */
.main-body #heroVisualCard .hvc-window {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Chrome bar hidden — diagram is the hero */
.main-body #heroVisualCard .hvc-chrome {
  display: none !important;
}

/* Make the diagram area transparent so it blends with the hero background */
.main-body #heroVisualCard .hvc-iframe-wrap,
.main-body #heroVisualCard .hvc-rag-shell,
.main-body #heroVisualCard .hvc-term-shell {
  background: transparent !important;
  height: 480px;
}

/* Kill any inset shadow box */
.main-body #heroVisualCard .hvc-iframe-wrap::after,
.main-body #heroVisualCard .hvc-rag-shell::before {
  content: none !important;
  display: none !important;
}

/* Stronger ambient glow on the diagram */
.main-body #heroVisualCard .hvc-rag-graph {
  filter: drop-shadow(0 0 50px rgba(8, 185, 232, 0.22))
          drop-shadow(0 0 20px rgba(8, 121, 209, 0.15));
}

/* Floating decoration cards — bring them back into view */
.main-body #heroVisualCard .hvc-float {
  display: flex !important;
  opacity: 1;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255,255,255,0.94) !important;
  border: 1px solid rgba(8, 121, 209, 0.14) !important;
  box-shadow: 0 12px 32px -4px rgba(11, 47, 145, 0.14),
              0 2px 8px rgba(8, 121, 209, 0.08) !important;
}

/* Reposition floats to avoid clipping */
.main-body #heroVisualCard .hvc-float--tl {
  top: 32px;
  left: -20px;
}
.main-body #heroVisualCard .hvc-float--tr {
  top: -10px;
  right: -10px;
}
.main-body #heroVisualCard .hvc-float--br {
  bottom: 36px;
  right: -18px;
}
.main-body #heroVisualCard .hvc-float--bl {
  bottom: 16px;
  left: -14px;
}

/* Blob glows behind the visual card */
.main-body #heroVisualCard .hvc-blob--blue {
  background: rgba(8, 121, 209, 0.1);
  filter: blur(70px);
}
.main-body #heroVisualCard .hvc-blob--purple {
  background: rgba(8, 185, 232, 0.08);
  filter: blur(60px);
}

/* Dot grid behind the visual col */
.main-body .hero-visual-col::before {
  background-image: radial-gradient(circle, rgba(8,121,209,0.16) 1.2px, transparent 1.2px) !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 68%) !important;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 68%) !important;
}

/* ── About, project cards, etc. ──────────────────────── */
.main-body #about {
  width: min(100% - 2rem, 1360px);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.main-body #about .about-header {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.main-body #about .about-audience-grid {
  gap: clamp(1rem, 2.5vw, 2rem);
}

.main-body #about .audience-card {
  overflow: hidden;
  border: 1px solid var(--home-border-muted) !important;
  border-radius: 1.25rem;
  box-shadow: var(--home-card-shadow) !important;
}

.main-body #about .audience-card__content {
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .main-body #about .audience-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .main-body #about .audience-card:hover {
    border-color: var(--home-secondary) !important;
    box-shadow: var(--home-card-hover-shadow) !important;
    transform: translateY(-3px);
  }
}

/* ── Responsive breakpoints ──────────────────────────── */
@media (max-width: 1199px) {
  .main-body #heroVisualCard .hvc-iframe-wrap,
  .main-body #heroVisualCard .hvc-rag-shell {
    height: 440px;
  }
  .main-body #heroVisualCard .hvc-float--tl { left: -10px; }
  .main-body #heroVisualCard .hvc-float--tr { right: -6px; }
  .main-body #heroVisualCard .hvc-float--br { right: -10px; }
}

@media (max-width: 991px) {
  .main-body .hero-section {
    padding-top: 6.5rem !important;
    padding-bottom: 3rem !important;
  }

  .main-body .hero-text {
    max-width: 720px;
    padding-right: 0;
  }
}

@media (max-width: 575px) {
  .main-body .hero-section {
    padding-top: 5.75rem !important;
    padding-bottom: 2.75rem !important;
    padding-inline: 0;
  }

  .main-body .hero-section .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.25rem);
  }

  .main-body .hero-section .hero-actions {
    gap: 0.65rem;
  }

  .main-body #about {
    padding-block: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-body .hero-section .hero-actions :is(.btn-hero-primary, .btn-hero-ghost),
  .main-body #about .audience-card {
    transition: none !important;
  }
}

/* ── Flat, uniform homepage background ──
   Drops the fixed tinted blob overlay that stayed in place while scrolling and
   showed through beside the boxed sections, plus the per-section background
   boxes, so the whole page keeps one single colour top to bottom. */
body.bg-purple-left::before,
body.light.bg-purple-left::before {
  display: none !important;
  content: none !important;
}

body.light .main-body #about,
body.light .main-body #projects,
body.light .main-body #why-projectshub,
body.light .main-body #testimonials,
body.light .main-body #contact {
  background: transparent !important;
}

body.light .main-body #about::before {
  display: none !important;
  content: none !important;
}

/* Fixed, drifting aurora blobs sat in front of the page background and shifted
   tint as the page scrolled past them — the homepage stays flat instead. */
body.light .aurora-section::before,
body.light .aurora-section::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}
