/* =====================================================================
   First Point Ultrexfx Trading Pro — Professional Forex Investment Theme
   ===================================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #0f172a;
  --surface-2: #131d33;
  --surface-3: #18243f;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #e7ecf5;
  --text-muted: #9aa7bd;
  --text-dim: #6b7891;

  --gold: #d4af37;
  --gold-2: #f0cf6b;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --blue: #2f81f7;
  --blue-2: #4f9bff;
  --blue-soft: rgba(47, 129, 247, 0.14);
  --teal: #19c6c8;

  --gain: #2bd576;
  --loss: #ff5d5d;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 18px 50px -18px rgba(212, 175, 55, 0.4);

  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 129, 247, 0.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(212, 175, 55, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--sm { padding: 48px 0; }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-muted); font-size: 17px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--gold-soft);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.text-gold { color: var(--gold); }
.text-blue { color: var(--blue-2); }
.gradient-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1405;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 24px 60px -16px rgba(212,175,55,.55); }
.btn--outline {
  background: rgba(255,255,255,.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--ghost { background: transparent; color: var(--text-muted); padding-left: 6px; padding-right: 6px; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn i, .btn svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% -20%, rgba(212,175,55,.10), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold-2);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: grid; place-items: center;
  color: #1a1405; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-gold);
}
.brand .brand-text small { display: block; font-size: 10px; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; font-weight: 600; }
.brand .brand-text span { color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.04); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; transition: .3s; }

/* ---------- Mega / dropdown ---------- */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 540px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0; visibility: hidden;
  transition: .25s ease;
  box-shadow: var(--shadow);
}
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 10px; }
.mega a:hover { background: rgba(255,255,255,.04); }
.mega .m-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue-2); flex: none; }
.mega .m-ico svg { width: 18px; height: 18px; }
.mega h5 { margin: 0 0 2px; font-size: 14.5px; }
.mega p { margin: 0; font-size: 12.5px; color: var(--text-dim); }

/* ---------- Ticker ---------- */
.ticker {
  background: rgba(7,11,20,.9);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-size: 13.5px;
}
.ticker-track { display: flex; gap: 34px; padding: 11px 0; white-space: nowrap; animation: ticker-scroll 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .up { color: var(--gain); }
.ticker-item .down { color: var(--loss); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47,129,247,.18), transparent 55%),
    radial-gradient(700px 500px at 10% 90%, rgba(212,175,55,.14), transparent 55%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.06; }
.hero p.lead { font-size: 18px; color: var(--text-muted); margin: 22px 0 32px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.trust-row .badge { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); border: 1px solid var(--border); padding: 9px 14px; border-radius: 999px; }
.trust-row .badge svg { width: 16px; height: 16px; color: var(--gold); }

/* Hero stats floating card */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 54px;
  max-width: 560px;
}
.hero-stats .stat {
  background: rgba(15,23,42,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  backdrop-filter: blur(8px);
}
.hero-stats .stat b { display: block; font-size: 26px; color: var(--gold-2); }
.hero-stats .stat span { font-size: 12.5px; color: var(--text-dim); }

/* Hero visual (chart mock) */
.hero-visual { position: relative; }
.chart-card {
  background: linear-gradient(180deg, rgba(19,29,51,.9), rgba(15,23,42,.9));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.chart-card .ch-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-card .ch-pair { font-weight: 700; font-size: 15px; }
.chart-card .ch-price { color: var(--gain); font-weight: 700; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.chart-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--blue-2), rgba(47,129,247,.25)); }
.chart-bars span.dn { background: linear-gradient(180deg, var(--loss), rgba(255,93,93,.2)); }

/* ---------- Hero switcher (3 heroes) ---------- */
.hero-switch {
  position: relative; z-index: 5;
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 30px;
}
.hero-switch button {
  width: 46px; height: 6px; border-radius: 99px;
  background: var(--border-strong); border: none; cursor: pointer; transition: .3s;
}
.hero-switch button.active { background: linear-gradient(90deg, var(--gold), var(--gold-2)); width: 64px; }

.hero-pane { display: none; }
.hero-pane.active { display: block; animation: fadeUp .6s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stats-band .stat { text-align: center; padding: 24px 14px; }
.stats-band .stat b { display: block; font-size: clamp(28px, 4vw, 40px); color: var(--gold-2); }
.stats-band .stat span { color: var(--text-muted); font-size: 14px; }

/* ---------- Logo cloud ---------- */
.logo-cloud { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; opacity: .7; }
.logo-cloud .lc { font-weight: 700; letter-spacing: .04em; color: var(--text-muted); font-size: 18px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; }
.step .num {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--border-strong);
  color: var(--gold-2); display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}

/* ---------- Pricing / plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.plan { display: flex; flex-direction: column; }
.plan .plan-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--gold); color: #1a1405; padding: 4px 10px; border-radius: 99px;
}
.plan h3 { font-size: 20px; }
.plan .roi { font-size: 30px; color: var(--gold-2); font-weight: 800; }
.plan .roi small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.plan ul { margin: 18px 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); }
.plan li svg { width: 17px; height: 17px; color: var(--gain); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ---------- Accordion (FAQ) ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item .q { width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 20px 22px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item .q .chev { transition: transform .3s; color: var(--gold); flex: none; }
.faq-item.open .q .chev { transform: rotate(180deg); }
.faq-item .a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item .a p { padding: 0 22px 22px; color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info .ci:last-child { border: none; }
.contact-info .ci .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-2); display: grid; place-items: center; flex: none; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--gold); }
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 110px 20px 60px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: 38px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg-2); padding: 6px; border-radius: 12px; }
.auth-tabs button { flex: 1; padding: 11px; border-radius: 9px; border: none; background: none; color: var(--text-muted); font-weight: 600; cursor: pointer; }
.auth-tabs button.active { background: var(--gold); color: #1a1405; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-about p { color: var(--text-muted); font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); transition: .2s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(212,175,55,.12), rgba(47,129,247,.12));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 60px;
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero .hero-bg { opacity: .7; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 16px auto 0; font-size: 17px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold); }

/* ---------- Tables ---------- */
.mkt-table { width: 100%; border-collapse: collapse; }
.mkt-table th, .mkt-table td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.mkt-table th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.mkt-table tbody tr { transition: background .2s; }
.mkt-table tbody tr:hover { background: rgba(255,255,255,.03); }
.mkt-table .pair { font-weight: 700; }
.mkt-table .up { color: var(--gain); } .mkt-table .down { color: var(--loss); }

/* ---------- Market cards ---------- */
.mkt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Copy trading ---------- */
.copy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trader { text-align: center; }
.trader .avatar { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--blue), var(--gold)); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; }
.trader .roi { color: var(--gain); font-weight: 700; }

/* ---------- Disclaimer / risk ---------- */
.risk-note {
  border: 1px dashed var(--border-strong);
  background: rgba(255,93,93,.05);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans, .stats-band, .mkt-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .copy-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .nav-links, .nav-actions .btn:not(.btn--outline) { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px; gap: 6px;
  }
  .nav-links.open .mega { position: static; transform: none; opacity: 1; visibility: visible; width: 100%; grid-template-columns: 1fr; box-shadow: none; margin-top: 8px; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .plans, .stats-band, .mkt-cards, .steps, .copy-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 34px 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
