/* ============================================================================
   GRA4 Academy — dark premium theme
   Hand-written, no build step. Tokens → base → components → sections → utils.
   ========================================================================== */

:root {
  /* palette */
  --bg:        #0a0d13;
  --bg-2:      #0d1119;
  --surface:   #121826;
  --surface-2: #161d2c;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #e8edf5;
  --muted:     #9aa7bd;
  --muted-2:   #6b7891;

  --gold:      #e8b65a;
  --gold-2:    #f6d488;
  --green:     #2dd4a7;
  --green-2:   #34d399;
  --red:       #f0616d;
  --cyan:      #57c7ff;

  --gold-grad:  linear-gradient(135deg, #f6d488 0%, #e8b65a 45%, #c9912f 100%);
  --green-grad: linear-gradient(135deg, #34d399 0%, #2dd4a7 100%);

  /* sizing */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 26px;

  --shadow:    0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 16px 44px -16px rgba(232, 182, 90, 0.45);

  --font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--font);
  background: transparent; /* dark base lives on <html> so the fixed #bg-fx canvas shows through */
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* ambient scroll-reactive background (chart + money), injected by bg-fx.js */
#bg-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
section { position: relative; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(232, 182, 90, 0.09);
  border: 1px solid rgba(232, 182, 90, 0.25);
}
.section-head { max-width: 720px; margin: 0 auto 54px; }
.section-head.center { text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }
.lead { font-size: 1.14rem; color: var(--muted); }
.text-gold { color: var(--gold-2); }
.text-green { color: var(--green-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--gold-grad); color: #1a1304; box-shadow: var(--shadow-gold); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 52px -14px rgba(232,182,90,.6); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 19, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--gold-grad); color: #1a1304;
  display: grid; place-items: center; font-weight: 900; font-size: 1rem;
  box-shadow: var(--shadow-gold);
}
.brand b { color: var(--gold-2); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.97rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 720px; z-index: -1;
  background:
    radial-gradient(620px 380px at 78% 8%, rgba(232,182,90,.16), transparent 70%),
    radial-gradient(540px 360px at 12% 0%, rgba(45,212,167,.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hero-trust .t span { font-size: 0.85rem; color: var(--muted-2); }

/* hero visual: floating signal card + chart */
.hero-visual { position: relative; }
.glass {
  background: linear-gradient(180deg, rgba(22,29,44,.9), rgba(15,20,28,.86));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.signal-card { padding: 22px; }
.signal-card .row { display: flex; align-items: center; justify-content: space-between; }
.signal-card .pair { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.signal-card .pair .dot { width: 38px; height: 38px; border-radius: 50%; background: rgba(45,212,167,.15); display: grid; place-items: center; color: var(--green-2); font-weight: 900; }
.badge-up { color: var(--green-2); background: rgba(45,212,167,.13); border: 1px solid rgba(45,212,167,.3); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.badge-win { color: var(--green-2); background: rgba(45,212,167,.13); border: 1px solid rgba(45,212,167,.3); padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.spark { width: 100%; height: 92px; margin: 18px 0 6px; }
.signal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.signal-meta div { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.signal-meta span { display: block; font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.signal-meta b { font-size: 1.02rem; }
.floating { position: absolute; right: -14px; bottom: -26px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.floating .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-grad); display: grid; place-items: center; color: #04130d; font-weight: 900; }
.floating small { color: var(--muted-2); display: block; font-size: .74rem; }
.floating b { font-size: 1.05rem; }

/* ---------- trust band ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.band .pill { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.band .pill svg { width: 20px; height: 20px; color: var(--gold-2); }

/* ---------- cards / features ---------- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--gold-2);
  background: rgba(232,182,90,.1); border: 1px solid rgba(232,182,90,.22);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .98rem; }

/* ---------- steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step .num {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem; color: #1a1304; background: var(--gold-grad);
  box-shadow: var(--shadow-gold); margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .98rem; }

/* ---------- stats ---------- */
.stats { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 18px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; font-weight: 600; }

/* ---------- testimonials ---------- */
.quote { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.quote .stars { color: var(--gold-2); letter-spacing: 3px; margin-bottom: 12px; }
.quote p { color: var(--text); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad); color: #1a1304; display: grid; place-items: center; font-weight: 900; }
.quote .who b { font-size: .97rem; }
.quote .who span { font-size: .82rem; color: var(--muted-2); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.qa { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.qa-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text); font-family: inherit; font-weight: 700; font-size: 1.05rem; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa-q .chev { flex: none; transition: transform .25s; color: var(--gold-2); font-size: 1.4rem; line-height: 1; }
.qa.open .qa-q .chev { transform: rotate(45deg); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.qa-a p { padding: 0 22px 20px; font-size: .99rem; }

/* ---------- CTA band ---------- */
.cta {
  border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; overflow: hidden; position: relative;
  background: linear-gradient(135deg, rgba(232,182,90,.14), rgba(45,212,167,.1)), var(--surface);
  border: 1px solid var(--border-2);
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: 16px; }
.foot-grid a { color: var(--muted); display: block; margin-bottom: 10px; font-size: .95rem; transition: color .15s; }
.foot-grid a:hover { color: var(--text); }
.foot-about p { font-size: .95rem; margin: 14px 0; max-width: 360px; }
.risk { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(240,97,109,.05); }
.risk p { font-size: .82rem; color: var(--muted-2); line-height: 1.55; }
.copyright { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .87rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 36px; }
.page-hero::before {
  content: ""; position: absolute; inset: -160px 0 auto 0; height: 480px; z-index: -1;
  background: radial-gradient(560px 320px at 50% 0%, rgba(232,182,90,.12), transparent 70%);
}
.page-hero h1 { margin: 16px 0 14px; }
.page-hero p { max-width: 680px; font-size: 1.1rem; }

/* ---------- prose (about / disclaimer) ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin: 38px 0 14px; }
.prose h3 { margin: 26px 0 10px; color: var(--gold-2); }
.prose p { margin-bottom: 14px; }
.prose ul.checks { margin: 14px 0; }
.prose ul.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.prose ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-2); font-weight: 900; }
.prose strong { color: var(--text); }

/* results table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.res { width: 100%; border-collapse: collapse; min-width: 520px; }
table.res th, table.res td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.res th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
table.res td { font-weight: 600; }
table.res tr:last-child td { border-bottom: 0; }
.win { color: var(--green-2); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0; padding: 14px 22px 22px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 1.05rem; }
  .section { padding: 64px 0; }
  .cards-3, .cards-2, .steps, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 22px; }
  body { font-size: 16px; }
}
