:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --panel: #ffffff;
  --line: #dde3ee;
  --text: #0b1f3a;
  --muted: #4a5a73;
  --blue: #1257d6;
  --blue-dark: #0b3d91;
  --yellow: #ffc72c; /* the logo yellow */
  --yellow-dark: #e5a900;
  --radius: 16px;
  --head: "Montserrat", "Arial", sans-serif;
  --body: "Inter", "Arial", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); }
strong { color: var(--blue); font-weight: 600; }
.mt-name { color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; } /* the Masters Traders name, in grey capitals */

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 .78rem/1.4 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lead, .lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0 0 28px; }
.lead { font-size: 1.15rem; }

/* Preloader: logo and a bar that fills while the page loads, then fades out */
.preloader { display: none; }
.is-loading body { overflow: hidden; }
.is-loading .preloader, .preloader.is-done { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--bg); }
.preloader.is-done { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.preloader img { width: 84px; height: 84px; border-radius: 18px; animation: preloader-pulse 1.6s ease-in-out infinite; }
.preloader-bar { width: min(240px, 60vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--yellow); }
@keyframes preloader-pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .preloader img { animation: none; } }

/* Depth reveal: blocks come from the back to the front (site.js adds .reveal and .is-in) */
.reveal { opacity: 0; transform: perspective(900px) translate3d(0, 24px, -220px); filter: blur(6px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .9s ease; transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.is-loading .reveal.is-in { opacity: 0; transform: perspective(900px) translate3d(0, 24px, -220px); filter: blur(6px); } /* wait behind the counter */
.is-ready .hero-stage { animation: hero-in 1.6s cubic-bezier(.16, 1, .3, 1) both, hero-breathe 9s 1.6s ease-in-out infinite alternate; }
@keyframes hero-in { from { opacity: 0; transform: scale(.82); filter: blur(10px); } to { opacity: 1; transform: scale(1); filter: none; } }
@keyframes hero-breathe { to { transform: scale(1.025); } } /* small, so the side words stay inside */

/* Living hero: the chart draws itself, a shine sweeps over the screen and blue sparks rise. It scrolls with the page. */
.hero { overflow: clip; }
.hero-media { position: relative; overflow: clip; }
.hero-stage { position: relative; }
.hero-shine { position: absolute; left: 31.25%; top: 46.7%; width: 37.5%; height: 41.7%; border-radius: 1.1vw; overflow: hidden; pointer-events: none; mix-blend-mode: screen; } /* over the screen in the drawing */
.hero-shine::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(190, 220, 255, .22), transparent); transform: skewX(-18deg); opacity: 0; }
.is-ready .hero-shine::before { animation: hero-shine 7s 2s ease-in-out infinite; }
@keyframes hero-shine { 0% { left: -30%; opacity: 1; } 45%, 100% { left: 120%; opacity: 1; } }
.hero-candles > g { transform-box: fill-box; transform-origin: 50% 100%; }
.is-ready .hero-candles > g { animation: hero-candle .5s calc(.5s + var(--i) * 45ms) cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hero-candle { from { opacity: 0; transform: scaleY(0); } }
.hero-ma { stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-ready .hero-ma { animation: hero-draw 1.8s .6s ease-out both; }
@keyframes hero-draw { from { stroke-dashoffset: 1; } }
.hero-dot { transform-box: fill-box; transform-origin: center; }
.is-ready .hero-dot { animation: hero-pulse 1.8s 2.4s ease-in-out infinite; }
@keyframes hero-pulse { 50% { transform: scale(1.7); opacity: .55; } }
@media (max-width: 600px) { .hero-words, .hero-sub { display: none; } } /* too small to read on a phone */
.hero-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.hero-dust i { position: absolute; left: var(--x); bottom: -2%; width: var(--s); height: var(--s); border-radius: 50%; background: #bcd8ff; box-shadow: 0 0 8px 2px rgba(110, 170, 255, .55); opacity: 0; }
.is-ready .hero-dust i { animation: hero-dust var(--t) var(--d) linear infinite; }
@keyframes hero-dust { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .85; } 80% { opacity: .5; } 100% { transform: translate(var(--dx), -105cqh); opacity: 0; } }
.split-img img { transform: translate3d(0, var(--py, 0), 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .is-ready .hero-stage, .is-ready .hero-shine::before, .is-ready .hero-dust i, .is-ready .hero-candles > g, .is-ready .hero-ma, .is-ready .hero-dot { animation: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 700 .95rem/1 var(--head); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-gold { background: var(--yellow); color: var(--text); box-shadow: 0 6px 24px rgba(255, 199, 44, .35); }
.btn-gold:hover { transform: translateY(-1px); background: #ffd24f; box-shadow: 0 10px 30px rgba(255, 199, 44, .45); }
.btn-ghost { border: 1px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: rgba(18, 87, 214, .06); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 800 1.35rem/1 var(--body); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand b { color: #ffc72c; font-weight: 800; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; }
.hero-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-text { padding: 48px 0 72px; }
.hero-text h1 { max-width: 20ch; margin-bottom: 18px; }
.hero-sub-m { display: none; }
@media (max-width: 600px) { .hero-sub-m { display: block; margin: 0 0 28px; color: var(--muted); font-size: 1.05rem; } }

/* Two columns */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.split-rev { grid-template-columns: .8fr 1.2fr; }
.split-wide { grid-template-columns: 1.1fr .9fr; margin-top: 12px; }
.split-img img { border-radius: var(--radius); margin-inline: auto; box-shadow: 0 18px 40px rgba(11, 31, 58, .18); }
.split-img img { max-height: 620px; width: auto; }
.phone-fig { margin: 0; }
.phone-fig figcaption { max-width: 360px; margin: 44px auto 0; text-align: center; color: var(--muted); } /* clear of the image's float while scrolling */
.phone-fig figcaption strong { display: block; margin-bottom: 6px; color: var(--text); font: 700 1.15rem/1.3 var(--head); }
.role { font: italic 500 1.1rem/1 var(--body); color: var(--muted); margin: -4px 0 24px; }

/* Lists */
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
h2 + .bullets, h2 + .cards { margin-top: 24px; }
#por-que { padding-top: 24px; } /* same white as the hero text above, so a small gap is enough */
.hero-text > :last-child { margin-bottom: 0; }
#por-que h2, #por-que .bullets { max-width: 760px; } /* single column: keep lines short enough to read */
.bullets li { position: relative; padding-left: 28px; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 199, 44, .3); }
.features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 18px; align-items: flex-start; }
.features p { margin: 4px 0 0; color: var(--muted); }
.num { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--text); font: 700 .85rem/1 var(--head); }
.quote { margin: 32px 0 0; padding: 20px 24px; background: var(--bg-alt); border-left: 4px solid var(--yellow); }
.quote p { margin: 0; font: italic 500 1.1rem/1.5 var(--body); color: var(--text); }
.quote cite { display: block; margin-top: 8px; font: 600 .9rem/1.4 var(--body); color: var(--muted); }
.dare { margin: 24px 0 0; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--head); color: var(--blue); }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 12px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 24px rgba(11, 31, 58, .06); }
.card p { margin: 10px 0 0; color: var(--muted); }

/* Membership */
.pricing { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; margin-top: 12px; }
.price-card { text-align: center; padding: 44px 32px; border-radius: 22px; border: 1px solid var(--gold-dark); background: radial-gradient(120% 100% at 50% 0%, rgba(217, 176, 86, .18), transparent 60%), var(--panel); }
.price-label { font: 600 .85rem/1.4 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0; }
.price { font: 800 clamp(3.4rem, 8vw, 5rem)/1 var(--head); margin: 14px 0 26px; background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { font-size: 1.2rem; }

/* Referral plan */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.level, .ranks div { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.level span, .ranks span { color: var(--muted); font-size: .88rem; }
.level strong, .ranks strong { font: 800 1.5rem/1 var(--head); }
.sub { margin: 44px 0 8px; font-size: 1.3rem; }
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.note { color: var(--muted); font-size: .85rem; margin: 18px 0 0; }
.wide-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* Final call */
/* The final call is deep navy so the yellow button stands out */
.cta { --text: #ffffff; --muted: #c4d0e4; background: radial-gradient(80% 120% at 80% 50%, rgba(18, 87, 214, .45), transparent 60%), #0b1f3a; color: var(--text); }
.site-footer { background: var(--bg-alt); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .85rem; }
.site-footer p { margin: 0 0 10px; max-width: 90ch; }
.risk strong { color: var(--text); }
.small { opacity: .75; }

@media (max-width: 900px) {
  .nav { display: none; }
  .split, .split-rev, .split-wide, .pricing { grid-template-columns: 1fr; gap: 32px; }
  .split-rev .split-img { order: 2; }
  .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .split-img img { max-height: 460px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .hero-text { padding: 32px 0 56px; }
}
