/* ===== Fex Trader – stylesheet ===== */

:root {
  --bg: #06112e;
  --bg-deep: #040b20;
  --card: #0a1a45;
  --card-hi: #0d2461;
  --border: #16306e;
  --border-hi: #2a4a9a;
  --text: #e8eefb;
  --muted: #b4c3e4;
  --muted-dim: #a2b3d8;
  --gold: #f5c242;
  --gold-hi: #ffd877;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold-hi); }
a:focus-visible,
.btn:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

.gold { color: var(--gold); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); color: var(--bg); }
.btn-ghost { border-color: var(--border-hi); color: var(--text); font-weight: 600; }
.btn-ghost:hover { background: #12265a; color: #fff; }
.btn-small { padding: 12px 22px; font-size: 14px; font-weight: 600; font-family: var(--font-body); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand-logo-small { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.brand-name-small { font-size: 18px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-link { padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-link.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.hero-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-image { flex: 1 1 420px; min-width: 0; }
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.08;
}
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Sections ===== */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-last { padding-bottom: 80px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
}
.section-note { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== About ===== */
.about-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.about-text { flex: 2 1 420px; min-width: 0; }
.about-text p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 640px; }
.about-text p:last-child { margin-bottom: 0; }
.about-facts { flex: 1 1 260px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.fact-value { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

/* ===== Payouts ===== */
.payout-layout { display: flex; flex-wrap: wrap; gap: 20px; }
.total-card {
  flex: 1 1 100%;
  min-width: 0;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.total-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.total-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 10vw, 96px);
  line-height: 1.05;
  color: var(--gold);
}
.total-updated { font-size: 14px; color: var(--muted); }

.payout-list { flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.payout-card {
  flex: 1 1 320px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payout-firm { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.payout-meta { font-size: 14px; color: var(--muted); }
.payout-proof {
  margin-top: 8px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.payout-proof-empty {
  border: 1.5px dashed var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ===== Cards (referrals + social) ===== */
.card-row { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-social {
  flex-basis: 240px;
  gap: 10px;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  border-color: var(--border-hi);
}
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.card-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card-code { font-size: 14px; color: var(--muted); }
.card-code strong { color: var(--gold); }
.card .btn { margin-top: 6px; padding: 14px 24px; font-size: 15px; }
.card-social .btn { margin-top: 10px; padding: 13px 24px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-nav a { padding: 8px 0; }
.disclaimer { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted-dim); max-width: 900px; }
.copyright { font-size: 13px; color: var(--muted-dim); }

/* ===== Tablet / phone ===== */
@media (max-width: 760px) {
  .hero { padding-top: 40px; padding-bottom: 32px; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .section-head h2 { font-size: 30px; }
  .total-card { padding: 28px; }
  .nav { gap: 4px 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
