/* jesse.trade hero film: "3:07 AM"
   Shared by the HyperFrames render (index.html), the portrait cut (../film-vertical) and the
   standalone hero page (../site). Every size is authored in stage pixels (1920x1080 or
   1080x1920); the page scales the whole stage, so nothing here depends on the viewport.
   Brand: jesse.trade's own tokens (Tailwind amber + warm stone, Bricolage Grotesque + Ubuntu Mono). */

@font-face {
  font-family: "JT Bricolage";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "JT Mono";
  src: url("assets/fonts/ubuntu-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "JT Mono";
  src: url("assets/fonts/ubuntu-mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

.jt {
  --night: #100e0d;
  --panel: #1c1917;
  --panel-2: #292524;
  --edge: rgba(214, 211, 209, 0.16);
  --text: #fafaf9;
  --text-2: #e7e5e4;
  --muted: #a8a29e;
  --amber: #fbbf24;
  --amber-300: #fcd34d;
  --marker: #fef3c7;
  --paper: #fde68a;
  --orange: #ff822d;
  --navy: #3c3c78;
  --peri: #8b93f8;
  --up: #34d399;
  --down: #f87171;
  --rose: #fb7185;
  --code: #1a1d21;
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--text);
  font-family: "JT Bricolage", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  user-select: none;
}
.jt *,
.jt *::before,
.jt *::after { box-sizing: border-box; }

/* the host page may ship a CSS reset; keep the stage self-contained */
.jt img { max-width: none; }
.jt svg { display: inline-block; }
.jt .ly { position: absolute; inset: 0; pointer-events: none; }
.jt .ab { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.jt .mono { font-family: "JT Mono", ui-monospace, monospace; }

/* ---------- the room ---------- */
.jt .jt-glow { border-radius: 50%; }
.jt .jt-glow.lamp {
  width: 1900px; height: 1900px; margin: -950px 0 0 -950px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(251, 191, 36, 0.09) 30%, rgba(16, 14, 13, 0) 62%);
}
.jt .jt-glow.moon {
  width: 1700px; height: 1700px; margin: -850px 0 0 -850px;
  background: radial-gradient(circle, rgba(101, 127, 240, 0.3) 0%, rgba(60, 60, 120, 0.2) 34%, rgba(16, 14, 13, 0) 66%);
}
.jt .jt-glow.dawn {
  width: 2400px; height: 1500px; margin: -750px 0 0 -1200px;
  background: radial-gradient(ellipse, rgba(255, 130, 45, 0.26) 0%, rgba(251, 191, 36, 0.1) 34%, rgba(16, 14, 13, 0) 66%);
}
.jt .jt-glow.brand {
  width: 1200px; height: 1200px; margin: -600px 0 0 -600px;
  background: radial-gradient(circle, rgba(255, 130, 45, 0.2) 0%, rgba(251, 191, 36, 0.07) 38%, rgba(16, 14, 13, 0) 68%);
}
.jt .jt-vignette { background: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(16, 14, 13, 0) 55%, rgba(8, 7, 6, 0.55) 100%); }
.jt canvas.jt-dust { position: absolute; left: 0; top: 0; }
.jt .jt-flash { background: #f87171; mix-blend-mode: screen; }

/* ---------- big story lines ---------- */
.jt .jt-line {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: nowrap;
}
.jt .jt-line .ln { display: block; }
.jt .jt-line .w { display: inline-block; position: relative; will-change: transform, opacity; }
.jt .jt-line .no { color: var(--rose); }
.jt .jt-line .hl { color: var(--amber-300); }
.jt .jt-line .mk { color: #1c1917; padding: 0 0.1em; z-index: 0; }
.jt .mkb {
  position: absolute; left: -0.04em; right: -0.04em; top: 0.1em; bottom: 0.02em;
  background: var(--marker);
  transform-origin: 0 50%;
}
.jt .mkw { position: relative; display: inline-block; }
.jt .jt-line .mk, .jt .jt-tag .mk { isolation: isolate; }
.jt .jt-small {
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-2);
  white-space: nowrap;
}

/* ---------- the clock (the villain's face) ---------- */
.jt .jt-clock { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.jt .jt-clock .hm { font-family: "JT Mono", ui-monospace, monospace; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text-2); }
.jt .jt-clock .hm i { font-style: normal; display: inline-block; }
.jt .jt-clock .ap { font-family: "JT Mono", ui-monospace, monospace; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- windows ---------- */
.jt .jt-win {
  border-radius: 22px;
  background: linear-gradient(180deg, #1f1c1a 0%, #1a1715 100%);
  border: 2px solid var(--edge);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.jt .jt-win .bar {
  position: absolute; left: 0; right: 0; top: 0; height: 58px;
  display: flex; align-items: center; gap: 12px; padding: 0 22px;
  border-bottom: 2px solid rgba(214, 211, 209, 0.1);
  font-family: "JT Mono", ui-monospace, monospace; font-size: 21px; letter-spacing: 0.02em; color: var(--text-2);
  white-space: nowrap;
}
.jt .jt-win .bar img { width: 30px; height: 30px; display: block; }
.jt .jt-win .bar .sp { flex: 1; }
.jt .jt-win .bar .tag {
  font-size: 19px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  border: 2px solid rgba(214, 211, 209, 0.26); border-radius: 9px; padding: 5px 10px;
}
.jt .jt-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JT Mono", ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 10px; white-space: nowrap;
}
.jt .jt-pill i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.jt .jt-pill.red { color: #fecaca; background: rgba(248, 113, 113, 0.16); border: 2px solid rgba(248, 113, 113, 0.5); }
.jt .jt-pill.red i { background: #f87171; box-shadow: 0 0 12px rgba(248, 113, 113, 0.9); }
.jt .jt-pill.live { color: #ffd2b3; background: rgba(255, 130, 45, 0.14); border: 2px solid rgba(255, 130, 45, 0.5); }
.jt .jt-pill.live i { background: var(--orange); box-shadow: 0 0 14px rgba(255, 130, 45, 0.95); }

/* act 1: trading by hand */
.jt .jt-foot {
  position: absolute; left: 22px; right: 22px; bottom: 20px; height: 78px;
  display: flex; align-items: center; gap: 16px;
}
.jt .jt-size {
  height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 20px;
  border-radius: 16px; border: 2px solid rgba(214, 211, 209, 0.2); background: rgba(255, 255, 255, 0.03);
  font-family: "JT Mono", ui-monospace, monospace; font-size: 22px; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap;
}
.jt .jt-size b { font-weight: 700; font-size: 28px; color: var(--text); letter-spacing: 0; }
.jt .jt-size.hot { border-color: rgba(251, 113, 133, 0.85); background: rgba(251, 113, 133, 0.12); }
.jt .jt-size.hot b { color: #fecdd3; }
.jt .jt-foot .gap { flex: 1; }
.jt .jt-btn {
  height: 100%; min-width: 170px; padding: 0 28px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: "JT Bricolage", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: 0.02em;
}
.jt .jt-btn.buy { background: #34d399; color: #062b1e; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
.jt .jt-btn.sell { background: rgba(248, 113, 113, 0.14); color: #fecaca; border: 2px solid rgba(248, 113, 113, 0.55); }
.jt .jt-tagpill {
  font-family: "JT Mono", ui-monospace, monospace; font-size: 17px; font-weight: 700; letter-spacing: 0.12em;
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
}
.jt .jt-tagpill.entry { background: #34d399; color: #062b1e; }
.jt .jt-tagpill.entry.rev { background: #fb7185; color: #3b0712; }
.jt .jt-tagpill.stop { background: #f87171; color: #3b0712; }
.jt .jt-out {
  font-family: "JT Mono", ui-monospace, monospace; font-size: 26px; font-weight: 700; letter-spacing: 0.14em;
  padding: 12px 20px; border-radius: 12px; white-space: nowrap;
  background: #f87171; color: #3b0712; box-shadow: 0 0 40px rgba(248, 113, 113, 0.6);
}

/* sticky-note rules */
.jt .jt-note {
  z-index: 6;
  display: flex; align-items: center; padding: 26px 22px 18px;
  background: linear-gradient(180deg, #fde68a 0%, #fcd873 100%);
  color: #292524;
  border-radius: 4px 4px 10px 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 -3px 0 rgba(146, 64, 14, 0.12);
  font-weight: 700; font-stretch: 78%; letter-spacing: -0.01em; line-height: 1.04;
}
.jt .jt-note::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: rgba(146, 64, 14, 0.1); border-radius: 4px 4px 0 0;
}

.jt .jt-cursor { width: 40px; height: 40px; z-index: 9; }
.jt .jt-ripple { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 3px solid rgba(250, 250, 249, 0.85); z-index: 8; }

/* act 2: the editor */
.jt .jt-win.ed { background: var(--code); }
.jt .jt-code { position: absolute; left: 0; right: 0; top: 76px; }
.jt .jt-code .row { position: relative; height: 37px; display: flex; align-items: center; white-space: pre; }
.jt .jt-code .row .hlb { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(251, 191, 36, 0.16); border-left: 4px solid var(--amber); }
.jt .jt-code .row .gut { position: relative; width: 58px; flex: none; text-align: right; padding-right: 16px; color: #9a948f; }
.jt .jt-code .row .src { position: relative; font-family: "JT Mono", ui-monospace, monospace; }
.jt .jt-code .k { color: #c4a5e8; }
.jt .jt-code .f { color: #8cb8f2; }
.jt .jt-code .n { color: #7ee0ae; }
.jt .jt-code .p { color: #e7e5e4; }
.jt .jt-code .c { color: #fcd34d; font-weight: 700; }

/* act 2: backtest */
.jt .jt-curtain-label { font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.jt .jt-mc {
  font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: #dfe1ff; background: rgba(139, 147, 248, 0.16); border: 2px solid rgba(139, 147, 248, 0.5); border-radius: 10px; padding: 6px 12px;
}
.jt .jt-legend { display: flex; gap: 26px; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.jt .jt-legend span { display: inline-flex; align-items: center; gap: 10px; }
.jt .jt-legend b { display: block; width: 26px; height: 4px; border-radius: 2px; }

/* act 3: the live log */
.jt .jt-log { position: absolute; left: 30px; right: 30px; }
.jt .jt-log .lg {
  position: relative; display: flex; align-items: center; gap: 22px;
  height: 58px; padding: 0 16px; border-radius: 14px; margin-bottom: 10px;
  font-family: "JT Mono", ui-monospace, monospace; font-size: 27px; color: var(--text-2); white-space: nowrap;
  background: rgba(255, 255, 255, 0.025); border: 2px solid rgba(214, 211, 209, 0.08);
}
.jt .jt-log .lg .tm { color: var(--muted); flex: none; }
.jt .jt-log .lg .tx { flex: 1; min-width: 0; }
.jt .jt-log .lg .tx em { font-style: normal; color: var(--amber-300); }
.jt .jt-log .lg .ok { color: #34d399; font-weight: 700; flex: none; }
.jt .jt-log .lg.fin { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.45); }
.jt .jt-log .lg.fin .tx { color: var(--text); font-weight: 700; }
.jt .jt-illus { font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }

/* act 4: brand */
.jt .jt-mascot { z-index: 5; }
.jt .jt-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.jt .jt-dot { border-radius: 50%; background: var(--orange); z-index: 6; }
.jt .jt-word { font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; color: var(--text); }
.jt .jt-word .clip { display: block; overflow: hidden; padding: 0.06em 0.04em 0.14em 0; }
.jt .jt-word .clip span { display: block; will-change: transform; }
.jt .jt-tag { font-weight: 700; letter-spacing: -0.025em; color: var(--text-2); text-align: center; white-space: nowrap; line-height: 1.18; }
.jt .jt-tag .ln { display: block; }
.jt .jt-tag .mk { position: relative; display: inline-block; z-index: 0; color: #1c1917; font-weight: 800; padding: 0 0.12em; }
.jt .jt-caps { font-family: "JT Mono", ui-monospace, monospace; font-size: 25px; letter-spacing: 0.24em; text-transform: uppercase; color: #c9c4bf; text-align: center; white-space: nowrap; }
.jt .jt-url { font-family: "JT Mono", ui-monospace, monospace; font-weight: 700; font-size: 34px; letter-spacing: 0.04em; color: var(--amber-300); text-align: center; white-space: nowrap; }
.jt .jt-cta { display: flex; gap: 18px; justify-content: center; pointer-events: auto; }
.jt .jt-cta a {
  display: inline-flex; align-items: center; gap: 12px;
  height: 70px; padding: 0 32px; border-radius: 14px;
  font: 800 25px/1 "JT Bricolage", sans-serif; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.jt .jt-cta .pri { background: var(--amber); color: #1c1917; }
.jt .jt-cta .sec { background: transparent; color: var(--text); border: 2px solid rgba(214, 211, 209, 0.4); }
.jt .jt-cta .pri:hover { background: var(--amber-300); }
.jt .jt-cta .sec:hover { border-color: var(--amber); }
.jt .jt-cta a:focus-visible { outline: 4px solid var(--amber-300); outline-offset: 5px; }
.jt .jt-cta svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.jt .jt-fade { background: var(--night); z-index: 50; }

/* ---------- portrait tuning ---------- */
.jt.is-v .jt-log .lg { font-size: 29px; height: 64px; }
.jt.is-v .jt-win .bar .tag { font-size: 28px; }
.jt.is-v .jt-illus { font-size: 28px; }
.jt.is-v .jt-code .row { height: 38px; }
.jt.is-v .jt-caps { font-size: 25px; letter-spacing: 0.2em; line-height: 1.7; }
.jt.is-v .jt-cta { gap: 22px; }
.jt.is-v .jt-cta a { height: 104px; padding: 0 40px; border-radius: 22px; font-size: 36px; gap: 16px; }
.jt.is-v .jt-cta svg { width: 34px; height: 34px; }
