/* GEX Levels — /platforms product-showcase layer.
   Loaded AFTER redesign-base.css and redesign-atas.css: this sheet only ADDS the
   showcase treatment (status badges, the platform rail, card glyphs, hover lift,
   scroll reveal). It never restyles the shared shell.

   Site CSP is style-src 'self' with no 'unsafe-inline': every declaration below
   must stay in this file. No style="" attribute and no <style> block on the page.
   Motion budget: nothing longer than 500ms, and prefers-reduced-motion wins. */

/* ---------------------------------------------------------------------------
   0. icon sprite
   The page ships one <svg class="pf-sprite"> of <symbol>s and references them
   with <use>. Hidden here rather than with an inline style/hidden attribute.
   --------------------------------------------------------------------------- */
.pf-sprite { display: none; }

.pf-i { display: block; width: 20px; height: 20px; }

/* status text for screen readers, since "live vs. in validation" is carried
   visually by the badge fill and the rail disc fill */
.pf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   1. hero — a very low-contrast gold wash so the fold reads as a product shot
   --------------------------------------------------------------------------- */
.hero { position: relative; }
/* Kept strictly inside the hero box on both axes: a pseudo-element that bleeds
   past the shell would widen the document and give the whole page a horizontal
   scrollbar (measured: +84px at 1280, +48px at 390). */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: radial-gradient(86% 100% at 16% 0%, rgba(200, 168, 120, .11), rgba(200, 168, 120, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
   2. the rail — Chrome > TradingView > ATAS > the four native ports.
   One row, horizontally scrollable on narrow screens so the page body itself
   never scrolls sideways.
   --------------------------------------------------------------------------- */
.pf-rail { margin-top: 36px; }
/* the rail lives inside .hero, whose `.hero p` rule (0,1,1) would otherwise win:
   these two are scoped through .pf-rail to outrank it. */
.pf-rail .pf-rail__caption {
  max-width: none;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8d9098;
}
.pf-rail__track {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 2px 0 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 168, 120, .28) transparent;
}
.pf-rail__node {
  position: relative;
  flex: 1 0 118px;
  min-width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
/* connector to the next node, drawn behind the discs */
.pf-rail__node::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 27px);
  width: calc(100% - 54px);
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 168, 120, .40), rgba(200, 168, 120, .16));
  z-index: 0;
}
.pf-rail__node:last-child::after { display: none; }
/* the live -> in-validation seam is dashed: shipped vs. not shipped yet */
.pf-rail__node--seam::after {
  background: repeating-linear-gradient(90deg, rgba(200, 168, 120, .38) 0 4px, rgba(200, 168, 120, 0) 4px 9px);
}

.pf-rail__disc {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #26221b);
  background: var(--panel, #18130c);
  color: var(--muted, #9c9fa8);
  transition: transform .25s cubic-bezier(.22, .61, .36, 1), border-color .25s ease;
}
.pf-rail__node--live .pf-rail__disc {
  background: var(--accent, #c8a878);
  border-color: var(--accent, #c8a878);
  color: var(--gold-ink, #1a1408);
}
.pf-rail__node--soon .pf-rail__disc {
  background: rgba(200, 168, 120, .06);
  border-color: rgba(200, 168, 120, .38);
  color: var(--accent-2, #e0c79a);
}
.pf-rail__node:hover .pf-rail__disc { transform: translateY(-2px); }
.pf-rail__disc .pf-i { width: 21px; height: 21px; }

.pf-rail__name {
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.35;
  color: #d6d8dd;
}
.pf-rail__node--soon .pf-rail__name { color: var(--muted, #9c9fa8); }

.pf-rail .pf-rail__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  max-width: none;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted, #9c9fa8);
}
.pf-key { display: inline-flex; align-items: center; gap: 9px; }
.pf-key::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.pf-key--live::before { background: var(--accent, #c8a878); }
.pf-key--soon::before { background: transparent; border: 1px solid rgba(200, 168, 120, .55); }

/* ---------------------------------------------------------------------------
   3. status badges — live is solid gold, in-validation is outline only
   --------------------------------------------------------------------------- */
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.75;
  white-space: nowrap;
}
.pf-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pf-badge--live {
  background: var(--accent, #c8a878);
  color: var(--gold-ink, #1a1408);
}
.pf-badge--live::before { background: currentColor; }
.pf-badge--soon {
  border: 1px solid rgba(200, 168, 120, .45);
  background: rgba(200, 168, 120, .05);
  color: var(--accent-2, #e0c79a);
}
.pf-badge--soon::before { border: 1px solid currentColor; }

/* ---------------------------------------------------------------------------
   4. platform cards
   --------------------------------------------------------------------------- */
.pf-card {
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), border-color .28s ease,
              background .28s ease, box-shadow .28s ease;
}
.pf-card:hover,
.pf-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(200, 168, 120, .34);
  background: var(--panel-2, #1e1811);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .95);
}

.pf-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.pf-card__glyph {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #26221b);
  background: var(--panel-2, #1e1811);
  color: var(--accent-2, #e0c79a);
}
.pf-card--live .pf-card__glyph {
  border-color: rgba(200, 168, 120, .34);
  color: var(--accent, #c8a878);
}
.pf-card p + p { margin-top: 12px; }

/* scoped through .pf-card so it outranks `.card p { margin: 0 }` (0,1,1) */
.pf-card .pf-card__cta { margin-top: auto; padding-top: 14px; }
.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 620;
  color: var(--accent-2, #e0c79a);
}
.pf-link::after {
  content: "\2192";
  transition: transform .2s ease;
}
.pf-link:hover { text-decoration: none; }
.pf-link:hover::after,
.pf-card:hover .pf-link::after { transform: translateX(3px); }

/* four native ports: 2-up early, 4-up once there is room */
@media (min-width: 640px) { .pf-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pf-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------------------
   5. early-access band (sits under the four ports, reads as an invitation)
   --------------------------------------------------------------------------- */
.pf-early {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  margin-top: 14px;
  border-color: rgba(200, 168, 120, .28);
  background: linear-gradient(150deg, rgba(200, 168, 120, .075), rgba(200, 168, 120, .015));
}
.pf-early .pf-card__glyph {
  color: var(--accent, #c8a878);
  border-color: rgba(200, 168, 120, .34);
  background: rgba(200, 168, 120, .07);
}
.pf-early__body { flex: 1 1 auto; min-width: 0; }
.pf-early h3 { margin: 2px 0 8px; }

/* ---------------------------------------------------------------------------
   6. "same map everywhere" proof cards
   --------------------------------------------------------------------------- */
.pf-card--proof .pf-card__glyph {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.pf-card--proof .pf-card__glyph .pf-i { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------------
   7. final panel
   --------------------------------------------------------------------------- */
.pf-final {
  border: 1px solid rgba(200, 168, 120, .24);
  border-radius: 16px;
  padding: 38px clamp(20px, 4vw, 40px) 40px;
  background:
    radial-gradient(115% 150% at 10% 0%, rgba(200, 168, 120, .10), rgba(200, 168, 120, 0) 62%),
    var(--panel, #18130c);
}
.pf-final .h2 { margin-top: 0; }

/* ---------------------------------------------------------------------------
   8. scroll reveal
   The pre-hidden state is gated on html.js, set by the allow-listed inline boot
   script in <head>. Without JavaScript the class is never added and every block
   renders visible — the reveal is pure enhancement, never a prerequisite.
   --------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .42s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
}
html.js .grid > [data-reveal]:nth-child(2).is-in { transition-delay: .06s; }
html.js .grid > [data-reveal]:nth-child(3).is-in { transition-delay: .12s; }
html.js .grid > [data-reveal]:nth-child(4).is-in { transition-delay: .18s; }

/* Every card is also a reveal target, and `html.js [data-reveal].is-in` (0,3,1)
   owns `transform` — it outranks a bare `.pf-card:hover` (0,2,0), which silently
   killed the hover lift on every revealed card. Restate the lift at a weight
   that wins. Verified: without this, :hover computed transform stays `none`. */
html.js [data-reveal].pf-card.is-in:hover,
html.js [data-reveal].pf-card.is-in:focus-within {
  transform: translateY(-3px);
  transition-delay: 0s;
}

/* ---------------------------------------------------------------------------
   9. reduced motion — no travel, no lift, nothing hidden waiting on an observer
   (redesign-atas.css already kills transitions globally under this query; these
   rules additionally neutralise the transforms and the hidden pre-state)
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .pf-card:hover,
  .pf-card:focus-within,
  html.js [data-reveal].pf-card.is-in:hover,
  html.js [data-reveal].pf-card.is-in:focus-within,
  .pf-rail__node:hover .pf-rail__disc { transform: none; }
  .pf-link:hover::after,
  .pf-card:hover .pf-link::after { transform: none; }
}

/* ---------------------------------------------------------------------------
   10. small screens
   --------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .pf-early { flex-direction: column; gap: 12px; }
  .pf-rail__node { flex: 0 0 108px; min-width: 108px; }
}

/* Fond unifie (owner 2026-08-18) : le linear-gradient 160deg de l atas sheet
   sur body bande sur ecran large - une seule couleur plate sur html+body,
   le relief vient d un calque full-bleed du hero. */
html, body { background: #0b0805; }
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  bottom: -30px;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
  background:
    radial-gradient(760px 460px at 50% -90px, rgba(212, 180, 131, 0.17), rgba(212, 180, 131, 0) 70%),
    radial-gradient(1100px 340px at 50% 8%, rgba(200, 168, 120, 0.07), rgba(200, 168, 120, 0) 74%),
    repeating-linear-gradient(180deg, rgba(200, 168, 120, 0.045) 0 1px, rgba(200, 168, 120, 0) 1px 88px);
}
.hero h1 {
  background: linear-gradient(115deg, #ecedef 52%, #e8cf9d 86%, #c8a878);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ecedef;
}

/* ---------------------------------------------------------------------------
   11. native-build download cards
   Reuses .pf-card / .pf-grid--4. Adds the honest install note, a full-width
   download button (no $ figure — AMF-safe) and the source-as-is footnote.
   Site CSP is style-src 'self': every rule stays in this file, no inline style.
   --------------------------------------------------------------------------- */
.pf-dl .pf-dl__note {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted, #9c9fa8);
}
.pf-dl .pf-dl__note code {
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--line, #26221b);
  background: var(--panel-2, #1e1811);
  color: var(--accent-2, #e0c79a);
  font-size: 12.5px;
}

/* full-width download button: gold outline that fills on hover/focus. Distinct
   from the solid primary CTA, with a download-arrow affordance. */
.pf-dl .pf-card__cta { width: 100%; }
.pf-dl__btn {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 9px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid rgba(200, 168, 120, .45);
  background: rgba(200, 168, 120, .06);
  color: var(--accent-2, #e0c79a);
  font-size: 14.5px;
  font-weight: 650;
  text-align: center;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.pf-dl__btn::before {
  content: "\2193";
  font-weight: 700;
  margin-right: 2px;
}
.pf-dl__btn:hover,
.pf-dl__btn:focus-visible {
  background: var(--accent, #c8a878);
  border-color: var(--accent, #c8a878);
  color: var(--gold-ink, #1a1408);
  text-decoration: none;
  transform: translateY(-1px);
}
.pf-dl__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .72;
}

.pf-dl__foot {
  margin-top: 20px;
  max-width: 760px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #9c9fa8);
}

@media (prefers-reduced-motion: reduce) {
  .pf-dl__btn:hover,
  .pf-dl__btn:focus-visible { transform: none; }
}
