/* ═══════════════════════════════════════════════════════════
   FINTEK CAPITAL LLC — Design System
   Stack: Tailwind CDN + Alpine.js + AOS + Swiper + Vanilla JS
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --navy:    #0B0F17;
  --surface: #131929;
  --surface2:#1a2235;
  --indigo:  #3D4FC7;
  --gold:    #F2C94C;
  --gold2:   #F7A825;
  --slate:   #A9B3C2;
  --white:   #F5F7FB;
  --radius:  1rem;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--navy); color: var(--white); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Selection */
::selection { background: rgba(242,201,76,.2); color: var(--white); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(242,201,76,.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(242,201,76,.6); }

/* ── Page Loader ────────────────────────────────────────── */
#page-loader {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--indigo), var(--gold));
  z-index: 9999; animation: loaderRun 1s ease-out forwards;
}
@keyframes loaderRun { to { width: 100%; opacity: 0; } }

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Syne', sans-serif; }
.hero-heading { font-family: 'Syne', sans-serif; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.section-heading { font-family: 'Syne', sans-serif; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }

/* ── Text effects ───────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.shimmer-text {
  background: linear-gradient(90deg, var(--gold) 0%, #fff 45%, var(--gold) 55%, var(--gold2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ── Section Labels ─────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
}
.section-label::before {
  content: ''; display: block; width: 1.75rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 99px;
}

/* ── Animated Background Orbs ───────────────────────────── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; will-change: transform;
}
.orb-indigo { background: radial-gradient(circle, rgba(61,79,199,.55), transparent 65%); }
.orb-gold   { background: radial-gradient(circle, rgba(242,201,76,.25), transparent 65%); }
.orb-cyan   { background: radial-gradient(circle, rgba(14,165,233,.25), transparent 65%); }

@keyframes orbFloat  { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(45px,-30px) scale(1.07)} 66%{transform:translate(-30px,25px) scale(0.94)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-35px,40px) scale(1.05)} 66%{transform:translate(50px,-18px) scale(0.96)} }
.orb-1 { animation: orbFloat  11s ease-in-out infinite; }
.orb-2 { animation: orbFloat2 15s ease-in-out infinite; }
.orb-3 { animation: orbFloat  19s ease-in-out infinite 4s; }

/* ── Grid / Mesh Overlay ────────────────────────────────── */
.grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 30%, transparent 100%);
}

/* ── Glassmorphism Cards ────────────────────────────────── */
.glass {
  background: rgba(255,255,255,.038);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.glass:hover {
  background: rgba(255,255,255,.062);
  border-color: rgba(242,201,76,.28);
}
.glass-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(242,201,76,.18);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy); font-weight: 700; border-radius: .75rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(242,201,76,.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(242,201,76,.4); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid rgba(242,201,76,.4); color: var(--gold); font-weight: 600; border-radius: .75rem;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-outline:hover { background: rgba(242,201,76,.08); border-color: rgba(242,201,76,.7); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid rgba(245,247,251,.1); color: var(--slate); font-weight: 600; border-radius: .75rem;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(245,247,251,.3); color: var(--white); }

/* ── Logo — already white (logo-header.png), just hover dim ─ */
.nav-logo {
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .85; }

/* ── Nav ────────────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(11,15,23,.94) !important;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}
.nav-dropdown {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: .875rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.nav-link {
  color: var(--slate); font-size: .875rem; font-weight: 500;
  padding: .5rem .75rem; border-radius: .5rem;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }

/* ── Mobile Sticky Bar ──────────────────────────────────── */
.mobile-bar { box-shadow: 0 -8px 40px rgba(0,0,0,.6); }

/* ── Stats ──────────────────────────────────────────────── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(242,201,76,.06), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat-card:hover::after { opacity: 1; }
.counter-val { font-family: 'Syne', sans-serif; }

/* ── Program Cards ──────────────────────────────────────── */
.program-featured {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.program-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0,0,0,.4), 0 0 0 1px rgba(242,201,76,.22);
  border-color: rgba(242,201,76,.22);
}
.program-small {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.program-small:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.055);
  border-color: rgba(242,201,76,.25);
}

/* ── Feature Icon ───────────────────────────────────────── */
.feature-icon {
  background: linear-gradient(135deg, rgba(61,79,199,.18), rgba(242,201,76,.08));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: .875rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-icon:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(61,79,199,.2); }

/* ── Deal Tombstones ────────────────────────────────────── */
.tombstone {
  background: linear-gradient(145deg, rgba(61,79,199,.09), rgba(242,201,76,.04));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition), border-color var(--transition);
}
.tombstone:hover { transform: translateY(-4px); border-color: rgba(242,201,76,.25); }
.tombstone-amount {
  font-family: 'Syne', sans-serif; font-size: 2.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: rgba(242,201,76,.25); }
.stars { color: var(--gold); letter-spacing: .1em; font-size: 1rem; }
.quote-mark {
  font-family: Georgia, serif; font-size: 5rem; line-height: 1;
  color: rgba(242,201,76,.15); margin-bottom: -.5rem;
}

/* ── Swiper Overrides ───────────────────────────────────── */
.swiper-pagination-bullet {
  background: rgba(255,255,255,.25) !important;
  opacity: 1 !important; transition: all .3s !important;
}
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 1.5rem !important; border-radius: 4px !important;
}
.swiper-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(19,25,41,.9); border: 1px solid rgba(242,201,76,.3);
  color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 10;
}
.swiper-btn:hover { background: rgba(242,201,76,.1); border-color: rgba(242,201,76,.6); }
.swiper-btn svg { width: 1rem; height: 1rem; }

/* ── Badges ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .3rem .8rem; }
.badge-gold   { background: rgba(242,201,76,.12); color: var(--gold);   border: 1px solid rgba(242,201,76,.28); }
.badge-indigo { background: rgba(61,79,199,.15);  color: #a5b4fc;       border: 1px solid rgba(61,79,199,.3); }
.badge-green  { background: rgba(16,185,129,.12); color: #34d399;       border: 1px solid rgba(16,185,129,.28); }
.badge-live::before { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Dividers ───────────────────────────────────────────── */
.gradient-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1) 40%, rgba(255,255,255,.1) 60%, transparent); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.25rem 1.5rem; text-align: left; cursor: pointer;
  background: transparent; border: none; gap: 1rem;
  transition: background .2s;
}
.faq-trigger:hover { background: rgba(255,255,255,.025); }
.faq-icon {
  width: 1.625rem; height: 1.625rem; border-radius: 50%;
  border: 1.5px solid rgba(242,201,76,.4); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.125rem; font-weight: 300;
  transition: transform .3s, background .2s, border-color .2s; line-height: 1;
  margin-top: .1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(242,201,76,.1); border-color: var(--gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 1.5rem 1.375rem; }
.faq-item.open .faq-answer { max-height: 800px; }

/* ── Featured Snippet / Direct Answer ──────────────────── */
.answer-box {
  background: rgba(16,185,129,.07);
  border-left: 3px solid #10b981;
  border-radius: 0 .75rem .75rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.answer-box p { color: var(--slate); font-size: .9rem; line-height: 1.7; margin: 0; }

/* ── Input Fields ───────────────────────────────────────── */
.input-field {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .75rem;
  padding: .875rem 1rem;
  color: var(--white); font-size: .875rem;
  outline: none; transition: border-color .2s, background .2s;
}
.input-field:focus { border-color: rgba(242,201,76,.5); background: rgba(255,255,255,.06); }
.input-field::placeholder { color: rgba(169,179,194,.4); }
select.input-field { appearance: none; cursor: pointer; }
.input-field option { background: var(--surface2); color: var(--white); }

/* ── Range Slider ───────────────────────────────────────── */
input[type=range] { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); cursor: pointer; border: 3px solid var(--navy); box-shadow: 0 2px 8px rgba(242,201,76,.4); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); cursor: pointer; border: 3px solid var(--navy); }

/* ── Step indicator ─────────────────────────────────────── */
.step-num {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(61,79,199,.4);
}
.step-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)) !important; color: var(--navy) !important; box-shadow: 0 4px 12px rgba(242,201,76,.35) !important; }

/* ── Blog Cards ─────────────────────────────────────────── */
.blog-card { transition: transform var(--transition); }
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { overflow: hidden; }
.blog-card-img img { transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

/* ── Advisory Cards ─────────────────────────────────────── */
.advisory-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.advisory-card:hover { transform: translateY(-5px); border-color: rgba(242,201,76,.25); }

/* ── Team Cards ─────────────────────────────────────────── */
.team-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition);
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(242,201,76,.2); }
.team-avatar {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: linear-gradient(135deg, rgba(61,79,199,.25), rgba(242,201,76,.12));
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.team-insight {
  border-left: 2px solid rgba(242,201,76,.3);
  padding-left: .875rem;
  font-style: italic;
  color: var(--slate);
  font-size: .8rem;
  line-height: 1.65;
}

/* ── Contact Form ───────────────────────────────────────── */
.contact-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

/* ── Option Buttons (quote form) ────────────────────────── */
.opt-btn {
  border: 1px solid rgba(245,247,251,.1); border-radius: .75rem;
  padding: .85rem 1rem; text-align: left; transition: all .2s;
  cursor: pointer; background: transparent; color: var(--slate);
}
.opt-btn:hover { border-color: rgba(245,247,251,.25); color: var(--white); }
.opt-btn.selected { border-color: var(--gold); background: rgba(242,201,76,.08); color: var(--white); }

/* ── Progress steps (quote form) ────────────────────────── */
.pstep { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; transition: all .3s; }
.pstep-done   { background: var(--gold); color: var(--navy); }
.pstep-active { background: var(--indigo); color: #fff; box-shadow: 0 0 0 3px rgba(61,79,199,.3); }
.pstep-todo   { background: rgba(245,247,251,.07); color: var(--slate); }

/* ── Estimator result ───────────────────────────────────── */
.result-card {
  background: rgba(242,201,76,.05);
  border: 1px solid rgba(242,201,76,.2);
  border-radius: 1.25rem;
}
.ltv-track { height: .5rem; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.ltv-bar   { height: 100%; border-radius: 99px; transition: width .5s cubic-bezier(.4,0,.2,1); }

/* ── Footer ─────────────────────────────────────────────── */
.footer-link { color: var(--slate); font-size: .875rem; transition: color .2s; }
.footer-link:hover { color: var(--gold); }
.social-btn {
  width: 2.25rem; height: 2.25rem; border-radius: .625rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); transition: all .2s;
}
.social-btn:hover { color: var(--white); border-color: rgba(242,201,76,.4); background: rgba(242,201,76,.07); }

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3 { animation: none; }
  .shimmer-text { animation: none; }
  [data-aos] { transition: none !important; transform: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-heading { font-size: 2.15rem; }
  .section-heading { font-size: 1.75rem; }
  .tombstone-amount { font-size: 1.75rem; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .mobile-bar, nav, #page-loader { display: none; }
  body { background: #fff; color: #000; }
}
