/* ------------------------------------------------------------------
   HOW TO JOIN COPY TRADING — self-contained styles (prefix: hj-)
   Matches the HFT LIVE dark trading UI: #030303 canvas, red accent
   (#ff3b30 / #ff5c58), card surfaces #180909 → #070404, Satoshi display.
   ------------------------------------------------------------------ */

:root {
  --hj-red: #ff3b30;
  --hj-red-soft: #ff5c58;
  --hj-red-dim: #4d1f1f;
  --hj-border: #2a1313;
  --hj-surface-1: #180909;
  --hj-surface-2: #0d0707;
  --hj-surface-3: #070404;
  --hj-ink: #ffffff;
  --hj-ink-2: #d4d4d8;
  --hj-ink-3: #a1a1aa;
  --hj-ink-4: #71717a;
  --hj-display: var(--font-display, "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --hj-sans: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  --hj-mono: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  --hj-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hj-gap: 1.25rem;
}

#join {
  position: relative;
  scroll-margin-top: 6rem;
  padding: 5rem 1rem;
  font-family: var(--hj-sans);
  color: var(--hj-ink);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 640px) { #join { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { #join { padding-top: 7rem; padding-bottom: 7rem; } }

#join *, #join *::before, #join *::after,
.hj-cta *, .hj-cta *::before, .hj-cta *::after,
.hj-page *, .hj-page *::before, .hj-page *::after { box-sizing: border-box; }

/* Ambient backdrop: faint technical grid + soft red glow */
.hj-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hj-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 100%);
}
.hj-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 44rem;
  height: 14rem;
  transform: translateX(-50%);
  background: rgba(255, 59, 48, 0.16);
  filter: blur(110px);
  border-radius: 9999px;
}

.hj-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 86rem;
}

/* ---------- Section header (mirrors the site's eyebrow / display pattern) ---------- */
.hj-head {
  margin: 0 auto 3rem;
  max-width: 48rem;
  text-align: center;
}
.hj-eyebrow {
  margin: 0;
  font-size: var(--text-eyebrow, 0.6875rem);
  line-height: 1;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--hj-red-soft);
}
.hj-h2 {
  margin: 1rem 0 0;
  font-family: var(--hj-display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: var(--hj-ink);
}
@media (min-width: 640px) { .hj-h2 { font-size: 2.875rem; line-height: 1.08; letter-spacing: -0.029em; } }
@media (min-width: 1024px) { .hj-h2 { font-size: 3.5rem; line-height: 1.06; letter-spacing: -0.032em; } }
.hj-lede {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -0.008em;
  color: var(--hj-ink-3);
}
.hj-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--hj-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hj-ink-3);
}
.hj-meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--hj-red-soft);
  box-shadow: 0 0 10px rgba(255, 92, 88, 0.8);
}

/* ---------- Step grid ---------- */
.hj-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.hj-step {
  position: relative;
  min-width: 0;
}

/* Vertical connector between stacked steps (mobile / tablet) */
.hj-step + .hj-step { padding-top: 3.25rem; }
.hj-step + .hj-step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 1px;
  height: 2.25rem;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--hj-border), rgba(255, 92, 88, 0.65));
}
.hj-step + .hj-step::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(0.5rem + 2.25rem - 6px);
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(255, 92, 88, 0.85);
  border-bottom: 1px solid rgba(255, 92, 88, 0.85);
}

/* ---------- Card ---------- */
.hj-card {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "shot"
    "body"
    "cta";
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--hj-border);
  background:
    linear-gradient(to bottom, rgba(24, 9, 9, 0.9), rgba(13, 7, 7, 0.95) 50%, var(--hj-surface-3));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transition: border-color 0.3s var(--hj-ease), transform 0.3s var(--hj-ease), box-shadow 0.3s var(--hj-ease);
}
.hj-card::before {
  /* hairline top highlight */
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(to right, transparent, rgba(255, 92, 88, 0.55), transparent);
  opacity: 0.7;
  transition: opacity 0.3s var(--hj-ease);
}
@media (hover: hover) {
  .hj-card:hover {
    border-color: var(--hj-red-dim);
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 59, 48, 0.05), 0 0 40px -10px rgba(255, 59, 48, 0.25);
  }
  .hj-card:hover::before { opacity: 1; }
}

.hj-card__head { grid-area: head; display: flex; align-items: center; gap: 0.875rem; min-width: 0; }
.hj-card__body { grid-area: body; min-width: 0; }
.hj-card__shot { grid-area: shot; min-width: 0; }
.hj-card__cta  { grid-area: cta; align-self: end; min-width: 0; }
.hj-card__cta:empty { display: none; }

/* Card without a screenshot (Step 04): body fills the space, CTA pinned to the bottom */
.hj-card--no-shot {
  grid-template-areas:
    "head"
    "body"
    "cta";
  grid-template-rows: auto 1fr auto;
}

/* Tablet: text column left, screenshot right, still stacked vertically as steps */
@media (min-width: 640px) and (max-width: 1279.98px) {
  .hj-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "head shot"
      "body shot"
      "cta  shot";
    grid-template-rows: auto 1fr auto;
    column-gap: 1.75rem;
    padding: 1.75rem;
  }
  .hj-card__cta { align-self: end; }
  .hj-card__shot { width: 100%; max-width: 26rem; justify-self: end; }
  .hj-card--no-shot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "body"
      "cta";
    grid-template-rows: auto 1fr auto;
  }
  .hj-card--no-shot .hj-card__body { max-width: 34rem; }
  .hj-card--no-shot .hj-card__cta { max-width: 26rem; }
}

/* Step badge + category tag */
.hj-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid var(--hj-red-dim);
  background: radial-gradient(circle at 50% 30%, #1f0c0c, #0a0505 70%);
  font-family: var(--hj-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--hj-red-soft);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.06), 0 0 24px -6px rgba(255, 59, 48, 0.45);
  transition: box-shadow 0.3s var(--hj-ease), border-color 0.3s var(--hj-ease);
}
.hj-card:hover .hj-badge {
  border-color: var(--hj-red-soft);
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.1), 0 0 30px -4px rgba(255, 59, 48, 0.65);
}
.hj-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-family: var(--hj-mono);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hj-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hj-tag::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  flex: none;
  background: var(--hj-red-dim);
}

/* Titles & copy */
.hj-title {
  margin: 0;
  font-family: var(--hj-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--hj-ink);
  text-wrap: balance;
}
.hj-desc {
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--hj-ink-3);
}
.hj-desc + .hj-desc { margin-top: 0.5rem; }
.hj-desc strong { color: var(--hj-ink-2); font-weight: 600; }
.hj-desc--note { color: var(--hj-ink-4); font-size: 0.8125rem; }

/* Ordered sub-steps (Step 03) */
.hj-list {
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.hj-list li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--hj-ink-2);
}
.hj-list__n {
  flex: none;
  font-family: var(--hj-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hj-red-soft);
}

/* Account flow: STD → PAMM */
.hj-flow {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1rem;
  min-width: 0;
}
.hj-flow__node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: border-color 0.3s var(--hj-ease), background-color 0.3s var(--hj-ease);
}
.hj-flow__node--accent {
  border-color: rgba(255, 92, 88, 0.35);
  background: rgba(255, 59, 48, 0.08);
  box-shadow: inset 0 0 30px -18px rgba(255, 59, 48, 0.6);
}
.hj-card:hover .hj-flow__node { border-color: rgba(255, 255, 255, 0.14); }
.hj-card:hover .hj-flow__node--accent { border-color: rgba(255, 92, 88, 0.6); }
.hj-flow__k {
  font-family: var(--hj-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--hj-ink);
}
.hj-flow__node--accent .hj-flow__k { color: var(--hj-red-soft); }
.hj-flow__v {
  font-family: var(--hj-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hj-ink-4);
}
.hj-flow__arrow {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--hj-red-soft);
}
.hj-flow__arrow svg { width: 1.125rem; height: 1.125rem; display: block; }

/* Key metric (Step 04) */
.hj-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 92, 88, 0.3);
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.12), rgba(255, 59, 48, 0.04));
}
.hj-stat__v {
  font-family: var(--hj-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hj-ink);
  font-variant-numeric: tabular-nums;
}
.hj-stat__u {
  font-family: var(--hj-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hj-red-soft);
}
.hj-stat__l {
  margin-left: auto;
  font-family: var(--hj-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hj-ink-4);
  text-align: right;
}

/* Telegram handle chip */
.hj-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--hj-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hj-ink);
  max-width: 100%;
}
.hj-handle svg { width: 1rem; height: 1rem; flex: none; color: var(--hj-red-soft); }
.hj-handle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons (mirror the site's primary pill) ---------- */
.hj-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: var(--hj-red);
  color: #fff;
  font-family: var(--hj-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 59, 48, 0.35);
  transition: background-color 0.2s var(--hj-ease), box-shadow 0.3s var(--hj-ease), transform 0.2s var(--hj-ease);
}
.hj-btn:hover { background: var(--hj-red-soft); box-shadow: 0 0 40px rgba(255, 59, 48, 0.5); }
.hj-btn:active { transform: translateY(1px); }
.hj-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #030303, 0 0 0 4px #fff; }
.hj-btn svg { width: 1rem; height: 1rem; flex: none; }
.hj-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--hj-ink);
  box-shadow: none;
}
.hj-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 92, 88, 0.5); box-shadow: 0 0 30px -10px rgba(255, 59, 48, 0.4); }
.hj-btn__label { white-space: normal; line-height: 1.2; }
.hj-btn--auto { width: auto; }
.hj-btn--lg { padding: 1rem 2rem; font-size: 0.9375rem; }

/* ---------- Screenshot frame ---------- */
.hj-shot {
  margin: 0;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to bottom, #0b0606, #050303);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: border-color 0.3s var(--hj-ease), box-shadow 0.3s var(--hj-ease);
}
.hj-card:hover .hj-shot {
  border-color: rgba(255, 92, 88, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -18px rgba(0, 0, 0, 0.95), 0 0 36px -14px rgba(255, 59, 48, 0.35);
}
.hj-shot__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.hj-shot__bar i {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}
.hj-shot__bar i:first-child { background: rgba(255, 92, 88, 0.7); }
.hj-shot__bar span {
  margin-left: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--hj-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hj-ink-4);
}
.hj-shot__bar em {
  margin-left: auto;
  flex: none;
  font-style: normal;
  font-family: var(--hj-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--hj-red-soft);
}

/* The clickable image stage. Consistent 3:4 container; image is
   letterboxed (object-fit: contain) so nothing is cropped or stretched. */
.hj-shot__zoom {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0;
  padding: 0.625rem;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.hj-shot__zoom:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 12px; }
.hj-shot__zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--hj-ease), box-shadow 0.35s var(--hj-ease);
}
@media (hover: hover) {
  .hj-shot__zoom:hover img { transform: scale(1.012); box-shadow: 0 0 0 1px rgba(255, 92, 88, 0.35), 0 16px 34px -14px rgba(0, 0, 0, 0.95); }
}
.hj-shot__hint {
  position: absolute;
  right: 1.125rem;
  bottom: 1.125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 3, 3, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-family: var(--hj-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hj-ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--hj-ease), transform 0.25s var(--hj-ease);
  pointer-events: none;
}
.hj-shot__hint svg { width: 0.75rem; height: 0.75rem; }
.hj-shot__zoom:hover .hj-shot__hint,
.hj-shot__zoom:focus-visible .hj-shot__hint { opacity: 1; transform: none; }
@media (hover: none) { .hj-shot__hint { opacity: 1; transform: none; } }

/* Fallback schematic shown only if a step screenshot is unavailable */
.hj-schematic {
  display: none;
  position: absolute;
  inset: 0.625rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 59, 48, 0.12), transparent 60%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  text-align: center;
}
.hj-shot--fallback .hj-schematic { display: flex; }
.hj-shot--fallback img,
.hj-shot--fallback .hj-shot__hint { visibility: hidden; }
.hj-shot--fallback .hj-shot__zoom { cursor: default; }
.hj-schematic .hj-flow { width: 100%; margin-top: 0; flex-direction: column; }
.hj-schematic .hj-flow__arrow { justify-content: center; transform: rotate(90deg); }
.hj-schematic__cap {
  margin: 0;
  font-family: var(--hj-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hj-ink-4);
}

/* ---------- Desktop: 4-up progression with connected rail ---------- */
@media (min-width: 1280px) {
  .hj-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--hj-gap);
    padding-top: 0;
  }
  .hj-step + .hj-step { padding-top: 0; }
  .hj-step + .hj-step::before,
  .hj-step + .hj-step::after { display: none; }

  /* room for the floating badge row (also overrides the stacked-connector padding) */
  .hj-step,
  .hj-step + .hj-step { padding-top: 3.75rem; }

  /* the rail: runs through the centre of the badges, from step 01 to 04 */
  .hj-steps::before {
    content: "";
    position: absolute;
    top: 1.375rem; /* half of badge height */
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(to right, var(--hj-border), rgba(255, 92, 88, 0.55) 50%, var(--hj-border));
    pointer-events: none;
  }
  /* soft moving highlight along the rail */
  .hj-steps::after {
    content: "";
    position: absolute;
    top: calc(1.375rem - 1px);
    left: 12.5%;
    width: 6rem;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(to right, transparent, rgba(255, 92, 88, 0.9), transparent);
    filter: blur(0.5px);
    opacity: 0;
    pointer-events: none;
    animation: hj-rail 7s var(--hj-ease) infinite;
  }
  @keyframes hj-rail {
    0%   { transform: translateX(-3rem); opacity: 0; }
    8%   { opacity: 0.9; }
    92%  { opacity: 0.9; }
    100% { transform: translateX(calc(75vw - 3rem)); opacity: 0; }
  }
  .hj-wrap { container-type: inline-size; }
  @supports (width: 1cqw) {
    @keyframes hj-rail {
      0%   { transform: translateX(-3rem); opacity: 0; }
      8%   { opacity: 0.9; }
      92%  { opacity: 0.9; }
      100% { transform: translateX(calc(75cqw - 3rem)); opacity: 0; }
    }
  }

  .hj-badge {
    /* the card is the positioning context; lift the badge into the rail row above it */
    position: absolute;
    top: -3.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 2.75rem;
    height: 2.75rem;
  }
  .hj-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "body"
      "shot"
      "cta";
    grid-template-rows: auto auto 1fr auto;
    padding: 1.5rem 1.25rem;
  }
  .hj-card--no-shot {
    grid-template-areas:
      "head"
      "body"
      "cta";
    grid-template-rows: auto 1fr auto;
  }
  .hj-card__head { justify-content: center; }
  .hj-tag::before { display: none; }
  .hj-card__body { text-align: left; }
  .hj-card__shot { align-self: start; }
  .hj-title { font-size: 1.125rem; }
}
@media (min-width: 1536px) {
  .hj-card { padding: 1.75rem 1.5rem; }
  .hj-title { font-size: 1.25rem; }
}

/* ---------- Ready banner ---------- */
.hj-ready {
  position: relative;
  margin-top: 3.5rem;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--hj-border);
  background: linear-gradient(to bottom, rgba(24, 9, 9, 0.9), var(--hj-surface-3));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s var(--hj-ease);
}
.hj-ready:hover { border-color: var(--hj-red-dim); }
.hj-ready::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6rem;
  width: 28rem;
  height: 12rem;
  transform: translateX(-50%);
  background: rgba(255, 59, 48, 0.2);
  filter: blur(90px);
  border-radius: 9999px;
  pointer-events: none;
}
@media (min-width: 640px) { .hj-ready { padding: 2.75rem 2.5rem; margin-top: 4rem; } }
.hj-ready__status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 92, 88, 0.35);
  background: rgba(255, 59, 48, 0.08);
  font-family: var(--hj-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hj-red-soft);
}
.hj-ready__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--hj-red-soft);
  box-shadow: 0 0 12px rgba(255, 92, 88, 0.9);
}
.hj-ready__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 92, 88, 0.6);
  animation: hj-ping 2.4s var(--hj-ease) infinite;
}
@keyframes hj-ping {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hj-ready__title {
  position: relative;
  margin: 1.125rem 0 0;
  font-family: var(--hj-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--hj-ink);
  text-wrap: balance;
}
@media (min-width: 640px) { .hj-ready__title { font-size: 2.25rem; letter-spacing: -0.026em; } }
.hj-ready__sub {
  position: relative;
  margin: 0.875rem auto 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hj-ink-3);
}
.hj-ready__disc {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 36rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--hj-ink-4);
}
.hj-ready__disc strong { font-weight: 600; color: var(--hj-ink-3); }

/* ---------- Scroll reveal (only active once JS has mounted) ---------- */
.hj-js .hj-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--hj-ease), transform 0.6s var(--hj-ease);
  transition-delay: var(--hj-d, 0s);
}
.hj-js .hj-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.hj-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 60;
}
.hj-lightbox[open] { display: flex; }
.hj-lightbox::backdrop {
  background: rgba(3, 3, 3, 0.86);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.hj-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: min(92vw, 40rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  border-radius: 20px;
  border: 1px solid #4d1f1f;
  background: linear-gradient(to bottom, #180909, #070404);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(255, 59, 48, 0.35);
  overflow: hidden;
  animation: hj-pop 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes hj-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.hj-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hj-lightbox__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border-radius: 9999px;
  border: 1px solid #4d1f1f;
  background: #0a0505;
  font-family: var(--font-display, "Satoshi", "Inter", sans-serif);
  font-weight: 700;
  font-size: 0.75rem;
  color: #ff5c58;
}
.hj-lightbox__cap {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.hj-lightbox__close {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.hj-lightbox__close:hover { background: rgba(255, 59, 48, 0.2); border-color: rgba(255, 92, 88, 0.6); }
.hj-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hj-lightbox__close svg { width: 1rem; height: 1rem; }
.hj-lightbox__stage {
  min-height: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.hj-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 2rem - 3.75rem - 2rem);
  max-height: calc(100dvh - 2rem - 3.75rem - 2rem);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hj-scroll-lock { overflow: hidden !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .hj-js .hj-reveal { opacity: 1; transform: none; transition: none; }
  .hj-card, .hj-card:hover { transform: none; }
  .hj-steps::after, .hj-ready__dot::after { animation: none; }
  .hj-lightbox__panel { animation: none; }
  .hj-shot__zoom img, .hj-shot__zoom:hover img { transform: none; }
}

/* visually hidden helper */
.hj-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ==================================================================
   Landing page: closing "Start Copy Trading" call to action
   ================================================================== */
.hj-cta {
  position: relative;
  padding: 5rem 1rem;
  font-family: var(--hj-sans);
  color: var(--hj-ink);
}
@media (min-width: 640px) { .hj-cta { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .hj-cta { padding-top: 7rem; padding-bottom: 7rem; } }
.hj-cta__wrap { margin: 0 auto; max-width: 72rem; }
.hj-cta__card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--hj-border);
  background: linear-gradient(to bottom, rgba(24, 9, 9, 0.9), rgba(13, 7, 7, 0.95) 50%, var(--hj-surface-3));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  text-align: center;
  transition: border-color 0.3s var(--hj-ease), box-shadow 0.3s var(--hj-ease);
}
@media (min-width: 640px) { .hj-cta__card { padding: 3.5rem 3rem; } }
.hj-cta__card:hover {
  border-color: var(--hj-red-dim);
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.9), 0 0 50px -14px rgba(255, 59, 48, 0.3);
}
.hj-cta__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(to right, transparent, rgba(255, 92, 88, 0.6), transparent);
}
.hj-cta__glow {
  position: absolute;
  left: 50%;
  top: -5rem;
  width: 26rem;
  height: 12rem;
  transform: translateX(-50%);
  background: rgba(255, 59, 48, 0.22);
  filter: blur(90px);
  border-radius: 9999px;
  pointer-events: none;
}
.hj-cta__title {
  position: relative;
  margin: 0.875rem 0 0;
  font-family: var(--hj-display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.026em;
  color: var(--hj-ink);
  text-wrap: balance;
}
@media (min-width: 640px) { .hj-cta__title { font-size: 2.875rem; line-height: 1.08; letter-spacing: -0.029em; } }
@media (min-width: 1024px) { .hj-cta__title { font-size: 3.5rem; line-height: 1.06; letter-spacing: -0.032em; } }
.hj-cta__copy {
  position: relative;
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: -0.008em;
  color: var(--hj-ink-3);
}
.hj-cta .hj-btn { position: relative; margin-top: 2rem; }
.hj-cta__note {
  position: relative;
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--hj-ink-4);
}

/* ==================================================================
   Guide page chrome (/join/): top bar, main spacing, footer
   ================================================================== */
html.dark { color-scheme: dark; }
.hj-page {
  margin: 0;
  min-height: 100vh;
  background-color: #030303;
  color: #fff;
  font-family: var(--hj-sans);
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.hj-page ::selection { background: rgba(255, 59, 48, 0.3); color: #fff; }

.hj-topbar {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  pointer-events: none;
}
@media (min-width: 640px) { .hj-topbar { padding: 0 1.5rem; } }
.hj-topbar > * { pointer-events: auto; }
.hj-brand,
.hj-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 3, 3, 0.7);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s var(--hj-ease), background-color 0.2s var(--hj-ease), color 0.2s var(--hj-ease);
}
.hj-brand:hover, .hj-back:hover { border-color: rgba(255, 92, 88, 0.5); background: rgba(24, 9, 9, 0.85); }
.hj-brand:focus-visible, .hj-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hj-brand__mark {
  width: 0.625rem;
  height: 0.625rem;
  flex: none;
  background: var(--hj-red);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.8);
}
.hj-brand__name { font-family: var(--hj-display); font-weight: 700; letter-spacing: 0.06em; }
.hj-brand__name em { font-style: normal; color: var(--hj-red-soft); }
.hj-back { color: var(--hj-ink-2); font-weight: 500; }
.hj-back svg { width: 1rem; height: 1rem; flex: none; color: var(--hj-red-soft); }
.hj-back:hover { color: #fff; }
@media (max-width: 400px) { .hj-back span { display: none; } .hj-back { padding: 0 0.875rem; } }

.hj-main { padding-top: 4.5rem; }
.hj-main #join { padding-top: 3.5rem; }
@media (min-width: 1024px) { .hj-main #join { padding-top: 5rem; } }

.hj-footer {
  position: relative;
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) { .hj-footer { padding-left: 1.5rem; padding-right: 1.5rem; } }
.hj-footer__inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 768px) { .hj-footer__inner { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 3rem; } }
.hj-footer__copy { margin: 0; max-width: 44rem; font-size: 0.75rem; line-height: 1.6; color: var(--hj-ink-4); }
.hj-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; flex: none; }
.hj-footer__links a { font-size: 0.875rem; color: var(--hj-ink-3); text-decoration: none; transition: color 0.2s var(--hj-ease); }
.hj-footer__links a:hover { color: #fff; }
