/* ═══════════════════════════════════════════════════════
   AiFlo — Global Stylesheet (LIGHT THEME)
   Shared across all 6 pages of the marketing site
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────── */
:root {
  --c-bg: #ffffff;
  --c-bg-deep: #f5f3ff;
  --c-surface: rgba(255, 255, 255, 0.7);
  --c-border: rgba(100, 80, 160, 0.12);
  --c-primary: #7c3aed;
  --c-primary-light: #a78bfa;
  --c-sky: #3b82f6;
  --c-pink: #ec4899;
  --c-text: #1e1b4b;
  --c-text-muted: #64748b;
  --c-text-dim: #94a3b8;
  --c-green: #16a34a;
  --c-yellow: #d97706;
  --c-red: #dc2626;
  --radius-card: 20px;
  --radius-btn: 12px;
  --blur-glass: blur(12px);
  --shadow-card: 0 4px 24px rgba(100, 80, 160, 0.08);
  --shadow-glow: 0 8px 30px rgba(124, 58, 237, 0.12);
  --font-headline: 'Manrope', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --nav-height: 80px;
}

/* ─────────────────────────────────────────────────────
   2. BASE RESET
───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────
   3. TYPOGRAPHY SCALE
───────────────────────────────────────────────────── */
.h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--c-text);
}

.h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-text);
}

.h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--c-text);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-text-muted);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.gradient-text {
  background: linear-gradient(90deg, var(--c-primary), #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────────────
   4. NAV STYLES
───────────────────────────────────────────────────── */
#site-nav nav,
#nav {
  position: fixed;
  z-index: 50;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(100, 80, 160, 0.12);
  box-shadow:
    0 4px 24px rgba(100, 80, 160, 0.08),
    0 0 0 1px rgba(124, 58, 237, 0.05);
}

#site-nav #nav-logo,
#nav-logo {
  height: 36px;
  width: auto;
  filter: none;
  display: block;
}

/* Mobile menu */
#site-nav #mobile-menu,
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#site-nav #mobile-menu.open,
#mobile-menu.open {
  max-height: 400px;
}

/* ─────────────────────────────────────────────────────
   5. FOOTER STYLES
───────────────────────────────────────────────────── */
#site-footer footer,
#footer {
  background: #1e1b4b;
  padding-top: 80px;
  padding-bottom: 48px;
  padding-left: 24px;
  padding-right: 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}

@media (min-width: 768px) {
  #site-footer footer,
  #footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.footer-link {
  color: #c7c4d7;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: #a78bfa;
}

/* ─────────────────────────────────────────────────────
   6. GLASS CARD SYSTEM
───────────────────────────────────────────────────── */
.glass-card {
  background: var(--c-surface);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  transition: all 0.25s ease;
}

/* ─────────────────────────────────────────────────────
   7. BUTTON SYSTEM
───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(100, 80, 160, 0.05);
  color: var(--c-text);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(100, 80, 160, 0.1);
}

/* ─────────────────────────────────────────────────────
   8. EYEBROW BADGE
───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─────────────────────────────────────────────────────
   9. SECTION SPACING
───────────────────────────────────────────────────── */
.section {
  padding: 80px 24px;
}

.section-lg {
  padding: 112px 24px;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 32px;
  }
  .section-lg {
    padding: 128px 32px;
  }
}

section {
  scroll-margin-top: var(--nav-height);
}

/* ─────────────────────────────────────────────────────
   10. ENTRANCE ANIMATIONS
   Elements start hidden; JS adds .is-visible to trigger
───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > *,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────
   11. BRAND-CONSISTENT STAT / FEATURE PILLS
───────────────────────────────────────────────────── */
/* Consistent pill — brand purple, NOT multicolor */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--c-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

.feature-list-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-primary); /* ALWAYS brand purple, never per-card color */
  margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────
   12. SCROLLBAR AND SELECTION
───────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}

::selection {
  background: rgba(124, 58, 237, 0.15);
  color: var(--c-text);
}
