:root{
  --ink: #0B0F14;
  --panel: #121821;
  --panel-2: #171F2A;
  --line: #232C38;
  --bull: #3FBF88;
  --bull-dim: #2A8863;
  --bear: #E15B5B;
  --bear-dim: #9E4141;
  --gold: #C9A227;
  --paper: #E9ECEF;
  --muted: #8A94A2;
  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--gold); color: var(--ink); }
a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Ticker tape ---------- */
.ticker{
  background: #080B0F;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}
.ticker-track{ display: inline-flex; animation: scroll-left 38s linear infinite; }
.ticker-item{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  padding: 0 22px; color: var(--muted); border-right: 1px solid var(--line);
}
.ticker-item .sym{ color: var(--paper); font-weight:500; }
.ticker-item .up{ color: var(--bull); }
.ticker-item .down{ color: var(--bear); }
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- Nav ---------- */
header.nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 32px; max-width: 1180px; margin: 0 auto;
}
.brand{ display:flex; align-items:baseline; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; }
.brand .amp{ color: var(--gold); font-style: italic; font-weight:450; }
.nav-links{ display:flex; gap: 32px; font-size: 14px; color: var(--muted); align-items:center; }
.nav-links a{ transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active{ color: var(--paper); }
.nav-links a.active{ position:relative; }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-19px; height:2px; background: var(--gold);
}
.nav-cta{
  font-family: var(--font-mono); font-size: 13px; padding: 9px 18px;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease; white-space:nowrap;
}
.nav-cta:hover{ background: var(--gold); color: var(--ink); }
.nav-toggle{
  display:none; background:none; border:none; color: var(--paper); cursor:pointer; padding: 6px;
}
.nav-toggle svg{ width:22px; height:22px; }

/* ---------- Generic page header (non-home hero) ---------- */
.page-header{ padding: 68px 0 48px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow{ margin-bottom:16px; }
.page-header h1{ font-family: var(--font-display); font-weight:600; font-size: clamp(32px, 4.4vw, 48px); line-height:1.08; }
.page-header p.lead{ margin-top:18px; max-width:60ch; color: var(--muted); font-size:16.5px; line-height:1.65; }

/* ---------- Hero (home only) ---------- */
.hero{ position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center; }
.eyebrow{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); display:flex; align-items:center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before{ content:""; width: 7px; height:7px; background: var(--bull); border-radius: 50%; box-shadow: 0 0 0 3px rgba(63,191,136,0.18); }
h1{ font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.01em; }
h1 em{ font-style: italic; font-weight: 450; color: var(--bull); }
.hero p.lead{ margin-top: 22px; max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-ctas{ display:flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn{
  font-family: var(--font-mono); font-size: 14px; padding: 14px 26px; border-radius: 2px;
  display:inline-flex; align-items:center; gap: 8px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary{ background: var(--bull); color: #06120C; font-weight: 600; }
.btn-primary:hover{ transform: translateY(-1px); background: #4fd49a; }
.btn-ghost{ border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover{ border-color: var(--muted); }
.btn-block{ width:100%; justify-content:center; }

.hero-meta{
  display:flex; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}
.hero-meta b{ color: var(--paper); display:block; font-size: 18px; font-weight: 600; }

.chart-panels{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-panel{
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 6px; padding: 16px 16px 12px; position: relative;
}
.chart-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom: 10px; font-family: var(--font-mono); }
.chart-head .pair{ font-size: 12.5px; letter-spacing: 0.02em; color: var(--paper); }
.chart-head .price{ font-size: 18px; font-weight: 600; color: var(--bull); }
.chart-head .price.down{ color: var(--bear); }
#candleChartNQ, #candleChartES{ width:100%; height: auto; display:block; }
.chart-foot{ display:flex; justify-content:space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Sections ---------- */
section{ padding: 96px 0; }
section.tight{ padding: 64px 0; }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-tag{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
h3{ font-family: var(--font-display); font-weight: 600; }
.section-head p{ margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 54ch; }

/* Concept / method cards */
.method-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.method-grid.cols-2{ grid-template-columns: repeat(2,1fr); }
.method-card{ background: var(--panel); padding: 34px 30px; }
.method-card .glyph{ width: 34px; height:34px; margin-bottom: 22px; }
.method-card h3{ font-size: 21px; margin-bottom: 12px; }
.method-card p{ color: var(--muted); font-size: 14.5px; line-height:1.65; }
.method-card .tag{
  display:inline-block; font-family: var(--font-mono); font-size:10.5px; letter-spacing:0.06em;
  color: var(--gold); border:1px solid var(--line); border-radius:20px; padding:3px 10px; margin-bottom:16px;
}

/* Curriculum modules (numbered list) */
.module-list{ border-top: 1px solid var(--line); }
.module{
  display:grid; grid-template-columns: 90px 1fr 140px; gap: 24px; align-items:flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.module .num{ font-family: var(--font-mono); font-size: 13px; color: var(--gold); padding-top:4px; }
.module h3{ font-size: 19px; margin-bottom: 8px; }
.module p{ color: var(--muted); font-size: 14.5px; line-height:1.6; max-width: 62ch; }
.module .level{
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align:right; padding-top:6px;
  letter-spacing: 0.04em;
}

/* Stats */
.stats-band{ background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.stats-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align:center; max-width: 560px; margin: 0 auto; }
.stat b{ display:block; font-family: var(--font-mono); font-size: clamp(30px, 4vw, 42px); font-weight: 600; color: var(--bull); }
.stat span{ display:block; margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* Track record */
.record-panel{ background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 30px; }
.record-bars{ display:flex; align-items:flex-end; gap: 8px; height: 160px; margin-top: 30px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.record-bars .bar{ flex:1; border-radius: 2px 2px 0 0; position: relative; transition: transform 0.2s ease; }
.record-bars .bar:hover{ transform: scaleY(1.03); transform-origin: bottom; }
.record-bars .bar.pos{ background: var(--bull-dim); }
.record-bars .bar.neg{ background: var(--bear-dim); align-self:flex-start; }
.record-labels{ display:flex; gap: 8px; margin-top: 10px; }
.record-labels span{ flex:1; text-align:center; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

/* Quotes */
.quote-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card{ border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--panel); }
.quote-card .mark{ color: var(--gold); font-family: var(--font-display); font-size: 34px; line-height:0.5; display:block; margin-bottom: 14px; }
.quote-card p.q{ font-size: 15px; color: var(--paper); line-height: 1.65; margin-bottom: 20px; }
.quote-card .who{ font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.quote-card .who b{ color: var(--paper); font-weight: 500; }

/* Pricing */
.price-single{
  max-width: 480px; margin: 0 auto; border: 1px solid var(--gold); border-radius: 8px;
  padding: 44px 40px; text-align:center;
  background: linear-gradient(180deg, rgba(201,162,39,0.08), var(--panel) 45%);
}
.price-single .cost{ font-family: var(--font-mono); font-size: 56px; font-weight:600; margin: 18px 0 2px; }
.price-single .cost span{ font-size: 15px; color: var(--muted); font-weight:400; }
.price-single .note{ font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.price-single ul{ text-align:left; margin: 0 0 32px; }
.price-single li{
  font-size: 15px; color: var(--paper); padding: 12px 0; border-top: 1px solid var(--line);
  display:flex; gap: 12px;
}
.price-single li::before{ content:"›"; color: var(--bull); font-weight:700; }
.price-compare{ margin-top: 60px; }
.price-compare table{ width:100%; border-collapse: collapse; font-size: 14px; }
.price-compare th, .price-compare td{ padding: 14px 12px; border-bottom: 1px solid var(--line); text-align:left; }
.price-compare th{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing:0.06em; color: var(--muted); text-transform:uppercase; }
.price-compare td.mid, .price-compare th.mid{ text-align:center; }
.price-compare .yes{ color: var(--bull); }
.price-compare .no{ color: var(--muted); }

/* FAQ */
.faq-item{ border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q{
  display:flex; justify-content:space-between; align-items:center; cursor:pointer;
  font-family: var(--font-body); font-weight:500; font-size: 16px;
}
.faq-q .plus{ font-family: var(--font-mono); color: var(--gold); font-size: 20px; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height 0.3s ease; color: var(--muted); font-size: 14.5px; line-height:1.65; }
.faq-item.open .faq-a{ max-height: 240px; margin-top: 14px; }

/* About page */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:start; }
.about-grid p{ color: var(--muted); font-size: 16px; line-height:1.75; margin-bottom: 18px; }
.about-grid p:first-child{ color: var(--paper); font-size: 18px; }

.founder-grid{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items:center; }
.founder-photo img{ width:100%; border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 4/5; object-fit: cover; }
.founder-bio h2{ margin: 10px 0 18px; }
.founder-bio p{ color: var(--muted); font-size: 16px; line-height:1.75; margin-bottom: 16px; }

.timeline{ border-left: 1px solid var(--line); padding-left: 28px; }
.timeline-item{ position:relative; padding-bottom: 30px; }
.timeline-item::before{
  content:""; position:absolute; left:-33px; top:4px; width:9px; height:9px; border-radius:50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.timeline-item .yr{ font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); margin-bottom: 6px; }
.timeline-item h3{ font-size: 17px; margin-bottom: 6px; }
.timeline-item p{ color: var(--muted); font-size: 14px; line-height:1.6; }

/* Contact page */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-field{ margin-bottom: 20px; }
.form-field label{ display:block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing:0.04em; text-transform:uppercase; }
.form-field input, .form-field textarea{
  width:100%; background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 13px 14px; color: var(--paper); font-family: var(--font-body); font-size: 14.5px;
}
.form-field input:focus, .form-field textarea:focus{ outline:none; border-color: var(--gold); }
.form-field textarea{ resize: vertical; min-height: 120px; }
.contact-info .item{ display:flex; gap: 16px; margin-bottom: 26px; }
.contact-info .item .ico{ width:20px; height:20px; flex-shrink:0; margin-top:2px; }
.contact-info .item h3{ font-size: 15px; margin-bottom: 4px; }
.contact-info .item p{ color: var(--muted); font-size: 14px; }
.form-status{ font-family: var(--font-mono); font-size: 13px; margin-top: 14px; min-height: 18px; }
.form-status.ok{ color: var(--bull); }
.form-status.error{ color: var(--bear); }

/* CTA band */
.cta-band{ text-align:center; padding: 100px 0; border-top: 1px solid var(--line); }
.cta-band h2{ max-width: 620px; margin: 0 auto; }
.cta-band .btn{ margin-top: 32px; }

/* Footer */
footer{ border-top: 1px solid var(--line); padding: 44px 0 30px; background: #080B0F; }
.foot-grid{ display:flex; justify-content:space-between; align-items:flex-start; gap: 40px; flex-wrap: wrap; }
.foot-brand{ font-family: var(--font-display); font-size: 19px; font-weight:600; }
.foot-brand .amp{ color: var(--gold); font-style: italic; font-weight: 450; }
.foot-links{ display:flex; gap: 28px; font-size: 13.5px; color: var(--muted); }
.foot-links a:hover{ color: var(--paper); }
.disclaimer{ margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: #5C6673; line-height: 1.7; max-width: 900px; }
.copyright{ margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; color: #4A5360; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .ticker-track{ animation: none; }
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
  .method-grid{ grid-template-columns: 1fr; }
  .method-grid.cols-2{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .quote-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .founder-grid{ grid-template-columns: 1fr; }
  .founder-photo{ max-width: 280px; margin: 0 auto; }
  .contact-grid{ grid-template-columns: 1fr; }
  .module{ grid-template-columns: 50px 1fr; }
  .module .level{ grid-column: 2; text-align:left; padding-top:0; }
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    flex-direction:column; align-items:flex-start; padding: 20px 32px; gap: 18px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a.active::after{ display:none; }
  .nav-toggle{ display:block; }
  .foot-grid{ flex-direction:column; }
}
@media (max-width: 560px){
  .chart-panels{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .wrap{ padding: 0 20px; }
  .nav-inner{ padding: 16px 20px; }
  .nav-links{ padding: 20px; }
  .hero{ padding: 52px 0 40px; }
  .page-header{ padding: 48px 0 36px; }
  .hero-meta{ flex-wrap:wrap; gap: 20px 28px; }
}

a.btn:focus-visible, .nav-cta:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold); outline-offset: 3px;
}
