/* =========================================================
   FinTrack Marketing Site — styles.css
   Brand: ceyMX  |  Accent gradient #667eea -> #764ba2
   ========================================================= */

:root {
  --brand-1: #667eea;
  --brand-2: #764ba2;
  --accent: #ffb648;
  --dark: #1f2937;
  --muted: #6b7280;
  --bg-soft: #f6f8fc;
  --shadow-sm: 0 4px 14px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 41, 55, 0.12);
  --gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  padding-top: 70px;
  background: #fff;
}

.text-accent { color: var(--accent) !important; }
.bg-light { background: var(--bg-soft) !important; }

/* ===== Navbar ===== */
.navbar {
  background: rgba(31, 41, 55, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease;
  padding: .75rem 0;
}
.navbar.scrolled {
  background: rgba(31, 41, 55, 0.97);
  box-shadow: var(--shadow-sm);
}
.navbar-brand { font-size: 1.4rem; }
.navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  margin: 0 .25rem;
  transition: color .2s;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent) !important; }

.btn-accent {
  background: var(--accent);
  color: #1f2937;
  border: none;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-accent:hover {
  background: #ffa726;
  color: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,182,72,.4);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--gradient);
  overflow: hidden;
  margin-top: -70px;
  padding-top: 70px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.1) 0, transparent 40%);
  pointer-events: none;
}
.hero h1 { line-height: 1.15; }
.hero .badge { font-weight: 500; font-size: .85rem; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

.hero-card-stack {
  position: relative; height: 320px; display: inline-block;
}
.hero-card {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 320px; border-radius: 16px;
  background: #fff;
}
.hero-card-front { top: 0; height: 200px; z-index: 3; }
.hero-card-mid   { top: 30px; height: 200px; opacity: .6; background: #fff; z-index: 2; transform: translateX(-40%) rotate(-6deg); box-shadow: var(--shadow-md); }
.hero-card-back  { top: 60px; height: 200px; opacity: .4; background: #fff; z-index: 1; transform: translateX(-60%) rotate(6deg); box-shadow: var(--shadow-md); }
.bg-accent { background: var(--accent) !important; }

/* ===== Stats ===== */
.stats { background: #fff; }
.stat-num {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ===== Section headings ===== */
section h2.display-6 { letter-spacing: -.02em; }

/* ===== Feature cards ===== */
.feature-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--gradient);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ===== Module cards ===== */
.module-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex; flex-direction: column;
  border-left: 4px solid var(--brand-1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.module-card:hover {
  transform: translateX(4px);
  border-left-color: var(--brand-2);
  box-shadow: var(--shadow-sm);
}
.module-card i {
  font-size: 1.6rem; color: var(--brand-2); margin-bottom: .5rem;
}
.module-card h6 { font-weight: 700; margin-bottom: .35rem; }
.module-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ===== Screenshots ===== */
.screenshot { display: block; text-decoration: none; }
.ph-screen {
  aspect-ratio: 16/10;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.ph-screen::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.2), transparent 60%);
}
.ph-screen i { font-size: 3rem; margin-bottom: .75rem; opacity: .9; }
.ph-screen span { font-size: 1rem; letter-spacing: .02em; }
.screenshot:hover .ph-screen { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ===== About ===== */
.about-stat {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.about-stat i { font-size: 2rem; margin-bottom: .5rem; }
.about-stat h4 { font-weight: 700; margin-bottom: .25rem; }

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.15), transparent 50%);
}

/* ===== FAQ ===== */
.accordion-item {
  border-radius: 10px !important;
  margin-bottom: .75rem;
  border: 1px solid rgba(0,0,0,.07) !important;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  padding: 1.1rem 1.25rem;
}
.accordion-button:not(.collapsed) {
  background: rgba(102,126,234,.08);
  color: var(--brand-2);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: transparent; }

/* ===== Contact ===== */
.contact-info, .contact-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.form-control, .form-select {
  border-radius: 8px;
  padding: .65rem .9rem;
  border: 1px solid #e5e7eb;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 .2rem rgba(102,126,234,.15);
}
.social-icon {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand-2);
  align-items: center; justify-content: center;
  text-decoration: none;
  margin-right: .5rem;
  transition: transform .2s, background .2s, color .2s;
}
.social-icon:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
  background: var(--gradient);
}
.footer a:hover { color: var(--accent) !important; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 999;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; transform: translateY(-4px); }

/* ===== Modal ===== */
#imgModal img { background: #1f2937; min-height: 200px; object-fit: contain; }

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  .hero { text-align: center; }
  .hero h1 { font-size: 2.25rem; }
  .stat-num { font-size: 2rem; }
  .navbar { background: rgba(31,41,55,.97); }
}
