/* ─── Scroll Reveal ──────────────────────────────────────────────────────── */

/* Fast reveal — About section (450ms, 10px travel, 50ms stagger) */
.reveal-fast {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal-fast.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal,
.reveal-section,
.reveal-child {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active,
.reveal-section.active,
.reveal-child.active {
  opacity: 1;
  transform: translateY(0);
}

/* List item stagger inside reveal-child cards */
.reveal-child li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-child.active li {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Hero Entry Animation ────────────────────────────────────────────────── */

@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate-badge { animation: hero-in 0.6s ease both; }
.hero-animate       { animation: hero-in 0.7s ease 0.2s both; }
.hero-animate-d1    { animation: hero-in 0.6s ease 0.45s both; }
.hero-animate-d2    { animation: hero-in 0.6s ease 0.7s both; }

/* ─── Hero Float Animation ───────────────────────────────────────────────── */

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.hero-float { animation: hero-float 7s ease-in-out infinite; }

/* ─── Hero Glow Pulse ────────────────────────────────────────────────────── */

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.05); }
}

.hero-glow { animation: hero-glow-pulse 5s ease-in-out infinite; }

/* ─── Terminal Skeleton Loading ──────────────────────────────────────────── */

@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton-line {
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

/* ─── Terminal Line Entrance ─────────────────────────────────────────────── */

@keyframes terminal-line-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.terminal-line-in {
  animation: terminal-line-in 0.2s ease both;
}

/* ─── Experience Case Steps ──────────────────────────────────────────────── */

.case-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.case-step.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes impact-glow {
  0%   { box-shadow: 0 0 0 rgba(60, 131, 246, 0); }
  45%  { box-shadow: 0 0 20px rgba(60, 131, 246, 0.28); }
  100% { box-shadow: 0 0 8px rgba(60, 131, 246, 0.10); }
}
.case-impact.active {
  animation: impact-glow 1s ease-out 0.3s both;
}

/* ─── Card Hover Effects ─────────────────────────────────────────────────── */
.card-hover {
  will-change: transform;
  transition: opacity 0.6s ease, transform 150ms ease-out, box-shadow 150ms ease-out, border-left-color 150ms ease-out;
}
.card-hover:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(60, 131, 246, 0.32);
  border-left-color: #3c83f6;
}

/* ─── Mobile Menu Slide-Down ─────────────────────────────────────────────── */

#mobile-menu {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
#mobile-menu.menu-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu.menu-open > * {
  animation: menu-item-in 220ms ease-out both;
}
#mobile-menu.menu-open > *:nth-child(1) { animation-delay:  80ms; }
#mobile-menu.menu-open > *:nth-child(2) { animation-delay: 130ms; }
#mobile-menu.menu-open > *:nth-child(3) { animation-delay: 180ms; }
#mobile-menu.menu-open > *:nth-child(4) { animation-delay: 230ms; }
#mobile-menu.menu-open > *:nth-child(5) { animation-delay: 280ms; }

/* ─── Scroll To Top Button ───────────────────────────────────────────────── */

.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.scroll-top-btn:active {
  transform: scale(0.93);
}

/* ─── Navbar Scroll State ────────────────────────────────────────────────── */

header {
  transition: background-color 300ms ease, box-shadow 300ms ease;
}

.nav-scrolled {
  background-color: rgba(245, 247, 248, 0.97) !important;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.07);
}
.dark .nav-scrolled {
  background-color: rgba(16, 23, 34, 0.98) !important;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}

/* Active nav link */
.nav-active {
  color: #3c83f6 !important;
}

/* ─── Hierarchical Reveal ────────────────────────────────────────────────── */

/* Title: strong entry — section entry point (40px, spring easing) */
.reveal-title {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-title.active {
  opacity: 1;
  transform: translateY(0);
}

/* Item: soft entry — secondary content/cards (16px, ease-out) */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */

body {
  font-family: 'Inter', sans-serif;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 24px 24px; }
}

.dashboard-grid {
  background-image: radial-gradient(circle at 2px 2px, rgba(60, 131, 246, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  animation: grid-drift 28s linear infinite;
}

/* ─── Component Classes ──────────────────────────────────────────────────── */

.glass-panel {
  background: rgba(24, 35, 52, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.bg-card-dark {
  background-color: #0f172a;
}

.glow {
  box-shadow: 0 0 24px rgba(60, 131, 246, 0.12);
}

/* ─── Color Utilities ────────────────────────────────────────────────────── */

.text-secondary {
  color: #64748b;
}

/* ─── Semantic Classes ────────────────────────────────────────────────────── */

/* Max-width centered container (replaces max-w-7xl mx-auto) */
.section-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* White card with border — light and dark aware (replaces bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700) */
.card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}
.dark .card {
  background-color: #1e293b;
  border-color: #334155;
}

/* Primary filled button (replaces bg-primary hover:bg-primary/90 text-white font-bold transition-all) */
.btn-primary {
  background-color: #3c83f6;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: filter 150ms ease, transform 180ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 180ms ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(60, 131, 246, 0.45);
}
.btn-primary:active {
  transform: scale(0.98);
  animation: btn-bounce 250ms ease forwards;
}

/* Secondary dark button (replaces bg-slate-800 hover:bg-slate-700 text-white font-bold transition-all border border-slate-700) */
.btn-secondary {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: filter 150ms ease, transform 180ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 180ms ease;
  border: 1px solid #334155;
}
.btn-secondary:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.btn-secondary:active {
  transform: scale(0.98);
  animation: btn-bounce 250ms ease forwards;
}

@keyframes btn-bounce {
  0%   { transform: scale(0.98); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Waitlist email input */
#waitlist-email {
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
#waitlist-email:focus {
  border-color: #3c83f6;
  box-shadow: 0 0 0 3px rgba(60, 131, 246, 0.22), 0 0 20px rgba(60, 131, 246, 0.15);
  outline: none;
}

/* Waitlist button success state */
#waitlist-btn.success {
  background-color: #16a34a;
  filter: none;
  pointer-events: none;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

/* ─── MicroSaaS Live Activity ────────────────────────────────────────────── */

/* Pulsing live dot */
