:root {
  --bg: #0E1116;
  --panel: #12161D;
  --panel-2: #161B23;
  --line: #232A35;
  --line-2: #2A3240;
  --line-3: #3A4352;
  --text: #E9EDF2;
  --muted: #B7C0CC;
  --faint: #8A95A5;
  --accent: #22D3EE;
  --down: #FF2BD6;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.pre { white-space: pre-line; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 56px; height: 56px; display: block; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a[aria-current="page"] { background: #1A202A; color: var(--text); font-weight: 600; }

/* Animated candlestick background */
.hero-zone { position: relative; overflow: hidden; }
.chart-bg { position: absolute; inset: 0; opacity: 0.22; pointer-events: none; }
.chart-track { position: absolute; top: 0; left: 0; height: 100%; animation: bt-move 70s linear infinite; }
.chart-track i { position: absolute; display: block; border-radius: 1px; }
@keyframes bt-move { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@media (prefers-reduced-motion: reduce) { .chart-track { animation: none; } }
.hero-zone > section, .hero-zone > .wrap { position: relative; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; max-width: 820px; }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 15px; }
.btn:hover { color: var(--bg); filter: brightness(1.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Sections */
.section { padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.icon { width: 26px; height: 26px; color: var(--accent); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats.accent { border: 2px solid var(--accent); }
.stat { background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat span { font-size: 13px; color: var(--faint); }
.stat strong { font-family: var(--display); font-size: 24px; }
.stats.accent .stat strong { font-size: 28px; color: var(--accent); }

/* Framed screenshot */
.frame { border: 2px solid var(--accent); border-radius: 14px; background: var(--panel); overflow: hidden; }
.frame-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 15px; }
.frame-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.frame-bar .date { color: var(--accent); }
.frame-bar .meta { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--faint); }
.frame a.shot, .frame .shot { display: block; margin: 12px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.frame img { display: block; width: 100%; height: auto; }
.under-link { display: flex; justify-content: flex-end; }
.under-link a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 0; }

/* Notes box */
.notes { border: 1px dashed var(--line-3); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.notes .label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.notes p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* CTA */
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: 28px; }

/* Rules */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.checklist li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.checklist strong { display: block; font-weight: 600; }
.checklist p { color: var(--muted); font-size: 15px; }
.dos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.dos .card { padding: 28px; gap: 16px; }
.dos h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.dos ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.quote { margin: 0; border: 2px solid var(--accent); border-radius: 14px; background: var(--panel); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.quote p.big { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.3; }
.quote p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.quote cite { font-style: normal; font-size: 15px; color: var(--faint); }

/* Setup */
.kv { margin: 0; display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 12px 16px; font-size: 15px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.chart-name { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--accent); }

/* Learn */
.teacher { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.teacher .side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.teacher .side h2 { font-size: 30px; color: var(--accent); }
.teacher .side span { color: var(--faint); font-size: 15px; }
.teacher .body { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.teacher .body h3 { font-family: var(--body); font-size: 16px; font-weight: 600; }
.teacher .body p { color: var(--muted); line-height: 1.7; }
.btn-outline { align-self: flex-start; margin-top: 8px; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--accent); font-weight: 600; font-size: 14px; }

/* Daily log */
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.day:hover { border-color: var(--line-3); }
.day-toggle { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.day-thumb { width: 132px; height: 74px; object-fit: cover; object-position: left top; border-radius: 6px; border: 1px solid var(--line-2); flex: none; background: var(--bg); }
.day-title { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.day-title .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.day-title strong { font-family: var(--display); font-size: 20px; }
.day-title span.recap { color: var(--muted); font-size: 15px; }
.tag-latest { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--bg); }
.day-points { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--accent); }
.chev { width: 22px; height: 22px; color: var(--muted); transition: transform 0.2s; }
.day[open-state="true"] .chev { transform: rotate(180deg); }
.day-body { border-top: 1px solid var(--line); padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 28px; }
.day-body h3 { font-size: 20px; }
.block { display: flex; flex-direction: column; gap: 12px; }
.shot-frame { display: block; border: 2px solid var(--accent); border-radius: 12px; overflow: hidden; background: var(--bg); }
.shot-frame img { display: block; width: 100%; height: auto; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 860px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trades { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.trade { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.trade-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.dir { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.dir.short { border-color: var(--down); color: var(--down); }
.trade p { color: var(--muted); font-size: 15px; }
.trade .setup { color: var(--text); }
.trade .result { font-size: 14px; font-weight: 600; color: var(--accent); }
.empty { color: var(--faint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.foot-row span { font-size: 14px; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { font-size: 14px; color: var(--muted); }
.disclaimer { padding-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.disclaimer h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.disclaimer p { font-size: 12px; line-height: 1.6; color: var(--faint); }
.disclaimer strong { color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .cta, .quote, .teacher { padding: 24px; }
  .day-thumb { width: 96px; height: 54px; }
}
