/* Geist Sans — same font used by the main 10xCFO application */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Geist', ui-sans-serif, -apple-system, 'Segoe UI', 'Helvetica Neue', 'Noto Sans', sans-serif;
  font-feature-settings: 'palt';
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  color: #111827;
  /* Matches the original app's bg-gradient-to-br from-slate-50 via-white to-slate-50 */
  background: linear-gradient(to bottom right, #f8fafc, #ffffff, #f8fafc);
  min-height: 100vh;
}

/* Sticky header with backdrop blur (Safari vendor prefix) */
header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
}

/* Navigation links */
.nav-link {
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-link:hover { color: #000 !important; }
.nav-link.active { color: #000 !important; font-weight: 600; }

/* ── Scroll Reveal ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger siblings */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Hero Background ───────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(229,231,235,0.5) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Card Hover ────────────────────────────────────────────────────────────── */
.card-hover {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card-hover:hover {
  border-color: #9ca3af !important;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* Icon box */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.card-hover:hover .icon-box {
  transform: scale(1.08);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #111827;
  border: 2px solid #d1d5db;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover {
  border-color: #6b7280;
  background: #f9fafb;
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-white:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Form Inputs ───────────────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.form-input::placeholder { color: #9ca3af; }

textarea.form-input { resize: vertical; min-height: 140px; }

/* ── Status messages ───────────────────────────────────────────────────────── */
.status-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
}
.status-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
}

/* ── Step numbers ──────────────────────────────────────────────────────────── */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

/* ── Stat item ─────────────────────────────────────────────────────────────── */
.stat-divider {
  width: 1px;
  height: 60px;
  background: #e5e7eb;
}

/* ── Mobile menu transition ────────────────────────────────────────────────── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.menu-open {
  display: block !important;
}

/* ── Footer social icons ───────────────────────────────────────────────────── */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover {
  background: #d1d5db;
  color: #111827;
}

/* ── Badge pill ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1.5rem;
}

/* ── Section headings ──────────────────────────────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #000;
  margin: 0 0 0.75rem;
}
.section-heading p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Responsive utilities ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .stat-divider { display: none; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
