/* ============================================================
   Aria — custom styles layered on top of Tailwind CDN
   ============================================================ */

html, body { max-width: 100%; overflow-x: hidden; }

/* --- Header scroll state (toggled from JS) --- */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* --- Subtle dot grid background for hero --- */
.grid-bg {
  background-image: radial-gradient(rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* --- Scroll reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- Feature cards --- */
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.3);
  border-color: #bfdbfe;
}
.feature-icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: #eff6ff;
  color: #2563eb;
  transition: background 0.25s ease, color 0.25s ease;
}
.feature-icon svg { height: 1.4rem; width: 1.4rem; }
.feature-card:hover .feature-icon { background: #2563eb; color: #fff; }
.feature-title { margin-top: 1rem; font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; font-size: 1.05rem; color: #0f172a; }
.feature-desc { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.5; color: #475569; }

/* --- How it works steps --- */
.step { display: flex; gap: 1rem; }
.step-num {
  flex: none;
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6);
}
.step-title { font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; font-size: 1.15rem; color: #0f172a; }
.step-desc { margin-top: 0.35rem; color: #475569; line-height: 1.55; }

/* --- Principle / quote cards --- */
.quote-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quote-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -22px rgba(15, 23, 42, 0.25); }

/* --- FAQ accordion --- */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.35rem 0.25rem;
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-q:hover { color: #2563eb; }
.faq-chev { flex: none; color: #94a3b8; transition: transform 0.3s ease, color 0.2s ease; }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); color: #2563eb; }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  opacity: 0;
}
.faq-a p { color: #475569; line-height: 1.6; padding-bottom: 0.25rem; }
.faq-item.open .faq-a { max-height: 320px; opacity: 1; padding-bottom: 1.25rem; }

/* --- Footer social --- */
.social-link {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  color: #64748b;
  background: #f1f5f9;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { background: #2563eb; color: #fff; transform: translateY(-2px); }
