/* FxMath Elliott Wave Pro — landing page
   One stylesheet, no framework, no webfonts: the page must load in under a
   second on a phone in a trading group. */

:root {
  --bg: #080b11;
  --bg-2: #0b1018;
  --panel: #111722;
  --panel-2: #161d2a;
  --border: #1e2836;
  --border-2: #2a3648;
  --text: #e8eef7;
  --muted: #93a3b8;
  --gold: #f5c542;
  --gold-dim: #c99a1e;
  --green: #2ecc8f;
  --red: #ff5c72;
  --blue: #4f9cf9;
  --max: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.25rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
strong { color: #fff; font-weight: 650; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 17, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 11, 17, .92); }
.nav-in {
  display: flex; align-items: center; gap: 28px;
  height: 68px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .04em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 22px; flex: none; }
.logo span { font-size: 13.5px; }
.logo em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 13.5px; }
.nav-links a { color: var(--muted); font-weight: 550; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
  white-space: nowrap; text-decoration: none !important;
}
.btn-primary { background: var(--gold); color: #15130a; box-shadow: 0 8px 26px -10px rgba(245, 197, 66, .7); }
.btn-primary:hover { background: #ffd45c; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 720px;
  background: radial-gradient(circle at 60% 30%, rgba(245,197,66,.13), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 44px; justify-items: center; text-align: center; }
.hero-copy { max-width: 780px; }
.hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero-cta { justify-content: center; }
.hero-note { justify-content: center; }
.hero-shot { width: 100%; max-width: 1000px; }
.hero-shot img { border-bottom: 1px solid var(--border); }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--gold); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 18px; }
.hero-note { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.shot {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 10px 14px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--border); background: var(--panel-2);
}

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.stat { padding: 26px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
}

/* ---------- feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.25);
  color: var(--gold); font-size: 16px; margin-bottom: 14px;
}

/* ---------- alternating rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.row + .row { margin-top: 64px; }
.row.flip { grid-template-columns: 1.3fr 1fr; }
.row.flip .row-text { order: 2; }
@media (max-width: 900px) {
  .row, .row.flip .row-text { grid-template-columns: 1fr; order: 0; gap: 28px; }
}
.row-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.row-text p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: #c8d4e4; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800;
}

/* ---------- comparison ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th { background: var(--panel-2); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.ours { background: rgba(245,197,66,.05); color: #fff; font-weight: 550; }
table.cmp thead th.ours { color: var(--gold); background: rgba(245,197,66,.08); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--red); }

/* ---------- pricing ---------- */
.price-card {
  max-width: 560px; margin: 0 auto; background: linear-gradient(180deg, #141a24, #0c1119);
  border: 1px solid rgba(245,197,66,.35); border-radius: 18px; padding: 34px;
  box-shadow: 0 40px 90px -40px rgba(245,197,66,.35);
}
.price-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.price-note { color: var(--muted); font-size: 13.5px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.price-card li { padding-left: 26px; position: relative; font-size: 14.5px; color: #cbd6e5; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.price-card .btn { width: 100%; }
.fine { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.pay { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 16px; opacity: .75; font-size: 12px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details.q {
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel);
  padding: 0 18px; margin-bottom: 10px;
}
details.q[open] { border-color: var(--border-2); background: var(--panel-2); }
details.q summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; font-size: 15px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; line-height: 1; }
details.q[open] summary::after { content: "–"; }
details.q p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* ---------- cta band ---------- */
.band {
  border: 1px solid var(--border-2); border-radius: 18px; padding: 44px;
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(245,197,66,.14), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--bg-2));
  text-align: center;
}
@media (max-width: 640px) { .band { padding: 30px 20px; } }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); background: var(--bg-2); padding: 52px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer.site h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
footer.site a { display: block; color: #b9c6d6; font-size: 13.5px; padding: 3px 0; }
footer.site a:hover { color: var(--gold); }
.foot-note {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12px; color: #7c8899; line-height: 1.7;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: #15130a; padding: 10px 14px; border-radius: 8px; }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 12px;
  background: rgba(17, 23, 34, .96); border: 1px solid var(--border-2);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9);
  transform: translateY(140%); transition: transform .28s ease;
  text-decoration: none !important; font-size: 13.5px; color: var(--text);
}
.mobile-cta.show { transform: none; }
.mobile-cta b { color: var(--gold); }
@media (max-width: 720px) { .mobile-cta { display: flex; } }

/* ---------- layout utilities (keeps CSP free of inline styles) ---------- */
.mt-14 { margin-top: 14px; }
.mt-22 { margin-top: 22px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }
.mb-12 { margin-bottom: 12px; }
.m-0 { margin: 0; }
.tl { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mw-30 { max-width: 30ch; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .logo .wm { display: none; }
  .logo span { font-size: 14px; }
  .nav-in { gap: 12px; }
  .hero { padding: 46px 0 40px; }
  .hero-note { gap: 10px 14px; }
  .section { padding: 64px 0; }
  .band { padding: 28px 18px; }
  .price { font-size: 2.5rem; }
  .price-card { padding: 24px; }
}

.social { margin: 14px 0 0; display: flex; gap: 8px; align-items: center; }
.social span { color: var(--border-2); }
.social a { font-size: 13px; }
