/* ============================================================
   Trading 282 — página pública.
   Estética de automobilismo: preto profundo, amarelo de pista,
   linhas de velocidade e painéis tipo telemetria. Usa os tokens
   de client.css (body.cx) e acrescenta o amarelo do carro.
   ============================================================ */

body.public {
  --volt: #ffd60a;
  --volt-hi: #fff07a;
  --volt-bg: rgba(255, 214, 10, .1);
  --grad-volt: linear-gradient(135deg, #fff07a 0%, #ffd60a 45%, #f2b705 100%);
  background: #070605;
  overflow-x: hidden;
}
.public .btn-accent { background: var(--grad-volt); color: #151000; box-shadow: 0 10px 30px rgba(255, 214, 10, .22); }
.public .btn-accent:hover { color: #151000; }

.h-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.h-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--volt);
}
.h-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--volt); }
.public h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 14px 0 14px; font-weight: 700; letter-spacing: -.03em; }
.public h2 em, .public h1 em { font-style: normal; color: var(--volt); }
.h-lead { color: var(--text-dim); font-size: 16.5px; line-height: 1.65; max-width: 56ch; margin: 0 0 26px; }

/* ------------------------------------------------------------- menu */

.h-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.h-nav.solid { background: rgba(7, 6, 5, .86); backdrop-filter: blur(16px); border-bottom-color: var(--line-soft); }
.h-nav .h-wrap { display: flex; align-items: center; gap: 30px; height: 76px; }
.h-nav .brand img { height: 24px; }
.h-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.h-links a { color: var(--text-dim); font-weight: 600; font-size: 14px; }
.h-links a:hover { color: var(--volt); }
.h-cta { display: flex; gap: 10px; }
@media (max-width: 900px) { .h-links { display: none; } .h-nav .h-wrap { justify-content: space-between; } .h-nav .brand img { height: 18px; } }

/* ------------------------------------------------------------- hero */

.h-hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; }
.h-hero-media { position: absolute; inset: 0; z-index: 0; }
.h-hero-media img {
  position: absolute; right: -6%; bottom: 0; width: 88%; height: 100%; object-fit: cover; object-position: 60% 60%;
  animation: hero-in 1.4s cubic-bezier(.2, .8, .2, 1) both;
}
.h-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #070605 0%, #070605 26%, rgba(7, 6, 5, .8) 46%, rgba(7, 6, 5, .15) 75%, rgba(7, 6, 5, .5) 100%),
    linear-gradient(0deg, #070605 0%, transparent 32%),
    linear-gradient(180deg, rgba(7, 6, 5, .85) 0%, transparent 22%);
}
@keyframes hero-in { from { transform: translateX(8%) scale(1.04); opacity: 0; } to { transform: none; opacity: 1; } }

/* Linhas de velocidade atravessando o hero */
.h-speed { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.h-speed i {
  position: absolute; left: -40%; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, .7), transparent);
  animation: streak 3.2s linear infinite; opacity: .6;
}
.h-speed i:nth-child(1) { top: 28%; animation-delay: 0s; }
.h-speed i:nth-child(2) { top: 46%; animation-delay: .9s; width: 25%; }
.h-speed i:nth-child(3) { top: 63%; animation-delay: 1.7s; }
.h-speed i:nth-child(4) { top: 78%; animation-delay: 2.4s; width: 30%; }
.h-speed i:nth-child(5) { top: 36%; animation-delay: 2.9s; width: 18%; }
@keyframes streak { to { transform: translateX(380%); } }
@media (prefers-reduced-motion: reduce) { .h-speed, .h-hero-media img { animation: none; } .h-speed { display: none; } }

.h-hero-grid { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: end; }
.h-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 700; color: var(--text-dim);
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.h-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.h-badge .dot.live { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2s infinite; }
.h-hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: .98; letter-spacing: -.04em; margin: 22px 0 22px; font-weight: 700; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.h-hero-copy > p { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 48ch; margin: 0 0 32px; }
.h-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-actions .btn { width: auto; padding: 16px 26px; font-size: 15.5px; }
.h-btn-line { background: rgba(0, 0, 0, .4); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.h-btn-line:hover { border-color: var(--volt); color: var(--volt); }
.h-mini { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.h-mini span { display: inline-flex; align-items: center; gap: 7px; }
.h-mini .ic { color: var(--volt); }

.h-board {
  border-radius: 20px; overflow: hidden;
  background: rgba(12, 10, 7, .72); border: 1px solid rgba(255, 214, 10, .18);
  backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.h-board-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.h-board-head a { color: var(--volt); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.h-board-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.h-board-row:last-child { border-bottom: 0; }
.h-board-row b { display: block; font-size: 14px; }
.h-board-row span { font-size: 11.5px; color: var(--text-mute); }
.h-board-row .r { text-align: right; }
.h-board-row .r span { font-size: 12px; }

.h-tape { background: #0c0a07; border-block: 1px solid var(--line-soft); height: 46px; }
.h-tape .cx-tape-item { font-size: 13px; }

/* ---------------------------------------------------------- telemetria */

.h-telemetry { background: linear-gradient(180deg, #0c0a07, #070605); border-bottom: 1px solid var(--line-soft); }
.h-tel-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.h-tel-grid div { padding: 30px 18px; border-left: 1px solid var(--line-soft); position: relative; }
.h-tel-grid div:first-child { border-left: 0; }
.h-tel-grid div::before { content: ''; position: absolute; left: 18px; top: 0; width: 24px; height: 3px; background: var(--volt); }
.h-tel-grid b { display: block; font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.h-tel-grid span { font-size: 13px; color: var(--text-mute); font-weight: 600; }

/* ------------------------------------------------------------ seções */

.h-section { padding: 110px 0; }
.h-alt { background: linear-gradient(180deg, #0d0b08, #080705); border-block: 1px solid var(--line-soft); }
.h-head { max-width: 760px; margin-bottom: 44px; }
.h-head p { color: var(--text-dim); font-size: 16.5px; line-height: 1.6; margin: 0; }

/* Mercados em abas */
.h-markets { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
.h-mtabs { display: flex; flex-direction: column; gap: 6px; }
.h-mtabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 18px; border-radius: 16px; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid var(--line-soft); color: var(--text-dim);
  font: 700 16px var(--display); transition: all .15s;
}
.h-mtabs button small { font: 600 12px var(--sans); color: var(--text-mute); }
.h-mtabs button:hover { border-color: var(--line); color: var(--text); }
.h-mtabs button.on { background: var(--volt-bg); border-color: var(--volt); color: var(--text); box-shadow: inset 4px 0 0 var(--volt); }
.h-mpanel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px;
  padding: 32px; border-radius: 24px;
  background: radial-gradient(500px 300px at 0% 0%, rgba(255, 214, 10, .08), transparent 60%), #100d09;
  border: 1px solid var(--line);
}
.h-mpanel[hidden] { display: none; }
.h-mcopy h3 { font-size: 30px; margin: 0 0 10px; }
.h-mcopy p { color: var(--text-dim); line-height: 1.6; margin: 0 0 20px; }
.h-mcopy ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.h-mcopy li { display: flex; gap: 9px; align-items: center; font-weight: 600; font-size: 14px; }
.h-mcopy li .ic { color: var(--volt); }
.h-mlist { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, .25); }
.h-mrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 78px; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.h-mrow:last-child { border-bottom: 0; }
.h-mrow .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 11px var(--display); background: var(--surface-3); color: var(--champ); }
.h-mrow .nm b { display: block; font-size: 14px; }
.h-mrow .nm span { font-size: 12px; color: var(--text-mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-mrow .px { font-size: 14px; text-align: right; }
.h-mrow .x-change { text-align: center; font-size: 12px; }

/* ---------------------------------------------------------------- F1 */

.h-f1 { padding: 30px 0 110px; background: #070605; }
.h-f1-stage { position: relative; height: min(88vh, 820px); min-height: 560px; overflow: hidden; }
.h-f1-stage > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  transform: scale(1.02);
}
.h-f1-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, #070605 0%, rgba(7, 6, 5, .1) 38%, rgba(7, 6, 5, 0) 60%, rgba(7, 6, 5, .85) 100%),
    linear-gradient(90deg, rgba(7, 6, 5, .75), transparent 35%, transparent 65%, rgba(7, 6, 5, .75));
}
.h-f1-hud { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.h-f1-title h2 { margin-bottom: 0; text-shadow: 0 8px 30px rgba(0, 0, 0, .7); }
.h-hud { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; }
.h-hud div {
  padding: 14px 16px; border-radius: 14px;
  background: rgba(8, 7, 5, .72); border: 1px solid rgba(255, 214, 10, .22); backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.h-hud div::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-volt); }
.h-hud span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.h-hud b { display: block; font-family: var(--display); font-size: 24px; color: var(--volt); margin-top: 4px; }
.h-hud small { font-size: 12px; color: var(--text-dim); }

.h-f1-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.h-pit {
  display: grid; grid-template-columns: 44% 1fr; overflow: hidden; border-radius: 22px;
  background: #100d09; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.h-pit:hover { border-color: rgba(255, 214, 10, .4); transform: translateY(-3px); }
.h-pit img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.h-pit > div { padding: 28px 26px; align-self: center; }
.h-pit h3 { font-size: 21px; margin: 10px 0 8px; }
.h-pit p { color: var(--text-dim); line-height: 1.6; margin: 0; font-size: 14.5px; }

/* --------------------------------------------------------- plataforma */

.h-platform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.h-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.h-feats .i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--volt-bg); color: var(--volt); margin-bottom: 12px; }
.h-feats b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.h-feats p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin: 0; }

.h-device {
  position: relative; border-radius: 22px; padding: 16px;
  background: linear-gradient(180deg, #16120c, #0c0a07); border: 1px solid var(--line);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 214, 10, .06), 0 0 120px rgba(255, 214, 10, .08);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.h-device-top { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.h-device-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.h-device-top span { margin-left: 10px; font: 600 12.5px var(--mono); color: var(--text-dim); }
.h-device svg { width: 100%; height: 260px; display: block; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.h-device-ticket { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.h-device-ticket span { text-align: center; padding: 13px; border-radius: 12px; font-weight: 800; font-size: 14px; }
.h-device-ticket .buy { background: #34d399; color: #032015; }
.h-device-ticket .sell { background: rgba(255, 93, 108, .14); color: #ff5d6c; border: 1px solid rgba(255, 93, 108, .4); }

/* ------------------------------------------------------------ largada */

.h-laps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: lap; }
.h-lap {
  position: relative; padding: 30px 26px 28px; border-radius: 22px; overflow: hidden;
  background: #100d09; border: 1px solid var(--line);
}
.h-lap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #f7f3ea 0 12px, #070605 12px 24px);
  opacity: .8;
}
.h-lap .n { font-family: var(--display); font-size: 54px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--volt); line-height: 1; }
.h-lap h3 { font-size: 20px; margin: 16px 0 8px; }
.h-lap p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin: 0; }
.h-pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.h-pay span { color: var(--text-mute); font-weight: 700; font-size: 13px; margin-right: 6px; }
.h-pay b { padding: 9px 16px; border-radius: 30px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 13.5px; }

/* ------------------------------------------------------------- contato */

.h-contact { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 60px; align-items: center; }
.h-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.h-points li { display: flex; gap: 10px; align-items: center; color: var(--text-dim); font-weight: 600; }
.public .tick-mark { background: var(--volt-bg); color: var(--volt); }
.h-form { padding: 30px; border-radius: 24px; background: #110e0a; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.h-form h3 { margin: 0 0 20px; font-size: 20px; }
.contact-done { text-align: center; padding: 10px 0; }
.contact-done .cd-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px; background: var(--volt-bg); color: var(--volt); display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.contact-done p { color: var(--text-dim); margin: 0 0 20px; }

/* ------------------------------------------------------- chamada final */

.h-final { position: relative; overflow: hidden; padding: 130px 0; text-align: center; border-top: 1px solid var(--line-soft); }
.h-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: .28; filter: saturate(1.2); }
.h-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 6, 5, .35), #070605 75%); }
.h-final .h-wrap { position: relative; }
.h-final h2 { font-size: clamp(38px, 6vw, 70px); }
.h-final p { color: var(--text-dim); font-size: 17px; margin: 0 0 30px; }
.h-final .btn { padding: 17px 30px; font-size: 16px; }

/* -------------------------------------------------------------- rodapé */

.h-footer { padding: 54px 0 40px; background: #0b0907; border-top: 1px solid var(--line-soft); }
.h-footer .h-wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.h-footer .brand img { height: 24px; }
.h-footer p { color: var(--text-mute); font-size: 13.5px; margin: 14px 0 0; max-width: 40ch; }
.h-foot-cols { display: flex; gap: 70px; }
.h-foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.h-foot-cols b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.h-foot-cols a { color: var(--text-mute); font-size: 14px; }
.h-foot-cols a:hover { color: var(--volt); }
.public .risk-foot { background: #070605; }

/* ----------------------------------------------------------- responsivo */

@media (max-width: 1100px) {
  .h-tel-grid { grid-template-columns: repeat(3, 1fr); }
  .h-tel-grid div:nth-child(4) { border-left: 0; }
  .h-tel-grid div { border-top: 1px solid var(--line-soft); }
  .h-hud { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}
@media (max-width: 900px) {
  .h-hero { min-height: auto; padding: 110px 0 50px; }
  .h-hero-media img { width: 100%; right: 0; top: 70px; bottom: auto; height: 300px; object-position: 45% 55%; }
  .h-hero-media::after { background: linear-gradient(180deg, rgba(7, 6, 5, .7) 0, rgba(7, 6, 5, 0) 110px, rgba(7, 6, 5, 0) 250px, #070605 370px); }
  .h-hero-grid, .h-markets, .h-mpanel, .h-platform, .h-contact, .h-f1-cards, .h-laps { grid-template-columns: minmax(0, 1fr); }
  .h-hero-grid { padding-top: 250px; }
  .h-mtabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .h-mtabs button { flex: 0 0 auto; }
  .h-mpanel { padding: 22px; }
  .h-section { padding: 74px 0; }
  .h-f1-stage { height: 70vh; min-height: 520px; }
  .h-f1-stage > img { object-position: 45% 60%; }
  .h-f1-hud { bottom: 20px; }
  .h-pit { grid-template-columns: minmax(0, 1fr); }
  .h-pit img { min-height: 180px; max-height: 220px; }
  .h-device { transform: none; }
  .h-foot-cols { gap: 40px; }
}
@media (max-width: 560px) {
  .h-tel-grid { grid-template-columns: repeat(2, 1fr); }
  .h-tel-grid div:nth-child(odd) { border-left: 0; }
  .h-tel-grid div:nth-child(4) { border-left: 1px solid var(--line-soft); }
  .h-tel-grid b { font-size: 26px; }
  .h-hud { grid-template-columns: 1fr 1fr; }
  .h-hud b { font-size: 19px; }
  .h-mrow { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .h-mrow .x-change { display: none; }
  .h-cta .btn-ghost { display: none; }
}

.h-board-row span.up { color: var(--up); }
.h-board-row span.down { color: var(--down); }
