/* FasterAI Labs site, v5 layer. Loads after fasterai-site.css (tokens + components + fs-* layout).
   Rules: two-tone heading on the home H1 only. One light section per page at most. Orange = actions, data highlights, light.
   Light system: one hero halo per page, a rising halo behind the closing block, panels lit from the top edge. Never a flat orange wash. */
.v5-page { background: #0C0E11; color: var(--ink); font-family: var(--font-sans); }
.v5-deep { background: #0C0E11; }
.v5-graphite { background: var(--graphite); }

/* Header, with a compact menu under 760px */
.fs-header.v5-header { position: relative; z-index: 5; border-bottom-color: transparent; background: transparent; }
.v5-header .fs-nav { position: relative; }
.v5-menu { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--ink); cursor: pointer; }
.v5-menu:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Type scale: home H1 88, page H1 64, H2 40, H3 22 */
.v5-h { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
.v5-h span { color: var(--text-secondary); }
.v5-h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.v5-h2 { font-size: clamp(28px, 2.8vw, 40px); }
.v5-h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.v5-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text-body); max-width: 46ch; }
.v5-body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.v5-mono { font-family: var(--font-mono); }
.v5-n { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.v5-ctx { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; letter-spacing: 0.01em; color: var(--mist); }
.v5-k { font-size: 14px; font-weight: 600; color: var(--ink); }
.v5-big { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v5-big small { font-size: 0.42em; letter-spacing: 0; margin-left: 0.14em; font-weight: 400; color: var(--text-body); }
.v5-nowrap { white-space: nowrap; }

/* Sections */
.v5-sec { padding-top: 112px; padding-bottom: 112px; }
.v5-sec--tight { padding-top: 80px; padding-bottom: 80px; }
.v5-rule { border-top: 1px solid var(--rule); }
.v5-hero { position: relative; overflow-x: clip; overflow-y: visible; }
.v5-hero__in { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 80px; }
.v5-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 56px; }

.v5-orange { background: #F97316; color: #111418; }

/* Bottom strip of a hero */
.v5-tools { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; border-top: 1px solid var(--rule); padding: 22px 0 26px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; color: var(--mist); }
.v5-tools b { font-weight: 400; color: var(--ink); }

/* Ledger rows */
.v5-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.v5-ledger > li, .v5-ledger > div { border-bottom: 1px solid var(--rule); }

/* Real tables with full-width row rules */
.v5-table-box { overflow-x: auto; }
.v5-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v5-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mist); padding: 14px 24px 14px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.v5-table td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink); }
.v5-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v5-table .r { text-align: right; }
.v5-table tr > :last-child { padding-right: 0; }
.v5-table small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* Tags */
.v5-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 2px; color: var(--mist); }
.v5-tag--on { border-color: var(--ink); color: var(--ink); }
.v5-tag i { display: block; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }

/* Closing block: next step on the left, what happens after on the right */
.v5-next { border-top: 1px solid var(--rule); }
.v5-next__in { padding-top: 104px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 96px; align-items: start; }
.v5-next__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.v5-next__steps li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--text-body); }
.v5-next__steps li b { font-weight: 600; color: var(--ink); }

/* Footer */
.v5-foot { border-top: 1px solid var(--rule); background: #0C0E11; }
.v5-foot__in { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.v5-foot nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.v5-foot nav a { color: var(--text-body); text-decoration: none; }
.v5-foot nav a:hover { color: var(--ink); }
.v5-foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--rule); margin-bottom: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.v5-foot__legal a { color: var(--text-secondary); }

/* Light and relief */
.v5-glow { position: absolute; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(249,115,22,.22), rgba(194,65,12,.07) 55%, rgba(194,65,12,0)); }
.v5-glow--hero { width: 980px; height: 980px; right: -300px; top: -440px; }
.v5-panel { position: relative; background: linear-gradient(180deg, rgba(244,245,246,.045), rgba(244,245,246,0) 42%), #13171C; border: 1px solid var(--rule); border-radius: 12px; }
.v5-panel::before { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 1px; background: linear-gradient(90deg, rgba(249,115,22,0), rgba(249,115,22,.85) 50%, rgba(249,115,22,0)); pointer-events: none; }
.v5-panel > * { position: relative; z-index: 1; }
.v5-panel > .v5-panel__light, .v5-panel > .pr-panel__glow { position: absolute; z-index: 0; }
.v5-fade { background: linear-gradient(180deg, #0C0E11 0%, #11151A 100%); }
.v5-next { position: relative; overflow: clip; }
.v5-next::before { content: ""; position: absolute; left: -260px; bottom: -560px; width: 1200px; height: 860px; border-radius: 50%; background: radial-gradient(closest-side, rgba(249,115,22,.30), rgba(194,65,12,.10) 50%, rgba(194,65,12,0)); pointer-events: none; }
.v5-next__in { position: relative; }

/* Interaction */
.v5-table tbody tr { transition: background-color .2s ease; }
.v5-table tbody tr:hover { background: rgba(244,245,246,.03); }
.v5-ledger > li, .v5-ledger > div { transition: background-color .2s ease; }
.fa-button.fs-lg { transition: background-color .2s ease, box-shadow .3s ease; }
.fa-button.fs-lg:not(.fa-button--secondary):hover { box-shadow: 0 0 0 1px rgba(251,146,60,.4), 0 8px 28px -8px rgba(249,115,22,.55); }

/* Scroll reveal: final state is the default, so pages without scroll (or older browsers) show everything */
@supports (animation-timeline: view()) {
  .v5-rv { animation: v5rv linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
  .v5-grow { transform-origin: left center; animation: v5grow linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
}
@keyframes v5rv { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes v5grow { from { transform: scaleX(0); } to { transform: none; } }

@media (max-width: 760px) {
  .v5-header .fs-nav { min-height: 64px; flex-wrap: nowrap; gap: 12px; padding: 10px 0; }
  .v5-header .fs-navlinks { display: none; }
  .v5-header .fs-nav[data-open="true"] .fs-navlinks { display: flex; position: absolute; left: -20px; right: -20px; top: 64px; flex-direction: column; gap: 0; margin: 0; padding: 4px 20px 16px; background: #0C0E11; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .v5-header .fs-nav[data-open="true"] .fs-navlinks a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .v5-header .fs-nav > .fa-button { margin-left: auto; padding: 10px 14px; font-size: 14px; }
  .v5-menu { display: inline-flex; }
  .v5-sec { padding-top: 72px; padding-bottom: 72px; }
  .v5-hero__in { padding-top: 48px; padding-bottom: 48px; }
  .v5-headrow { margin-bottom: 36px; }
  .v5-next__in { padding-top: 72px; padding-bottom: 72px; }
  .v5-next__steps li { grid-template-columns: 1fr; gap: 4px; }
  .v5-foot__in { grid-template-columns: 1fr 1fr; }
  .v5-foot__in > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .v5-rv, .v5-grow { animation: none; }
}
