/* Home page. The look: a trading tape. A live ribbon of real tokens, one real chart, and a page that
   reads like a price ladder: simulation stages drawn dashed, the funded stage drawn solid. */

.home-nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.home-nav a { text-decoration: none; }
.home-nav a:hover { color: var(--ink); }
.btn.lg { min-height: 46px; padding: 11px 22px; font-size: 15px; border-radius: 10px; }

/* ---- live tape ---- */
.tape { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.tape-track { display: inline-flex; gap: 34px; padding: 9px 0 9px 34px; animation: tape 70s linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.tape-item b { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.tape-item .num { color: var(--muted); font-size: 12.5px; }
.tape-item .up { color: var(--up); }
.tape-item .down { color: var(--down); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding-block: 72px 64px; position: relative; overflow-x: clip;
}
.hero::before { /* chart gridlines, very faint, fading out to the left */
  content: ''; position: absolute; inset: 0 -40px 0 38%; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(to bottom, rgba(140, 153, 171, 0.07) 0 1px, transparent 1px 48px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%);
}
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.6vw, 72px); line-height: 0.98;
  letter-spacing: -0.045em; margin: 0 0 22px; text-wrap: balance;
}
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 34px; margin: 38px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.hero-facts div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-facts dt { color: var(--faint); font-size: 12.5px; }
.hero-facts dd { margin: 0; font-size: 21px; font-weight: 500; }

.hero-chart { margin: 0; overflow: hidden; }
.hero-chart[data-empty="1"] { display: none; }
.hc-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 6px; flex-wrap: wrap; }
.hc-sym { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.hc-price { font-size: 15px; color: var(--muted); }
.hc-chg { font-size: 13px; }
.hc-chg.up { color: var(--up); }
.hc-chg.down { color: var(--down); }
.hc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.hc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.6); animation: ping 2s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); } }
.hc-canvas { display: block; width: 100%; aspect-ratio: 2 / 1; }
.hc-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.hc-foot p { margin: 0; font-size: 12.5px; color: var(--faint); max-width: 46ch; }
.hc-count { font-family: var(--mono); font-size: 12px; color: var(--brass); white-space: nowrap; }

/* ---- sections ---- */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 10px; text-wrap: balance; }
.section-sub { margin: 0 0 30px; max-width: 62ch; font-size: 15.5px; }

/* ---- path: simulation stages are dashed, the funded stage is solid ---- */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stage { position: relative; padding: 46px 18px 20px; border-radius: 12px; }
.stage.sim { border: 1px dashed var(--line-2); }
.stage.live { border: 1px solid var(--brass); background: var(--brass-soft); }
.stage::after { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.stage.sim::after { content: 'simulated'; }
.stage.live::after { content: 'real account'; color: var(--brass); }
.stage-n { position: absolute; top: 12px; left: 16px; font-size: 13px; color: var(--muted); }
.stage.live .stage-n { color: var(--brass); }
.stage h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 0 0 8px; }
.stage p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.stage.live p { color: var(--ink); opacity: 0.86; }
.path-note { max-width: 78ch; margin: 18px 0 0; }

/* ---- pricing ladder ---- */
.ladder { border-top: 1px solid var(--line-2); }
.rung, .ladder-head { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1fr 1fr 1fr 110px 168px; gap: 16px; align-items: center; }
.ladder-head { padding: 10px 6px; color: var(--faint); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.rung { padding: 20px 6px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.rung:hover { background: var(--panel); }
.rung .size { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; line-height: 1; }
.rung .size small { display: block; font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: 0; color: var(--brass); margin-top: 6px; }
.rung .cell { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.rung .cell em { display: none; font-style: normal; font-family: var(--body); color: var(--faint); font-size: 12px; }
.rung .cell.down { color: var(--down); }
.rung .fee { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.rung .btn { width: 100%; }
.rung.pop { background: linear-gradient(to right, var(--brass-soft), transparent 70%); box-shadow: inset 3px 0 0 var(--brass); }

/* ---- rulebook ---- */
.rulebook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.rule { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.rule-fig { font-size: 24px; font-weight: 500; color: var(--brass); line-height: 1.1; }
.rule h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; margin: 0 0 6px; }
.rule p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; max-width: 760px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq p { color: var(--muted); margin: 10px 0 2px; font-size: 14.5px; line-height: 1.55; }
.faq p a { color: var(--brass); }

/* ---- checkout ---- */
.pay-box { display: flex; flex-direction: column; gap: 10px; }
.pay-row { display: flex; gap: 8px; }
.pay-row .input { flex: 1; }
.pay-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--brass); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.test-note { background: var(--warn-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.qr-wrap { display: flex; justify-content: center; }
.qr { width: 220px; height: 220px; background: #fff; border-radius: 8px; image-rendering: pixelated; }

/* ---- smaller screens ---- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 40px; }
  .hero::before { inset: 0; -webkit-mask-image: none; mask-image: none; opacity: 0.6; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rulebook { grid-template-columns: minmax(0, 1fr); }
  .home-nav { display: none; }
}
@media (max-width: 760px) {
  .section { padding-block: 44px; }
  .hero-facts { grid-template-columns: repeat(2, auto); }
  .ladder-head { display: none; }
  .rung { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 18px 6px; }
  .rung .size { grid-column: 1; grid-row: 1; }
  .rung .fee { grid-column: 2; grid-row: 1; justify-self: end; }
  .rung .cell { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 14px; }
  .rung .cell em { display: inline; }
  .rung .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .path { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: 62px minmax(0, 1fr); }
  .hc-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tape { overflow-x: auto; }
  .tape-track { animation: none; }
  .hc-live i { animation: none; }
}
.hero h1 span { display: block; }

.capital { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.capital b { color: var(--brass); font-weight: 600; }
.capital a { color: var(--brass); }
