/* ==========================================================================
   REFINE — the de-templating pass. Editorial section heads instead of the
   label + centred headline formula, the "live in seven minutes" timeline,
   the master account's numbers as one ledger, and the difference section
   ("Same market. Three traders."). Loaded last.
   ========================================================================== */

/* centred heads lost their label, so the headline no longer needs the gap above it */
.section-head h2:first-child { margin-top: 0; }

/* editorial heads: the headline on the left, its supporting line on the right, one shared baseline */
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 18px 64px; max-width: none; margin: 0 0 clamp(40px, 5vw, 64px); text-align: left; }
.section-head--split h2 { margin: 0; }
.section-head--split p { margin: 0; max-width: 44ch; justify-self: end; font-size: 17px; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; gap: 14px; }
  .section-head--split p { justify-self: start; font-size: 16px; }
}

/* HOW IT WORKS: a timeline, because the real hook is the clock -------------- */
/* the seam between "Six modules" and "Live in about seven minutes": the user's gold-veined space,
   turned a quarter so all of it fits 16:9 (16:9 on wide screens, never shorter than 460px on phones), full bleed and centred on the seam, behind both sections. Its edges and a quiet centre are
   baked into the image (they sink to black), and the band blends with `lighten`, so the black
   becomes the page and the band has no frame. The blend sits on the band itself because its
   transform isolates what is inside it. */
#how { position: relative; }
.cosmos { position: absolute; left: 0; right: 0; top: 0; z-index: var(--z-below); height: max(56.25vw, 460px); overflow: hidden; pointer-events: none; transform: translateY(-50%); opacity: .82; mix-blend-mode: lighten; }
.cosmos img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the gold band at its own resolution: centred and at most 1180px wide, so the 1672px image is never
   stretched past what it holds (it broke into pixels when it ran the full width of the screen) */
.cosmos--gold { left: 50%; right: auto; width: clamp(340px, 72vw, 1180px); height: auto; aspect-ratio: 1672 / 941; transform: translate(-50%, -50%); }
@media (max-width: 760px) { .cosmos--gold { left: 0; width: 100%; height: 300px; aspect-ratio: auto; transform: translateY(-50%); } }
/* the silver slice between "Your capital. Your rules." and "Traders who stopped guessing.": the same
   image turned a quarter, in its own 16:9 on the right of the screen, centred on the seam. It is not
   faded on the right: it pours in from beyond the edge, and its darkness curves away toward the left,
   the top and the bottom (baked into the image) */
#traders { position: relative; }
.cosmos--silver { left: auto; right: 0; width: clamp(340px, 46vw, 940px); height: auto; aspect-ratio: 16 / 9; opacity: .85; }
@media (max-width: 760px) { .cosmos--silver { width: 100%; opacity: .65; } }
.ascent { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.ascent::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(242, 199, 92, .4) 45%, rgba(186, 215, 247, .18)); }
.ascent li { position: relative; padding-top: 80px; }
/* each stop is a cut gem on the rail */
.ascent li::before { content: ""; position: absolute; left: 0; top: 47px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px var(--bg); }
.ascent li:last-child::before { background: var(--gold); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--gold-glow); }
.ascent__t { position: absolute; left: 0; top: 0; font-family: var(--font-dot); font-weight: 800; font-size: 34px; line-height: 1; color: var(--gold-hi); text-shadow: 0 0 12px rgba(242, 199, 92, .35); }
.ascent h3 { font-size: 22px; }
.ascent p { margin-top: 10px; max-width: 34ch; font-size: 15.5px; line-height: 1.6; color: var(--text-3); }
@media (max-width: 760px) {
  .ascent { grid-template-columns: 1fr; gap: 30px; }
  .ascent::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(var(--gold), rgba(186, 215, 247, .18)); }
  .ascent li { padding: 0 0 0 36px; }
  .ascent li::before { top: 4px; }
  .ascent__t { position: static; display: block; margin-bottom: 10px; font-size: 26px; }
}

/* MASTER ACCOUNT: four numbers as one ledger, not four identical cards ------ */
.stats { gap: 0; border-radius: var(--r-card); overflow: hidden; background: var(--glass); box-shadow: var(--sh-card); }
.stats > .stat { border-radius: 0; background: none; box-shadow: none; }
.stats > .stat + .stat { box-shadow: inset 1px 0 0 var(--edge-soft); }
@media (max-width: 1080px) {
  .stats > .stat:nth-child(3) { box-shadow: inset 0 1px 0 var(--edge-soft); }
  .stats > .stat:nth-child(4) { box-shadow: inset 1px 0 0 var(--edge-soft), inset 0 1px 0 var(--edge-soft); }
}

/* THE DIFFERENCE: one market moment, three traders ------------------------- */
.duel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.duel__moments { display: grid; gap: 4px; }
.duel__moments button { position: relative; overflow: hidden; padding: 14px 16px 15px; border-radius: 12px; text-align: left; color: var(--text-3); transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.duel__moments b { display: block; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.duel__moments span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; }
.duel__moments button[aria-selected="true"] { background: var(--glass-2); box-shadow: var(--sh-hair); }
.duel__moments button[aria-selected="true"] b { color: var(--text-hi); }
@media (hover: hover) { .duel__moments button:hover b { color: var(--text-hi); } }
/* while it plays itself, the active moment shows how long until the next one */
.duel__moments button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 1.5px; border-radius: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.duel.is-auto .duel__moments button[aria-selected="true"]::after { animation: duelBar 7s linear forwards; }
@keyframes duelBar { to { transform: scaleX(1); } }

.duel__scene { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; animation: viewIn .5s var(--ease-out); }
.duel__scene[hidden] { display: none; }
.duel__card { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r-card); background: var(--glass); box-shadow: var(--sh-hair); }
.duel__card--zeus { background: var(--deep-glass); box-shadow: var(--sh-modal), inset 0 0 0 1px var(--gold-edge); }
.duel__card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.duel__who { font-size: 14px; font-weight: 500; color: var(--text-3); }
.duel__card--zeus .duel__who { font-family: var(--font-dot); font-weight: 800; font-size: 16px; letter-spacing: .08em; color: var(--gold-hi); }
.duel__res { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.duel__chart { width: 100%; height: 56px; margin: 14px 0; overflow: visible; }
.duel__chart .base { stroke: rgba(186, 214, 247, .16); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.duel__chart .l { fill: none; stroke: rgba(186, 214, 247, .5); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.duel__chart .a { fill: rgba(186, 214, 247, .05); }
.duel__chart .end { fill: rgba(186, 214, 247, .7); }
.duel__card--zeus .duel__chart .l { stroke: var(--gold); stroke-width: 2; }
.duel__card--zeus .duel__chart .a { fill: url(#pfFill); }
.duel__card--zeus .duel__chart .end { fill: var(--gold-hi); }
.duel__card p { font-size: 14px; line-height: 1.55; color: var(--text-3); }
.duel__card--zeus p { color: var(--text-2); }
.duel__note { margin-top: 12px; font-size: 12px; color: var(--text-4); }

@media (max-width: 1080px) {
  .duel { grid-template-columns: 1fr; }
  /* moments become a row of chips you can swipe through */
  .duel__moments { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
  .duel__moments::-webkit-scrollbar { display: none; }
  .duel__moments button { scroll-snap-align: start; padding: 11px 16px 12px; border-radius: var(--r-pill); box-shadow: var(--sh-hair); }
  .duel__moments span { display: none; }
  .duel__moments button::after { left: 18px; right: 18px; bottom: 5px; }
}
@media (max-width: 760px) {
  .duel__scene { grid-template-columns: 1fr; gap: 10px; }
  .duel__card { padding: 16px; }
  .duel__chart { height: 46px; margin: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .duel__scene { animation: none; } }

/* BRAND LOCKUP: the haloed bust + the gold wordmark ------------------------ */
.logo { gap: 10px; }
.logo__mark { width: auto; height: 42px; margin: -6px 0 -4px; filter: drop-shadow(0 0 10px rgba(242, 199, 92, .22)); }
.logo__word { width: auto; height: 21px; transition: filter .2s; }
@media (hover: hover) { .logo:hover .logo__word { filter: brightness(1.12); } }
.foot__brand .logo { gap: 14px; }
.foot__brand .logo__mark { height: 64px; margin: 0; }
.foot__brand .logo__word { height: 27px; }
/* the final call to action carries the mark, lit softly from behind */
.final__mark { display: block; width: auto; height: clamp(96px, 11vw, 132px); margin: 0 auto -6px; filter: drop-shadow(0 0 28px rgba(242, 199, 92, .3)) drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
@media (max-width: 600px) {
  .logo__mark { height: 38px; }
  .logo__word { height: 18px; }
}
