/* ============================================================
   Triumphant Financial Group — Activity Tracker Landing Page
   Brand palette (Red & Blue blend):
     Deep background:   #0A0E1A
     Dark navy:         #0D1B2A
     Rich blue:         #1C3F6E
     Vivid blue:        #1E6FD9
     Light blue:        #4E9FF5
     Deep red:          #8B0000
     Vivid red:         #C41E3A
     Bright red:        #E63950
     Accent magenta:    #D94080  (blend point)
     Off-white:         #F4F6FA
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #0A0E1A;
  color: #e8edf5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Animated Background ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(196,30,58,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 85% 75%, rgba(30,111,217,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(140,40,120,0.12) 0%, transparent 55%),
    linear-gradient(160deg, #0A0E1A 0%, #0D1525 50%, #0A0E1A 100%);
  z-index: 0;
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 36px;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(200, 50, 80, 0.2);
  box-shadow:
    0 2px 24px rgba(0,0,0,0.5),
    0 1px 0 rgba(30,111,217,0.12) inset;
}

/* TFG Logo image */
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.25s, filter 0.25s;
}

.logo-link:hover {
  opacity: 0.88;
  filter: drop-shadow(0 0 10px rgba(230,57,80,0.45));
}

.tfg-logo-img {
  height: 46px;
  width: auto;
  display: block;
  /* Invert to white so it shows on the dark background */
  filter: invert(1) brightness(1.05);
  transition: filter 0.3s ease;
}

.logo-link:hover .tfg-logo-img {
  filter: invert(1) brightness(1.1) drop-shadow(0 0 8px rgba(230,57,80,0.6));
}

/* Home icon link */
.home-icon-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0bfd8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid rgba(230,57,80,0.35);
  border-radius: 50px;
  background: rgba(196,30,58,0.07);
  transition: all 0.25s ease;
}

.home-icon-link i {
  font-size: 1rem;
  color: #E63950;
  transition: color 0.25s;
}

.home-icon-link:hover {
  background: rgba(196,30,58,0.18);
  border-color: rgba(230,57,80,0.75);
  color: #ffffff;
  box-shadow:
    0 0 18px rgba(230,57,80,0.25),
    0 0 6px rgba(30,111,217,0.15);
}

.home-icon-link:hover i { color: #ff6077; }

/* ── Main Section ── */
.main-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  gap: 52px;
}

/* Section intro */
.section-intro {
  text-align: center;
  max-width: 680px;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* Red-to-blue gradient text */
  background: linear-gradient(90deg, #E63950 0%, #9040C8 50%, #4E9FF5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow:
    0 2px 30px rgba(196,30,58,0.2),
    0 2px 50px rgba(30,111,217,0.15);
}

.section-subheading {
  font-size: 1rem;
  font-weight: 400;
  color: #8A9DC0;
  line-height: 1.6;
  margin-bottom: 28px;
}

.heading-divider {
  width: 80px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, #C41E3A, #9040C8, #1E6FD9);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(196,30,58,0.4);
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 980px;
}

/* ── Quick Card ── */
.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px 32px;
  border-radius: 18px;
  border: 1px solid rgba(180, 50, 80, 0.22);
  background: rgba(13, 22, 42, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  /* Entrance animation */
  animation: cardEnter 0.75s ease both;
}

.quick-card:nth-child(1) { animation-delay: 0.1s; }
.quick-card:nth-child(2) { animation-delay: 0.28s; }

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card 1 — Mandatory: Red-dominant border */
.card-mandatory {
  border-color: rgba(196,30,58,0.22);
}

/* Card 2 — Optional: Blue-dominant border */
.card-optional {
  border-color: rgba(30,111,217,0.22);
}

.card-mandatory:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(230,57,80,0.6);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 40px rgba(196,30,58,0.2),
    0 0 80px rgba(30,111,217,0.08),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.card-optional:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(78,159,245,0.6);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 40px rgba(30,111,217,0.22),
    0 0 80px rgba(196,30,58,0.07),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Glowing backdrop on hover */
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-mandatory .card-glow {
  background: radial-gradient(ellipse at 30% 40%, rgba(196,30,58,0.3) 0%, rgba(30,111,217,0.08) 50%, transparent 70%);
}

.card-optional .card-glow {
  background: radial-gradient(ellipse at 70% 40%, rgba(30,111,217,0.3) 0%, rgba(196,30,58,0.08) 50%, transparent 70%);
}

.quick-card:hover .card-glow { opacity: 1; }

/* Shine sweep effect */
.card-shine {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.05) 50%,
    transparent 70%
  );
  transform: skewX(-15deg) translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}

.quick-card:hover .card-shine {
  transform: skewX(-15deg) translateX(500%);
  transition: transform 0.72s ease;
}

/* Badge */
.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(196,30,58,0.25);
  border: 1px solid rgba(230,57,80,0.5);
  color: #ff8090;
}

.card-badge--optional {
  background: rgba(30,111,217,0.2);
  border-color: rgba(78,159,245,0.45);
  color: #7bbcff;
}

/* Icon */
.card-icon-wrap { display: flex; align-items: flex-start; }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-mandatory .card-icon {
  background: linear-gradient(135deg, #7B0A1A, #C41E3A);
  color: #ffb0bc;
  box-shadow: 0 6px 24px rgba(196,30,58,0.45);
}

.card-optional .card-icon {
  background: linear-gradient(135deg, #0D2D5E, #1E6FD9);
  color: #a8d0ff;
  box-shadow: 0 6px 24px rgba(30,111,217,0.4);
}

.card-mandatory:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 32px rgba(230,57,80,0.5);
}

.card-optional:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 32px rgba(78,159,245,0.5);
}

/* Card body */
.card-body { flex: 1; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.25s;
}

.card-mandatory:hover .card-title { color: #ff8090; }
.card-optional:hover .card-title  { color: #7bbcff; }

.card-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6A85AA;
  line-height: 1.65;
  transition: color 0.25s;
}

.card-mandatory:hover .card-desc { color: #FFAAB5; }
.card-optional:hover .card-desc  { color: #A8CEFF; }

/* Card footer / CTA */
.card-footer {
  display: flex;
  align-items: center;
  padding-top: 8px;
}

.card-mandatory .card-footer {
  border-top: 1px solid rgba(196,30,58,0.2);
}

.card-optional .card-footer {
  border-top: 1px solid rgba(30,111,217,0.2);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s, gap 0.25s;
}

.card-mandatory .card-cta { color: #E63950; }
.card-optional  .card-cta { color: #4E9FF5; }

.card-cta i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.card-mandatory:hover .card-cta { color: #ff6b80; gap: 10px; }
.card-optional:hover  .card-cta { color: #7bbcff; gap: 10px; }
.quick-card:hover .card-cta i   { transform: translateX(4px); }

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 24px 16px;
  font-size: 0.78rem;
  color: #3A4F6A;
  border-top: 1px solid rgba(100,30,50,0.2);
}

.site-footer a {
  color: #E63950;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: #ff8090; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .tfg-logo-img { height: 36px; }
  .home-label { display: none; }
  .home-icon-link { padding: 8px 12px; }
  .main-section { padding: 100px 16px 60px; gap: 36px; }
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .quick-card { padding: 28px 22px 24px; }
}
