/* ============================================
   Base / fonts
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body { font-size: 16px; }
p, li, blockquote { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid #9929EA;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   Hero gradient glow (Stripe/Linear style mesh)
   ============================================ */
.hero-glow {
  background: radial-gradient(closest-side, rgba(153,41,234,0.16), rgba(207,245,0,0.08) 60%, transparent 80%);
  filter: blur(10px);
}
.dark .hero-glow {
  background: radial-gradient(closest-side, rgba(153,41,234,0.32), rgba(207,245,0,0.08) 60%, transparent 80%);
}

/* ============================================
   Soft blob behind portrait photos
   ============================================ */
.hero-blob {
  background:
    radial-gradient(50% 50% at 30% 25%, rgba(153,41,234,0.22), transparent 70%),
    radial-gradient(45% 45% at 75% 75%, rgba(207,245,0,0.28), transparent 70%);
  filter: blur(28px);
  border-radius: 50%;
}
.dark .hero-blob {
  background:
    radial-gradient(50% 50% at 30% 25%, rgba(153,41,234,0.35), transparent 70%),
    radial-gradient(45% 45% at 75% 75%, rgba(207,245,0,0.18), transparent 70%);
}

/* ============================================
   Glassmorphism card (used sparingly, per brief)
   ============================================ */
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 12px 32px -8px rgba(17,24,39,0.18);
}
.dark .glass-card {
  background: rgba(17,24,39,0.65);
  border-color: rgba(255,255,255,0.08);
}

/* ============================================
   Sales funnel timeline connector
   ============================================ */
.funnel-line {
  background: linear-gradient(to bottom, #9929EA, #CFF500);
  opacity: 0.35;
}
.funnel-dot {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid #9929EA;
  color: #9929EA;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark .funnel-dot { background: #111827; }

/* ============================================
   Project thumbnail gradient placeholder
   ============================================ */
.thumb-placeholder {
  background: linear-gradient(135deg, var(--from, #2563EB), var(--to, #111827));
  position: relative;
}
.thumb-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   Nav scrolled state
   ============================================ */
#siteNav.is-scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: #E5E7EB;
  box-shadow: 0 1px 0 rgba(17,24,39,0.03), 0 8px 24px -12px rgba(17,24,39,0.12);
}
.dark #siteNav.is-scrolled {
  background: rgba(3,7,18,0.8);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* ============================================
   FAQ accordion (grid-rows trick — no JS height calc)
   ============================================ */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 320ms cubic-bezier(0.16,1,0.3,1);
}
.faq-panel > p { min-height: 0; overflow: hidden; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-item.is-open .faq-trigger svg { transform: rotate(180deg); }
.faq-trigger svg { transition: transform 280ms cubic-bezier(0.16,1,0.3,1); }

/* ============================================
   Hide scrollbar on portfolio slider (still scrollable/keyboard accessible)
   ============================================ */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ============================================
   Sticky mobile CTA reveal
   ============================================ */
#stickyCta.is-visible { transform: translateY(0); }

/* ============================================
   Counter no-flicker
   ============================================ */
.counter { font-variant-numeric: tabular-nums; }

/* ============================================
   Button press feedback
   ============================================ */
a.inline-flex:active, button:active { transform: scale(0.98); }

/* ============================================
   Selection color
   ============================================ */
::selection { background: #9929EA; color: #fff; }
