/* ─── Custom styles for redesign.html ──────────────────────────────────────── */

/* Import fonts (fallback if HTML import fails) */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Global reset additions ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Navbar: transparent → frosted glass on scroll ────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* ── Hero section – font scaling ─────────────────────────────────────────── */
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ── Stat cards subtle glow on hover ─────────────────────────────────────── */
.stat-card {
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

/* ── Pillar card hover refinements ───────────────────────────────────────── */
.pillar-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ── Feature item hover ──────────────────────────────────────────────────── */
.feature-item {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-2px);
}

/* ── Role cards ──────────────────────────────────────────────────────────── */
.role-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ── Outcome cards ───────────────────────────────────────────────────────── */
.outcome-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.outcome-card:hover {
  transform: translateY(-3px);
}

/* ── Logo fallback visibility ─────────────────────────────────────────────── */
.logo-fallback { display: none; }

/* ── How it works step stagger ───────────────────────────────────────────── */
.hiw-step:nth-child(1) { transition-delay: 0.05s; }
.hiw-step:nth-child(2) { transition-delay: 0.15s; }
.hiw-step:nth-child(3) { transition-delay: 0.25s; }

/* ── Scrollbar refinement ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Selection color ─────────────────────────────────────────────────────── */
::selection { background: rgba(99, 102, 241, 0.2); }

/* ── Modal backdrop animation ────────────────────────────────────────────── */
#demo-modal:not(.hidden) {
  animation: fadeIn 0.2s ease;
}

#modal-content {
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile responsive tweaks ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem; line-height: 1.1; }
}

/* ── Print: hide UI chrome ───────────────────────────────────────────────── */
@media print {
  #navbar, #demo-modal { display: none !important; }
}
