/* ============================================================
   FundSignal — marketing site styles
   Dark-luxury fintech. Money-green accent. Glass depth + motion.
   ============================================================ */

:root {
  --bg-0: #05080b;
  --bg-1: #080d12;
  --bg-2: #0c131a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #eaf2ef;
  --text-dim: #b4c2c7;
  --muted: #7f8f99;

  --accent: #1fe07a;        /* money / growth green */
  --accent-2: #18b8ff;      /* electric blue for gradients */
  --accent-soft: rgba(31, 224, 122, 0.12);
  --gold: #e3c27e;
  --bad: #ff6b6b;

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1140px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px var(--accent-soft), 0 18px 50px -18px rgba(31, 224, 122, 0.35);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(31, 224, 122, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(24, 184, 255, 0.08), transparent 55%),
    var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .nav, .footer { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0fb95f);
  color: #042311; box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent-soft), 0 24px 60px -16px rgba(31, 224, 122, 0.55); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
/* keyboard focus + press feedback (a11y) — visible ring for keyboard users only, subtle press for all */
.btn:active { transform: translateY(0) scale(.975); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(31,224,122,0.3); }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 200px 0 120px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 0.86rem; font-weight: 500; margin-bottom: 30px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .4; } }

.hero-title { font-size: clamp(2.6rem, 1.5rem + 5vw, 5.4rem); margin-bottom: 26px; }
.hero-title .strike { position: relative; color: var(--muted); }
.hero-title .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 4px; background: var(--bad); border-radius: 3px; transform: rotate(-2deg); }
.hero-title .grad { background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 660px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--text-dim); margin: 0 0 38px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-trust { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: linear-gradient(transparent, var(--bg-0)); pointer-events: none; }

/* ---------- stats ---------- */
.stats { padding: 20px 0 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; backdrop-filter: blur(8px);
}
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 1.4rem + 2vw, 3rem); color: var(--accent); letter-spacing: -0.03em; }
.stat-label { color: var(--text-dim); font-size: 0.92rem; margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: 18px; }
.lead { color: var(--text-dim); font-size: 1.1rem; }

/* ---------- problem / compare rows ---------- */
.compare-rows { display: grid; gap: 16px; max-width: 940px; margin: 0 auto; }
.crow { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.crow.us { border-color: rgba(31,224,122,0.4); background: linear-gradient(180deg, var(--accent-soft), transparent); box-shadow: var(--glow); }
.crow-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.crow.us .crow-tag { background: var(--accent); color: #042311; }
.crow-flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-dim); font-weight: 500; }
.crow-flow i { color: var(--muted); font-style: normal; }
.crow-flow .bad { color: var(--bad); font-weight: 600; }
.crow-flow .good { color: var(--accent); font-weight: 700; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.step-no { position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: rgba(255,255,255,0.14); }
.step-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(31,224,122,.22); color: var(--accent); margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.step-ico svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.96rem; margin: 0; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .3s, transform .3s var(--ease); }
.cell:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.cell h3 { font-size: 1.25rem; margin-bottom: 10px; }
.cell p { color: var(--text-dim); margin: 0; font-size: 0.97rem; }
.cell p a { color: var(--accent); font-weight: 600; }
.cell-lg { grid-row: span 2; grid-column: span 1; display: flex; flex-direction: column; }
.cell-wide { grid-column: span 2; }
.mini-mail { margin-top: auto; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-size: 0.86rem; }
.mini-mail-row { color: var(--muted); font-size: 0.78rem; }
.mini-mail-subj { color: var(--text); font-weight: 600; margin: 4px 0 8px; }
.mini-mail p { color: var(--text-dim); font-size: 0.86rem; }

/* ---------- compare table ---------- */
.table-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.vtable { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 560px; }
.vtable th, .vtable td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.vtable thead th { font-family: var(--font-display); font-size: 0.95rem; background: var(--bg-1); }
.vtable td:first-child, .vtable th:first-child { color: var(--text); font-weight: 500; }
.them-col { color: var(--muted); }
.us-col { color: var(--accent); font-weight: 600; background: rgba(31,224,122,0.05); }
.vtable tbody tr:last-child td { border-bottom: none; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(31,224,122,0.45); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); box-shadow: var(--glow); transform: translateY(-8px); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #042311; font-weight: 700; font-size: 0.78rem; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; }
.price span { font-size: 1.4rem; vertical-align: super; color: var(--text-dim); }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-sub { color: var(--muted); font-size: 0.92rem; margin: 6px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan li { color: var(--text-dim); font-size: 0.95rem; padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* ---------- cta / form ---------- */
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 56px; }
.cta-copy h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 16px; }
.cta-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--text-dim); }
.cta-points li { color: var(--text); }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: span 2; }
.cta-form .btn { grid-column: span 2; }
.field label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.96rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; }
.form-status { grid-column: span 2; margin: 0; font-size: 0.92rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--bad); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 40px; background: var(--bg-1); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); max-width: 260px; margin: 12px 0 0; font-size: 0.95rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 9px; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-lg { grid-row: span 1; }
  .cell-wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .cta-inner { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; order: 2; }
  .brand { order: 1; }
  .nav-links, .nav-cta { display: none; }
  /* Open menu = one solid dropdown that grows the bar in normal flow (no overlapping panels). */
  .nav.open { background: rgba(6,10,13,0.98); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding-bottom: 18px; }
  .nav.open .nav-links {
    display: flex; order: 3; width: 100%; flex-basis: 100%; flex-direction: column; gap: 0;
    margin-top: 8px; border-top: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: 15px 2px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 1.05rem; }
  .nav.open .nav-cta { display: flex; order: 4; width: 100%; flex-basis: 100%; gap: 10px; margin-top: 16px; }
  .nav.open .nav-cta .btn { flex: 1; padding-top: 13px; padding-bottom: 13px; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 132px 0 72px; }
  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: span 1; }
  .cta-form { grid-template-columns: 1fr; }
  .field-full, .cta-form .btn, .form-status { grid-column: span 1; }
  .section { padding: 72px 0; }
}

/* Comparison table -> stacked cards (no awkward horizontal scroll on phones) */
@media (max-width: 620px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .vtable { min-width: 0; background: transparent; }
  .vtable thead { display: none; }
  .vtable tbody, .vtable tr, .vtable td { display: block; width: 100%; }
  .vtable tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; padding: 4px 2px; }
  .vtable td { border: 0; padding: 11px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; text-align: right; }
  .vtable td:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; text-align: left; border-bottom: 1px solid var(--border); padding-bottom: 12px; color: var(--text); }
  .vtable td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: 0.9rem; text-align: left; white-space: nowrap; }
  .vtable .us-col { background: transparent; }
}

/* Small phones: tighten gutters, stack hero CTAs full-width, ease vertical rhythm */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .stats-grid { gap: 12px; }
  .stat { padding: 20px 14px; }
  .stat-label { font-size: 0.86rem; }
  .hero { padding: 122px 0 60px; }
  .hero-actions { width: 100%; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 38px; }
  .cta-inner { padding: 26px 20px; border-radius: 20px; }
  .plan { padding: 28px 22px; }
  .crow { padding: 18px; gap: 12px; }
  .footer-cols { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* elevation polish — subtle resting depth for a higher-end feel (featured/us keep their glow) */
.stat, .step, .cell, .plan, .crow, .table-wrap, .mini-mail { box-shadow: 0 1px 1px rgba(0,0,0,.32), 0 18px 42px -30px rgba(0,0,0,.9); }


/* The honest note under the pricing anchor. Deliberately quieter than the lead it follows, but NOT
   small-and-grey — it is the sentence that stops an experienced buyer feeling misled later, and the
   whole point is that it gets read. */
.lead.fine-print {
  margin-top: 14px;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-2, #4a423a);
  max-width: 62ch;
  padding-left: 14px;
  border-left: 2px solid var(--line, #d8d0c3);
}
.lead.fine-print em { font-style: normal; font-weight: 650; }
