/* ============================================================
   Mad Fans Agency — modern SaaS redesign
   Light fintech aesthetic · emerald accent · Manrope + Inter
   ============================================================ */

:root {
  /* surfaces */
  --paper: #f4f7f5;
  --paper-2: #eef2f0;
  --surface: #ffffff;

  /* ink */
  --ink: #0b1722;
  --ink-2: #1f2d38;
  --slate: #5a6b76;
  --slate-2: #8694a0;

  /* lines */
  --line: #e4eae7;
  --line-2: #eef2f0;

  /* accent — emerald */
  --accent: #0f9d6a;
  --accent-700: #0a7a52;
  --accent-600: #0c8d5f;
  --accent-50: #e6f6ee;
  --accent-100: #cdedda;

  /* radii & shadow */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 34, 0.05), 0 1px 3px rgba(11, 23, 34, 0.04);
  --shadow-md: 0 12px 28px rgba(11, 23, 34, 0.07), 0 2px 8px rgba(11, 23, 34, 0.04);
  --shadow-lg: 0 28px 64px rgba(11, 23, 34, 0.12), 0 8px 24px rgba(11, 23, 34, 0.06);
  --shadow-accent: 0 16px 34px rgba(15, 157, 106, 0.28);

  --ff-display: 'Manrope', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ff-body);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-100); color: var(--ink); }

/* ---------- ambient background ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(11, 23, 34, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 23, 34, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 62%);
}
.bg-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 920px; height: 620px;
  background:
    radial-gradient(closest-side, rgba(15, 157, 106, 0.16), transparent 72%);
  filter: blur(10px);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}
.nav::before {
  content: ""; position: absolute; inset: 0 -100vw;
  background: rgba(244, 247, 245, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(160deg, var(--accent), var(--accent-700));
  color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-accent);
}
.logo-text { font-family: var(--ff-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.logo-text em { font-style: normal; font-weight: 600; color: var(--slate); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 11px 18px; border-radius: 999px;
  font-family: var(--ff-display); font-weight: 700; font-size: 14.5px;
  color: #fff; background: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { background: var(--accent-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------- layout shell ---------- */
.page {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 96px;
}

/* shared eyebrow badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-700);
  font-family: var(--ff-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-dot { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px; align-items: center;
  padding: 28px 0 72px;
}
.hero-copy { position: relative; z-index: 2; }
.brand {
  margin: 22px 0 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.tagline {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.45;
  color: var(--slate);
  font-weight: 400;
}
.tagline strong {
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(transparent 64%, var(--accent-100) 64%);
  padding: 0 3px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  font-family: var(--ff-display); font-weight: 700; font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.cta span { transition: transform .2s ease; }
.cta:hover span { transform: translateX(4px); }
.cta-primary {
  color: #fff;
  background: linear-gradient(160deg, var(--accent), var(--accent-700));
  box-shadow: var(--shadow-accent);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(15, 157, 106, 0.34); }
.cta-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cta-secondary:hover { transform: translateY(-2px); border-color: var(--accent-100); box-shadow: var(--shadow-md); }

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero-pills li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-50);
}

/* ---------- hero dashboard (signature) ---------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -6% -10% -6%;
  background: radial-gradient(closest-side, rgba(15, 157, 106, 0.14), transparent 70%);
  filter: blur(8px); z-index: 0;
}
.dashboard {
  position: relative; z-index: 1;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-top {
  display: flex; align-items: center; gap: 7px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fbfdfc, #f7faf8);
}
.dash-top .dot { width: 10px; height: 10px; border-radius: 50%; background: #d8e0db; }
.dash-top .dot:nth-child(1) { background: #f4b1a8; }
.dash-top .dot:nth-child(2) { background: #f4d79b; }
.dash-top .dot:nth-child(3) { background: #a6dcc0; }
.dash-title {
  margin-left: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--slate-2); text-transform: uppercase;
}
.dash-body { padding: 24px; display: grid; gap: 16px; }

.dash-chart {
  display: flex; align-items: flex-end; gap: 9px;
  height: 110px; padding: 16px;
  border-radius: var(--r-sm);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
}
.dash-chart span {
  flex: 1; border-radius: 6px 6px 3px 3px;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), var(--accent-700));
  opacity: 0.45;
  transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(.2,.7,.3,1) both;
}
.dash-chart span:last-child { opacity: 1; box-shadow: var(--shadow-accent); }
.dash-chart span:nth-child(1) { animation-delay: .05s; }
.dash-chart span:nth-child(2) { animation-delay: .11s; }
.dash-chart span:nth-child(3) { animation-delay: .17s; }
.dash-chart span:nth-child(4) { animation-delay: .23s; }
.dash-chart span:nth-child(5) { animation-delay: .29s; }
.dash-chart span:nth-child(6) { animation-delay: .35s; }
.dash-chart span:nth-child(7) { animation-delay: .41s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.dash-salary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
}
.dash-salary-label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.66); }
.dash-salary-value {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: #fff;
}

.payout {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.payout-check {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent-700);
  font-weight: 800; font-size: 16px;
}
.payout-meta { display: flex; flex-direction: column; line-height: 1.25; }
.payout-meta small { font-size: 12.5px; color: var(--slate-2); font-weight: 500; }
.payout-meta strong {
  font-family: var(--ff-display); font-weight: 700; font-size: 16.5px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* ---------- quick benefits ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 56px;
}
.benefit {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-50); border: 1px solid var(--accent-100);
  font-size: 24px;
}
.benefit h3 { margin: 16px 0 6px; font-family: var(--ff-display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.benefit p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.55; }

/* ---------- section heading ---------- */
.section-head { margin-bottom: 26px; }

/* ---------- content cards ---------- */
.content {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.card {
  position: relative;
  padding: 34px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card-wide { grid-column: 1 / -1; }
.card-index {
  position: absolute; top: 30px; right: 32px;
  font-family: var(--ff-display); font-weight: 800; font-size: 13px;
  letter-spacing: 0.18em; color: var(--slate-2);
}
.card h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.03em; color: var(--ink);
}
.card-emoji {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-50); border: 1px solid var(--accent-100);
  font-size: 21px;
}
.card p { color: var(--slate); font-size: 15.5px; line-height: 1.66; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* payment card emphasis */
.card-pay {
  background:
    radial-gradient(circle at 100% 0%, var(--accent-50), transparent 46%),
    var(--surface);
  border-color: var(--accent-100);
}
.highlight {
  font-family: var(--ff-display); font-weight: 800; color: var(--accent-700);
  font-variant-numeric: tabular-nums;
}

/* tick lists */
.ticks { list-style: none; margin: 0 0 16px; padding: 0; }
.ticks li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.5;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent-700);
  font-size: 11px; font-weight: 800;
}

/* schedule list */
.schedule { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.schedule li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--paper-2); border: 1px solid var(--line-2);
  font-size: 15px; color: var(--ink-2);
}
.schedule strong {
  font-family: var(--ff-display); font-weight: 700; color: var(--accent-700);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- form ---------- */
.form-section { margin-top: 56px; }
.form-card {
  display: grid; grid-template-columns: 0.92fr 1fr; gap: 40px; align-items: center;
  padding: 44px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 0%, var(--accent-50), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form-copy h2 {
  margin: 18px 0 10px;
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; color: var(--ink);
}
.form-copy p { margin: 0; max-width: 380px; color: var(--slate); font-size: 16px; line-height: 1.55; }

form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; }
label span {
  font-family: var(--ff-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate);
}
input {
  width: 100%; min-height: 54px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder { color: var(--slate-2); }
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-50);
}
button[type="submit"] {
  width: 100%; min-height: 54px; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; border: 0; border-radius: var(--r-sm);
  font-family: var(--ff-display); font-weight: 700; font-size: 16px;
  color: #fff; cursor: pointer;
  background: linear-gradient(160deg, var(--accent), var(--accent-700));
  box-shadow: var(--shadow-accent);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
button[type="submit"] span { transition: transform .2s ease; }
button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(15, 157, 106, 0.34); }
button[type="submit"]:hover span { transform: translateX(4px); }
button[type="submit"]:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: var(--shadow-sm); }
.note { margin: 2px 0 0; color: var(--slate-2); font-size: 12.5px; line-height: 1.45; }

/* ---------- footer ---------- */
.footer {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto; padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.footer-mark { font-family: var(--ff-display); font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.footer-mark em { font-style: normal; font-weight: 600; color: var(--slate-2); }

/* ---------- focus visible ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(15, 157, 106, 0.45);
  outline-offset: 2px;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal .7s cubic-bezier(.2,.7,.3,1) forwards; }
.content .reveal:nth-child(1) { animation-delay: .02s; }
.content .reveal:nth-child(2) { animation-delay: .08s; }
.content .reveal:nth-child(3) { animation-delay: .14s; }
.content .reveal:nth-child(4) { animation-delay: .2s; }
.content .reveal:nth-child(5) { animation-delay: .26s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav, .page, .footer { width: min(100% - 32px, 760px); }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .hero-visual { max-width: 460px; }
  .benefits { grid-template-columns: 1fr; }
  .content { grid-template-columns: 1fr; }
  .form-card { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
}

@media (max-width: 560px) {
  .nav { padding: 12px 0; }
  .nav-cta { display: none; }
  .page { padding: 40px 0 72px; }
  .brand { font-size: clamp(40px, 13vw, 60px); }
  .hero-actions { display: grid; }
  .cta { width: 100%; }
  .card, .benefit { padding: 24px; }
  .card-index { top: 26px; right: 24px; }
  .form-card { padding: 26px; }
}

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