/* Borro, the premium layer over pro.css (Roy, 2026-10-20: "add a bit more flair it also needs to feel super
   premium like a hundred million dollar website"). The base stays clean; this adds a few deliberate moments,
   each carried by the logo's own sunset or by live numbers: the horizon glow behind the hero, the ticket that
   tilts under the cursor and earns while you look at it, product columns that show their mechanics, the
   closing bell as a sunset, and the wordmark at full width to sign off. All motion stops under
   prefers-reduced-motion. */

:root {
  --glow-gold: rgba(237, 178, 90, .62);
  --glow-orange: rgba(220, 116, 64, .50);
  --glow-red: rgba(196, 69, 58, .34);
  --glow-maroon: rgba(104, 41, 54, .28);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ------------------------------------------------------------------ the hero, cinematic */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.horizon { position: absolute; z-index: -1; pointer-events: none; right: -12%; bottom: -38%; width: 92%; height: 120%;
  background:
    radial-gradient(42% 46% at 58% 56%, var(--glow-gold), transparent 70%),
    radial-gradient(36% 40% at 70% 64%, var(--glow-orange), transparent 72%),
    radial-gradient(30% 34% at 50% 74%, var(--glow-red), transparent 72%),
    radial-gradient(26% 30% at 80% 80%, var(--glow-maroon), transparent 74%);
  filter: saturate(1.05); animation: horizon 22s var(--ease) infinite alternate; }
@keyframes horizon { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, -3%, 0) scale(1.06); } }
.hero .kicker { padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); }
.hero .kicker b { font-weight: 600; color: var(--ink); }
.hero .kicker .sep { width: 1px; height: 12px; background: var(--line-2); }
.hero h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: .98; font-stretch: 112%; letter-spacing: -.045em; max-width: 15ch; }
.hero .sub { font-size: 19px; max-width: 32em; }

/* The opening sequence: one orchestrated entrance, then stillness. */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* ...once the brand fonts are in (theme.js), so the text doesn't move under the eye when they swap in. */
:root.fonts-wait .rise { animation-play-state: paused; }

/* Buttons with a sheen that passes on hover. */
.btn { position: relative; overflow: hidden; }
.btn:not(.line)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:not(.line):hover::after { transform: translateX(120%); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

/* The ticket: glass edge, depth, a tilt that follows the cursor and a light that follows it too. */
.stage { perspective: 1400px; justify-self: end; width: 100%; max-width: 560px; }
.ticket { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 1px 1px rgba(13, 13, 15, .04), 0 2px 6px rgba(13, 13, 15, .04), 0 24px 60px -24px rgba(104, 41, 54, .35), 0 50px 120px -60px rgba(220, 116, 64, .45); }
.ticket::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 45%); mix-blend-mode: soft-light; opacity: var(--sheen, 0); transition: opacity .4s; }
.ticket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5); }
.earning { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--text-3); }
.earning b { font: 600 15px var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.earning i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--live); vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------------ the trust line */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.trust b { color: var(--text-2); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 10px; }
.trust span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin-right: 26px; }

/* ------------------------------------------------------------------ numbers that land */
.mk .apr b { transition: color .6s; }
.mk tr.flash .apr b { color: var(--accent); }
.mk tbody tr:hover .who img { transform: scale(1.06); }
.mk .who img { transition: transform .3s var(--ease); }

/* ------------------------------------------------------------------ products that show how they work */
.products { border-top: 0; gap: 20px; }
.product, .product + .product { padding: 0; border-left: 0; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(13, 13, 15, .28); }
.product .viz { position: relative; height: 200px; display: grid; place-items: center; background: linear-gradient(180deg, #F7F7F5, #FFFFFF); border-bottom: 1px solid var(--line); overflow: hidden; }
.product .copy { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product .fig { margin-top: auto; }
.product .copy > p:not(.num) { margin-bottom: 22px; }

/* Lend: the rate as a big live figure. */
.viz-lend { text-align: center; }
.viz-lend b { display: block; font: 700 64px/1 var(--display); font-stretch: 112%; letter-spacing: -.04em; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.viz-lend span { display: block; margin-top: 10px; font-size: 13px; color: var(--text-3); }
/* Borrow: a gauge to the borrowing limit. */
.gauge { width: 150px; height: 150px; }
.gauge circle { fill: none; stroke-width: 12; }
.gauge .track { stroke: var(--sunk); }
.gauge .fill { stroke: url(#sunset-g); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 0 999; transition: stroke-dasharray 1.4s var(--ease); }
.gauge text { font: 700 26px var(--display); fill: var(--ink); text-anchor: middle; }
.gauge .lab { font: 500 12px var(--ui); fill: var(--text-3); }
/* Short: the one transaction as three steps that light in turn. */
.flow { display: grid; grid-template-columns: auto 18px auto 18px auto; align-items: center; gap: 6px; padding: 0 18px; }
.flow .chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(13, 13, 15, .05); animation: step 4.8s infinite; }
.flow .chip:nth-of-type(2) { animation-delay: 1.6s; }
.flow .chip:nth-of-type(3) { animation-delay: 3.2s; }
.flow .arr { height: 1px; background: var(--line-2); position: relative; }
.flow .arr::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--line-2); border-right: 0; }
@keyframes step { 0%, 30% { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(220, 116, 64, .12); } 34%, 100% { border-color: var(--line); box-shadow: 0 1px 2px rgba(13, 13, 15, .05); } }
.flow-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------------ the closing bell, as a sunset */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band .sunset { position: absolute; z-index: -1; left: 50%; bottom: -70%; width: 120%; height: 120%; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(40% 40% at 50% 60%, rgba(237, 178, 90, .38), transparent 70%),
    radial-gradient(55% 45% at 50% 70%, rgba(220, 116, 64, .30), transparent 72%),
    radial-gradient(70% 50% at 50% 80%, rgba(196, 69, 58, .24), transparent 74%),
    radial-gradient(90% 55% at 50% 90%, rgba(104, 41, 54, .30), transparent 76%);
  animation: dusk 16s ease-in-out infinite alternate; }
@keyframes dusk { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-6%); } }
.band-in { padding: 112px 0; }
.ny { margin-bottom: 18px; }
.ny small { display: block; color: rgba(255, 255, 255, .55); font-size: 14px; }
.ny b { display: block; margin-top: 4px; font: 700 clamp(48px, 6vw, 76px)/1 var(--display); font-stretch: 112%; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.clock { backdrop-filter: blur(10px); background: rgba(255, 255, 255, .04); }

/* ------------------------------------------------------------------ the sign-off */
.foot { margin-top: 128px; }
.foot-mark { padding: 56px 0 0; overflow: hidden; }
.foot-mark img { width: 100%; height: auto; transform: translateY(18%); }

/* ------------------------------------------------------------------ the app, a touch more alive */
.app-glow { position: fixed; z-index: -1; pointer-events: none; right: -20%; top: -30%; width: 80vw; height: 80vh; opacity: .55;
  background: radial-gradient(40% 40% at 60% 50%, var(--glow-gold), transparent 70%), radial-gradient(30% 30% at 75% 60%, var(--glow-orange), transparent 72%); }
.trade { position: relative; box-shadow: 0 30px 80px -50px rgba(104, 41, 54, .45); }
.port .live-earn { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.port .live-earn b { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .horizon { width: 160%; right: -40%; bottom: -20%; }
  .products { gap: 16px; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 46px; }
  .trust span + span::before { display: none; }
  .flow { grid-template-columns: auto; gap: 8px; }
  .flow .arr { width: 1px; height: 12px; justify-self: center; }
  .flow .arr::after { display: none; }
  .product .viz { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  :root.fonts-wait .rise { opacity: 0; }
  .horizon, .band .sunset, .flow .chip, .earning i { animation: none; }
  .ticket { transform: none !important; }
}

/* The hero card keeps one height on every tab: each changing block holds all three versions in one grid cell and
   the open tab's fades in (pro.js stack). */
.stack { display: grid; }
.stack > .pane { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
.stack > .pane.on { opacity: 1; visibility: visible; transition: opacity .22s ease .04s; }
.out.stack > .pane { display: block; }
.earning .stack > .pane { display: block; }
.ticket .asset b[data-t="title"] { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .stack > .pane, .stack > .pane.on { transition: none; } }

/* The landing nav marks the page you are on; the Bookrunners and Agents pages lay their view out like the app's
   (rh.css .rh-main), under the landing's own header. */
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.pg-main { padding-top: 40px; min-height: calc(100vh - 68px); }
.pg .rh-aside { top: 92px; }
