/* ==============================
   Page Hero
   ============================== */
.page-hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 0, 208, 0.08) 0%, transparent 68%);
  top: -160px;
  right: -140px;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(38, 71, 255, 0.06) 0%, transparent 68%);
  bottom: -100px;
  left: -100px;
  animation: orbFloat 12s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(18px, -28px) scale(1.04); }
  66%       { transform: translate(-12px, 18px) scale(0.96); }
}

.page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Staggered page-load entrance for hero elements */
.page-hero .hero-badge {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.05s;
}

.page-hero h1 {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.15s;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.page-hero .hero-sub {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.25s;
}

.page-hero .hero-actions {
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.35s;
}

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

/* ==============================
   Features Grid
   ============================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;

  /* stagger-in base state */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Gradient top-line reveal on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

/* Staggered reveal when parent becomes visible */
.features-grid.visible .feature-card           { opacity: 1; transform: translateY(0); }
.features-grid.visible .feature-card:nth-child(1)  { transition-delay: 0.00s; }
.features-grid.visible .feature-card:nth-child(2)  { transition-delay: 0.07s; }
.features-grid.visible .feature-card:nth-child(3)  { transition-delay: 0.14s; }
.features-grid.visible .feature-card:nth-child(4)  { transition-delay: 0.21s; }
.features-grid.visible .feature-card:nth-child(5)  { transition-delay: 0.28s; }
.features-grid.visible .feature-card:nth-child(6)  { transition-delay: 0.35s; }
.features-grid.visible .feature-card:nth-child(7)  { transition-delay: 0.42s; }
.features-grid.visible .feature-card:nth-child(8)  { transition-delay: 0.49s; }
.features-grid.visible .feature-card:nth-child(9)  { transition-delay: 0.56s; }
.features-grid.visible .feature-card:nth-child(10) { transition-delay: 0.63s; }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 16px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover .feature-icon {
  background: var(--brand);
  color: #fff;
  transform: scale(1.06);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==============================
   Feature bullet list
   ============================== */
.feature-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* ==============================
   Split visual column
   ============================== */
.split-visual {
  flex: 1.3;
  min-width: 0;
}

/* ==============================
   Mock UI windows
   ============================== */
.mock-ui {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 0.03em;
}

.mock-body {
  padding: 20px;
}

/* Contact mock */
.mock-contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.mock-contact-info { flex: 1; }

.mock-contact-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.mock-contact-type {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mock-tag {
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--brand-light);
  color: var(--brand);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mock-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.mock-section-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mock-relationship {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: 8px;
  margin-bottom: 6px;
}

.mock-rel-icon { font-size: 1rem; flex-shrink: 0; }
.mock-rel-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.mock-rel-type { font-size: 0.7rem; color: var(--text-muted); }

.mock-stats-row {
  display: flex;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.mock-stat {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-right: 1px solid var(--border);
}

.mock-stat:last-child { border-right: none; }

.mock-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.mock-stat-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Transaction mock */
.mock-txn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mock-txn:last-child { border-bottom: none; }

.mock-txn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-txn--donation  .mock-txn-icon { background: #eef2ff; color: var(--accent); }
.mock-txn--inkind    .mock-txn-icon { background: #fff7ed; color: #d97706; }
.mock-txn--recurring .mock-txn-icon { background: var(--brand-light); color: var(--brand); }
.mock-txn--softcredit .mock-txn-icon { background: #f3f4f6; color: var(--text-muted); }

.mock-txn-info { flex: 1; min-width: 0; }

.mock-txn-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-txn-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mock-txn-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

/* ==============================
   Reports grid
   ============================== */
.reports-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 56px;
}

.report-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-align: left;
  width: calc(33.333% - 11px);
  min-width: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  /* stagger base state */
  opacity: 0;
  transform: translateY(20px);
}

.report-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-lg);
}

.reports-grid.visible .report-card           { opacity: 1; transform: translateY(0); }
.reports-grid.visible .report-card:nth-child(1) { transition-delay: 0.00s; }
.reports-grid.visible .report-card:nth-child(2) { transition-delay: 0.08s; }
.reports-grid.visible .report-card:nth-child(3) { transition-delay: 0.16s; }
.reports-grid.visible .report-card:nth-child(4) { transition-delay: 0.24s; }
.reports-grid.visible .report-card:nth-child(5) { transition-delay: 0.32s; }

/* Need to include transition in base for delay to work */
.report-card {
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.report-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 1px;
}

.report-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.report-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==============================
   Active nav indicator
   ============================== */
.nav-current {
  color: var(--text) !important;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-card {
    width: calc(50% - 8px);
  }

  .split-visual {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 64px 20px 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }

  .report-card {
    width: 100%;
    min-width: unset;
  }

  .reports-grid {
    margin-top: 40px;
  }
}
