/* ============================================================
   CCMS Landing Page — Custom Styles
   (Tailwind CDN handles utilities; custom classes live here)
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700&display=swap');

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #0A1628;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
.font-display {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ---- Brand utilities ---- */
.gradient-text {
  background: linear-gradient(90deg, #0F2D55 0%, #1E66C9 45%, #14B8A6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(15,45,85,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,45,85,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-radial-soft {
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(30,102,201,0.10), transparent 60%),
    radial-gradient(800px 400px at 100% 10%, rgba(20,184,166,0.12), transparent 60%);
}

.shine-divider {
  background: linear-gradient(90deg, transparent, rgba(15,45,85,0.18), transparent);
}

/* ---- Shadow utilities ---- */
.shadow-soft {
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
}
.shadow-card {
  box-shadow: 0 10px 30px -12px rgba(15,45,85,0.18), 0 2px 6px rgba(15,45,85,0.06);
}
.shadow-glow {
  box-shadow: 0 20px 60px -20px rgba(20,184,166,0.35);
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-fadeUp  { animation: fadeUp  0.6s ease-out both; }
.animate-floaty  { animation: floaty  6s ease-in-out infinite; }
.animate-spin    { animation: spin    1s linear infinite; }
.animate-pulse   { animation: pulse   2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ---- Navbar ---- */
#navbar {
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  border-bottom: 1px solid #f1f5f9;
}

/* ---- FAQ accordion ---- */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}
.faq-body.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-inner { overflow: hidden; }

/* ---- Modal ---- */
#demo-modal {
  display: none;
}
#demo-modal.open {
  display: flex;
}

/* ---- Dashboard mock bar chart ---- */
.bar-item {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(to top, #2dd4bf, #67e8f9);
}

/* ---- Scrollbar (aesthetic) ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
