@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Geist', sans-serif;
  background-color: #09090b;
  color: #fafafa;
  margin: 0;
}

.serif { font-family: 'DM Serif Display', serif; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar        { width: 8px; }
::-webkit-scrollbar-track  { background: #09090b; }
::-webkit-scrollbar-thumb  { background: #27272a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ─── Dot grid background ──────────────────────────── */
.dot-grid {
  background-image: radial-gradient(#27272a 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── Scroll-triggered animations ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays for children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }

/* Hero initial animation (above the fold, no IntersectionObserver needed) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up          { animation: fadeUp 0.7s ease both; }
.fade-up.delay-1  { animation-delay: 0.10s; }
.fade-up.delay-2  { animation-delay: 0.25s; }
.fade-up.delay-3  { animation-delay: 0.40s; }

/* ─── Counter animation ────────────────────────────── */
.counter { display: inline-block; }

/* ─── FAQ accordion ────────────────────────────────── */
.faq-item {
  background: #121215;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: #34d39966; }

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: #fafafa;
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.2s;
  color: #52525b;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #34d399;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-body {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}
.faq-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #a1a1aa;
}

/* ─── Nav scroll state ─────────────────────────────── */
nav {
  transition: background-color 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background-color: rgba(9, 9, 11, 0.97);
  box-shadow: 0 1px 0 #27272a;
}

/* ─── Mobile menu ──────────────────────────────────── */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #27272a;
  background: #09090b;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
#mobile-menu a:hover { color: #fafafa; }

/* ─── Alert buttons in dashboard ──────────────────── */
.alert-btn {
  transition: background-color 0.2s, transform 0.1s;
}
.alert-btn:hover {
  background-color: rgba(52, 211, 153, 0.25);
  transform: scale(1.04);
}

/* ─── Stat card pulse on entry ─────────────────────── */
@keyframes statPop {
  0%   { transform: scale(0.92); opacity: 0; }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1);    opacity: 1; }
}
.stat-card.animated { animation: statPop 0.5s ease both; }

/* ─── CTA button ripple ────────────────────────────── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.3s;
}
.btn-ripple:active::after { opacity: 1; }

/* ─── Pricing card hover lift ──────────────────────── */
.pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* ─── Smooth scroll ────────────────────────────────── */
html { scroll-behavior: smooth; }