/* ==========================================================
   Hermes Hub — Clean White Theme Effects
   Apple/Stripe/Notion inspired
   ========================================================== */

/* --- Hero Glow — Subtle radial gradient ambient light --- */
.hero-glow {
  position: relative;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Card Glow on Hover --- */
.card-glow {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.card-glow:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(99, 102, 241, 0.08);
  transform: translateY(-4px);
}
.card-glow:hover h3 {
  color: #4f46e5;
}

/* --- Card Top Edge Highlight --- */
.card-highlight {
  position: relative;
  overflow: hidden;
}
.card-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  z-index: 1;
}

/* --- Text Gradient (heading effect — subtle dark gradient) --- */
.text-gradient {
  background: linear-gradient(180deg, #1d1d1f 30%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Brand Gradient Text --- */
.text-brand-gradient {
  background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Button Glow (primary CTA) --- */
.btn-glow {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.15);
  transition: all 0.2s ease;
}
.btn-glow:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4), 0 8px 24px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}
.btn-glow:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

/* --- Secondary Button --- */
.btn-surface {
  background: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}
.btn-surface:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.18);
}

/* --- Input Focus Ring --- */
.input-focus {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-focus:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* --- Hairline Divider --- */
.hairline {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* --- Gradient Border (for featured/recommended cards) --- */
.gradient-border {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.1), rgba(0, 0, 0, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Page Section Glow (alternate sections subtle separator) --- */
.section-glow {
  position: relative;
}
.section-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

/* --- Stat counter animation --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-up {
  animation: fade-up 0.5s ease forwards;
}

/* --- Smooth scrollbar for light theme --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #fafafa;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
