/* ============================================================
   [D]ireção — ensaio · Trading$yphers design system
   ouro = camada do propósito · azul = mercado · 1 acento/seção
   ============================================================ */
@import url('assets/tokens.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-void);
  color: rgba(255,255,255,0.82);
  font-family: 'Inter', 'Noto Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* language toggle machinery */
body[data-lang="pt"] .l-en { display: none; }
body[data-lang="en"] .l-pt { display: none; }

/* ============ corners (a cifra) ============ */
.c-fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.c-el {
  position: fixed;
  width: 30px; height: 30px;
  opacity: 0.08;
  transition: opacity 1.6s ease, transform 1.6s ease;
  background: #b6b19f;
}
.c-el:hover { opacity: 0.35; }
.c-0 { top: 14px; left: 14px; }
.c-1 { top: 14px; right: 14px; }
.c-2 { bottom: 14px; left: 14px; }
.c-3 { bottom: 14px; right: 14px; }
.c-el.lit { opacity: 0.16; }
body.corner-flash .c-el { opacity: 0.5; background: #bada55; }

/* ============ chrome ============ */
.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 56px;
  background: linear-gradient(180deg, rgba(13,13,26,0.92), rgba(13,13,26,0));
  border-bottom: 1px dashed rgba(85,85,85,0.35);
}
.chrome a, .lang-toggle button {
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  transition: color 220ms ease;
}
.chrome a:hover, .lang-toggle button:hover { color: rgba(255,255,255,0.92); }
.lang-toggle { justify-self: center; display: flex; align-items: center; gap: 10px; }
.lang-toggle .on { color: var(--gold-apex); }
.lt-sep { color: rgba(255,255,255,0.16); font-size: 11px; }
.chrome-signals { justify-self: end; }

/* ============ sections base ============ */
main { display: block; }
.s {
  max-width: 720px;
  margin: 0 auto;
  padding: 128px 32px;
}
.s h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 24px;
}
.s p { max-width: 60ch; margin-bottom: 24px; }
.s p em { font-style: normal; font-weight: 500; color: var(--gold-apex); }
.eyebrow {
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 11px; letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255,215,0,0.55);
  margin-bottom: 40px;
}

/* ============ S1 abertura ============ */
.s1 {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding-top: 140px;
}
.dglyph, .s5glyph {
  font-size: clamp(110px, 20vw, 200px);
  line-height: 1;
  margin-bottom: 40px;
  user-select: none;
}
.dglyph .dd, .s5glyph .dd {
  font-family: 'Fredericka the Great', serif;
  color: var(--gold-apex);
  text-shadow: 0 0 60px rgba(255,215,0,0.35);
  transition: color 640ms ease, text-shadow 640ms ease;
}
.dglyph .br, .s5glyph .br {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55em;
  color: rgba(255,215,0,0.4);
  vertical-align: 0.12em;
}
.s1 h1 {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  color: #fff;
  margin-bottom: 16px;
}
.lede { font-size: 19px; color: rgba(255,255,255,0.6); }
.scroll-cue {
  margin-top: 64px;
  color: rgba(255,255,255,0.35);
  font-size: 18px;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(8px); opacity: .8; } }

/* ============ camadas-cifra ============ */
.layer { margin: 32px auto 0; max-width: 60ch; text-align: left; }
.s1 .layer { text-align: center; }
.layer-mark {
  background: none; border: none; cursor: pointer;
  font-size: 15px;
  color: rgba(255,215,0,0.35);
  transition: color 220ms ease, transform 420ms ease, text-shadow 220ms ease;
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.layer-mark:hover {
  color: var(--gold-apex);
  text-shadow: 0 0 14px rgba(255,215,0,0.6);
}
.layer.open .layer-mark { transform: rotate(-90deg); color: var(--gold-apex); }
.layer-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 640ms ease, opacity 640ms ease;
}
.layer.open .layer-body { max-height: 420px; opacity: 1; }
/* hover preview (só quando fechada) */
.layer:not(.open) .layer-mark:hover + .layer-body { max-height: 420px; opacity: 0.35; }
.layer blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.65;
  color: rgba(255,250,205,0.92);
  background: rgba(255,215,0,0.05);
  padding: 20px 24px 12px;
  margin: 16px 0 8px;
}
.s1 .layer blockquote { background: none; padding: 8px 0; }
.vref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  padding-bottom: 8px;
}
.vref .kjv { color: rgba(255,215,0,0.5); }
.lnote { font-size: 16px; color: rgba(255,255,255,0.62); padding: 12px 0; }

/* ============ S2 pipeline ============ */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 48px 0 16px;
  font-family: 'JetBrains Mono', monospace;
}
.pnode {
  border: 1px solid rgba(255,255,255,0.16);
  padding: 16px 20px;
  text-align: center;
  min-width: 128px;
  background: rgba(18,18,38,0.6);
}
.pnode .pk { font-size: 11px; letter-spacing: 0.22em; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.pnode .pv { font-size: 14px; color: rgba(255,255,255,0.85); }
.pnode.out { border-color: rgba(255,215,0,0.55); box-shadow: 0 0 24px rgba(255,215,0,0.12); }
.pnode.out .pv { color: var(--gold-apex); }
.pnode.out.divine .pv { text-shadow: 0 0 14px rgba(255,215,0,0.6); }
.pline {
  flex: 1; height: 1px; min-width: 24px;
  background-image: repeating-linear-gradient(to right, #555 0, #555 8px, transparent 8px, transparent 16px);
  position: relative;
}
.pline::after { content: '→'; position: absolute; right: -4px; top: -11px; color: rgba(255,255,255,0.35); font-size: 13px; }

/* ============ S4 ego cards ============ */
.ecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ecard {
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 2px solid rgba(255,215,0,0.5);
  background: rgba(13,13,26,0.66);
  padding: 20px 18px;
}
.ecard h3 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-apex);
  margin-bottom: 10px;
}
.ecard p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.62); margin-bottom: 4px; }
.ecard .layer { margin-top: 8px; }
.ecard blockquote { font-size: 15px; }

/* ============ S5 tese sticky ============ */
.s5wrap { height: 260vh; position: relative; }
.s5sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  overflow: hidden;
}
#rays { position: absolute; inset: 0; width: 100%; height: 100%; }
#rays line { stroke: rgba(255,215,0,0.3); stroke-width: 1.4; }
.s5glyph { position: relative; margin-bottom: 24px; }
.s5line {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  position: relative;
}
.s5sub { margin-top: 12px; color: rgba(135,206,250,0.75); font-size: 17px; opacity: 0; transition: opacity 640ms ease; position: relative; }
.s5sub.on { opacity: 1; }

/* ============ S6 mercado (azul) ============ */
.s6 h2 { color: #fff; }
.s6 p em { color: var(--blue-sky); }
.payload {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  border: 1px solid rgba(65,105,225,0.4);
  background: rgba(0,34,255,0.07);
  padding: 14px 22px;
  margin: 8px 0 24px;
}
.pl-sym { color: rgba(255,255,255,0.85); }
.pl-dir { color: var(--green-tango); font-size: 20px; }
.pl-gb { color: var(--blue-sky); }
.estar { font-size: 16px; color: rgba(255,255,255,0.6); }
.estar em { color: var(--blue-sky) !important; }

/* ============ S7 valor (verde) ============ */
.s7 p em { color: var(--green-tango); }
.dcard {
  border: 1px solid rgba(57,197,90,0.4);
  border-top: 2px solid var(--green-tango);
  background: rgba(13,13,26,0.7);
  max-width: 420px;
  padding: 24px;
  margin-top: 32px;
}
.dcard-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.dcard-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 16px; letter-spacing: 0.18em;
  color: var(--green-tango);
}
.dcard-price { font-family: 'JetBrains Mono', monospace; font-size: 22px; color: #fff; }
.dcard ul { list-style: none; margin-bottom: 20px; }
.dcard li {
  font-size: 14px; color: rgba(255,255,255,0.72);
  padding: 7px 0 7px 20px;
  position: relative;
}
.dcard li::before { content: '↑'; position: absolute; left: 0; color: rgba(57,197,90,0.7); }

/* CTA */
.cta {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 11.5px; letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green-tango);
  border: 1px solid var(--green-tango);
  padding: 14px 26px;
  transition: all 220ms ease;
  background: rgba(13,13,26,0.5);
}
.cta:hover { background: var(--green-tango); color: #0d0d1a; box-shadow: 0 0 28px rgba(57,197,90,0.5); }
.cta.ghost { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.25); }
.cta.ghost:hover { background: rgba(255,255,255,0.9); color: #0d0d1a; box-shadow: none; }

/* ============ S8 escada ============ */
.rungs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 40px 0 20px; }
.rung {
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 2px solid var(--rc, rgba(255,255,255,0.3));
  background: rgba(13,13,26,0.66);
  padding: 16px 18px;
}
.rung .rh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rung .ric { color: var(--rc); font-size: 15px; }
.rung .rn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
}
.rung .rp { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--rc); }
.rung p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.58); margin: 0; }
.r0 { --rc: #b6b19f; }
.r1 { --rc: #39C55A; }
.r2 { --rc: #1E6FFF; }
.r2 .rp, .r2 .ric { color: #87CEFA; }
.r3 { --rc: #FF4500; }
.tiers-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.52);
  margin-bottom: 28px;
}

/* ============ S9 quote card ============ */
.s9 { display: flex; flex-direction: column; align-items: center; }
.quotecard {
  width: min(560px, 86vw);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,215,0,0.45);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,215,0,0.05), transparent 60%),
    #0d0d1a;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 48px;
  gap: 32px;
}
.qc-glyph { font-size: 56px; line-height: 1; }
.qc-glyph .dd { font-family: 'Fredericka the Great', serif; color: var(--gold-apex); }
.qc-glyph .br { font-family: 'JetBrains Mono', monospace; font-size: 0.55em; color: rgba(255,215,0,0.4); }
.qc-text {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 900;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.7;
  color: #fff;
  margin: 0;
}
.qc-url { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.2em; color: rgba(255,215,0,0.55); }
.qc-cap { margin-top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.2em; }

/* ============ S10 fecho / clímax ============ */
.s10 { text-align: center; padding-bottom: 96px; }
.knows {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 48px;
}
.egg {
  background: none; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #bada55;
  opacity: 0.2;
  letter-spacing: 0.08em;
  transition: opacity 1.6s ease;
  padding: 12px;
}
.egg:hover { opacity: 1; }
body.revealed .egg { opacity: 1; }
.egg-reveal {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 640ms ease, opacity 640ms ease;
  margin: 0 auto;
  max-width: 640px;
  text-align: left;
}
body.revealed .egg-reveal { max-height: 900px; opacity: 1; margin-top: 32px; }
.mline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #bada55;
  white-space: pre-wrap;
  padding: 4px 0;
}
.mline.dim { color: rgba(186,218,85,0.72); }
.key-offer {
  margin: 32px 0;
  border: 1px solid rgba(255,215,0,0.35);
  background: rgba(18,18,38,0.7);
  padding: 28px;
  text-align: center;
}
.key-offer h3 {
  font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 18px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-apex);
  margin-bottom: 12px;
}
.key-offer p { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 52ch; margin: 0 auto 20px; }
.key-offer .cta { color: var(--gold-apex); border-color: var(--gold-apex); }
.key-offer .cta:hover { background: var(--gold-apex); color: #0d0d1a; box-shadow: 0 0 28px rgba(255,215,0,0.5); }
.liber {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.liber:hover { color: #bada55; }
.foot-links { margin-top: 72px; }
.foot-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.foot-links a:hover { color: #fff; }
.fsep { color: rgba(255,255,255,0.2); margin: 0 14px; }
.foot-brand {
  margin-top: 24px;
  font-family: 'Fredericka the Great', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .chrome { padding: 14px 20px; }
  .s { padding: 96px 24px; }
  .ecards { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; gap: 8px; }
  .pline { width: 1px; min-width: 0; min-height: 24px; background-image: repeating-linear-gradient(to bottom, #555 0, #555 8px, transparent 8px, transparent 16px); }
  .pline::after { content: '↓'; right: -6px; top: auto; bottom: -6px; }
  .rungs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}
