/* Reflex: the Pulse site's layout and parts, in Reflex's own electric cyan. Loaded after site.css. */

/* ══════════ colors: every Pulse red/violet becomes cyan/indigo on the Reflex page ══════════ */
.reflex-page {
  --red: #2EE6FF; --violet: #6C7BFF; --lilac: #8CEFFF;
  --grad: linear-gradient(90deg, #2EE6FF, #6C7BFF);
  --rfx: #2EE6FF;
}
.reflex-page .grad-anim { background: linear-gradient(90deg, #2EE6FF, #6C7BFF, #2EE6FF); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; }
.reflex-page .glow-a { background: #2EE6FF; opacity: .09; }
.reflex-page .glow-b { background: #6C7BFF; opacity: .13; }
.reflex-page .btn-primary { color: #03161d; box-shadow: 0 1px 0 #ffffff50 inset, 0 10px 30px -6px #2ee6ff66; }
.reflex-page .btn-primary:hover { box-shadow: 0 1px 0 #ffffff50 inset, 0 16px 40px -6px #2ee6ff99; }
.reflex-page .beat path { filter: drop-shadow(0 0 8px #2ee6ffaa); }
.reflex-page .eyebrow { border-color: #2ee6ff40; background: #2ee6ff0d; }
.reflex-page .eyebrow .dot { background: var(--rfx); box-shadow: 0 0 10px var(--rfx); }
.reflex-page .beta-note > span { color: var(--rfx); border-color: #2ee6ff55; background: #2ee6ff12; }
.reflex-page .ficon { background: #2ee6ff14; border-color: #2ee6ff33; }
.reflex-page .float-key kbd { color: #9df4ff; background: #2ee6ff1a; border-color: #2ee6ff55; }
.reflex-page .float-pill { border-color: #ffd27a55; }
.reflex-page .float-pill b { color: #ffd27a; }
.reflex-page .float-pill .live { background: #ffd27a; box-shadow: 0 0 10px #ffd27a; }
.reflex-page .fx-timeline kbd.click { color: #ffd27a; border-color: #ffd27a66; background: #ffd27a14; }
.reflex-page .final-card { background: radial-gradient(600px 240px at 50% 0%, #2ee6ff26, transparent 70%), linear-gradient(135deg, #2ee6ff12, #6c7bff1f);
  border-color: #2ee6ff44; box-shadow: 0 0 90px -20px #2ee6ff40; }

/* ══════════ the Reflex logo tile ══════════ */
.rfx-tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: #0b0f16; border: 1px solid #2ee6ff55; box-shadow: 0 0 18px -6px #2ee6ffaa; }
.rfx-tile svg { width: 72%; height: 72%; }
.rfx-tile.sm { width: 22px; height: 22px; border-radius: 7px; }
.rfx-tile.xl { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 22px; position: relative; box-shadow: 0 0 60px -10px #2ee6ffaa; }
.rfx-brand { display: flex; align-items: center; gap: 10px; }
.rfx-by { font: 600 11px var(--mono); color: var(--faint); letter-spacing: .5px; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; }

/* ══════════ hero preview: the Reflex app at work ══════════ */
.rfx-app { box-shadow: 0 50px 100px -30px #000, 0 0 0 1px #2ee6ff1f, 0 0 100px -20px #2ee6ff40; }
.rfx-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px var(--mono); letter-spacing: 1px; color: var(--rfx); }
.rfx-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--rfx); box-shadow: 0 0 8px var(--rfx); animation: pulse 1.2s ease-in-out infinite; }
.rfx-app .win-ctl { margin-left: 12px; }
.rfx-app-body { display: flex; min-height: 300px; }
.rfx-rail { width: 52px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: #0b0910; }
.rfx-rail i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); }
.rfx-rail i.on { background: #2ee6ff17; color: var(--rfx); box-shadow: inset 2px 0 0 var(--rfx); }
.rfx-rail svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rfx-app-main { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rfx-live { flex: 1; border: 1px solid var(--line); border-radius: 12px; background: #07060b; padding: 14px 16px 12px; display: flex; flex-direction: column; }
.rfx-live-head { display: flex; justify-content: space-between; font: 600 10.5px var(--mono); letter-spacing: 1px; color: var(--faint); }
.rfx-cy { color: var(--rfx); }
.rfx-track { position: relative; height: 38px; margin: auto 0 0; border-radius: 10px; background: #0f0c16; border: 1px solid var(--line-2); }
.rfx-zone { position: absolute; top: 5px; bottom: 5px; left: 52%; width: 22%; border-radius: 6px; background: #3ddc9738; border: 1px solid #3ddc9766; }
.rfx-gold { position: absolute; top: 5px; bottom: 5px; left: 59%; width: 8%; border-radius: 5px; background: #ffd27a66; border: 1px solid #ffd27a; box-shadow: 0 0 16px -2px #ffd27a88; }
.rfx-aim { position: absolute; top: -7px; bottom: -7px; left: calc(63% - 16px); width: 32px; border: 1.5px dashed #2ee6ffaa; border-radius: 8px; }
.rfx-marker { position: absolute; top: -5px; bottom: -5px; left: 6%; width: 4px; border-radius: 3px; background: #fff; box-shadow: 0 0 14px #fff; animation: rfxSweep 2.4s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
@keyframes rfxSweep { from { left: 5%; } to { left: 92%; } }
.rfx-hit { align-self: flex-end; margin: 10px 0 auto; font: 700 13px var(--display); letter-spacing: .2em; color: #ffd27a; text-shadow: 0 0 18px #ffd27a88; animation: rfxFlash 2.4s ease-in-out infinite alternate; }
@keyframes rfxFlash { 0%, 55% { opacity: .15; } 66%, 100% { opacity: 1; } }
.rfx-dock { display: flex; gap: 10px; align-items: stretch; }
.rfx-power { width: 54px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #2ee6ff14; border: 1px solid #2ee6ff55; }
.rfx-power span { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--rfx); border-top-color: transparent; position: relative; box-shadow: 0 0 12px -2px var(--rfx); }
.rfx-power span::after { content: ""; position: absolute; left: 50%; top: -6px; width: 2.5px; height: 11px; margin-left: -1.25px; border-radius: 2px; background: var(--rfx); }
.rfx-stat { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff05; }
.rfx-stat small { display: block; font: 600 9.5px var(--mono); letter-spacing: 1px; color: var(--faint); }
.rfx-stat b { font: 700 18px var(--display); }

/* ══════════ the three minigames, each with a small live demo ══════════ */
.rfx-plays { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rfx-play { padding: 18px 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); transition: border-color .25s ease, transform .25s ease; }
.rfx-play:hover { border-color: #2ee6ff44; transform: translateY(-3px); }
.rfx-play h3 { font-size: 19px; margin: 18px 4px 8px; }
.rfx-play p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 4px; }
.rfx-demo { position: relative; height: 150px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(260px 120px at 50% 40%, #2ee6ff10, transparent 70%), #08070c;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.d-tag { font: 600 10.5px var(--mono); letter-spacing: 1.2px; color: var(--faint); }
/* bar */
.d-track { position: relative; width: 78%; height: 26px; border-radius: 8px; background: #110e18; border: 1px solid var(--line-2); }
.d-zone { position: absolute; top: 4px; bottom: 4px; left: 48%; width: 26%; border-radius: 5px; background: #3ddc9738; border: 1px solid #3ddc9766; }
.d-gold { position: absolute; top: 4px; bottom: 4px; left: 56%; width: 9%; border-radius: 4px; background: #ffd27a66; border: 1px solid #ffd27a; }
.d-marker { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; animation: dBar 1.9s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
@keyframes dBar { from { left: 4%; } to { left: 94%; } }
/* ring */
.demo-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.r-bg { fill: none; stroke: #1c1726; stroke-width: 9; }
.r-fill { fill: none; stroke: var(--rfx); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px #2ee6ff99); animation: dRing 2.6s ease-in-out infinite; }
@keyframes dRing { 0% { stroke-dashoffset: 100; } 70% { stroke-dashoffset: 0; stroke: var(--rfx); } 78%, 100% { stroke-dashoffset: 0; stroke: #ffd27a; } }
/* keys */
.k-row { display: flex; gap: 6px; justify-content: center; }
.demo-keys { gap: 6px; }
.demo-keys .d-tag { margin-top: 8px; }
.demo-keys kbd { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: #120f19; color: var(--muted); font: 700 13px var(--display);
  box-shadow: 0 3px 0 #0005; animation: dKey 2.4s steps(1) infinite; }
.demo-keys .k1 { animation-delay: 0s; } .demo-keys .k2 { animation-delay: .6s; } .demo-keys .k3 { animation-delay: 1.2s; } .demo-keys .k4 { animation-delay: 1.8s; }
@keyframes dKey { 0% { color: #03161d; background: var(--rfx); border-color: var(--rfx); box-shadow: 0 0 16px -2px var(--rfx); transform: translateY(2px); } 25%, 100% { color: var(--muted); background: #120f19; border-color: var(--line-2); box-shadow: 0 3px 0 #0005; transform: none; } }

/* ══════════ features: 6 cards, wide + 1 / 1 + 1 + 1 / full ══════════ */
.reflex-page .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reflex-page .feature { grid-column: span 1; }
.reflex-page .feature.wide { grid-column: span 2; }
.reflex-page .feature.full { grid-column: 1 / -1; }
.rfx-themes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.rfx-themes span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff05; font: 600 12.5px var(--display); color: var(--muted); }
.rfx-themes i { width: 10px; height: 10px; border-radius: 50%; }
.t-circuit { background: #2EE6FF; } .t-ember { background: #FF7A3D; } .t-aurora { background: #3DDC97; }
.t-sakura { background: #FF8FC7; } .t-royal { background: #9B7BFF; } .t-mono { background: #D8D4E0; }

/* ══════════ being built: a 4-step road ══════════ */
.rfx-road { position: relative; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rfx-road::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rfx) 0 22%, #2ee6ff55 22% 72%, var(--line-2) 72%); }
.rfx-road article { position: relative; padding: 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.rfx-road article.plan { border-style: dashed; }
.rfx-road article.done { border-color: #2ee6ff55; box-shadow: 0 0 40px -18px #2ee6ff88; }
.rfx-road h3 { font-size: 18px; margin: 14px 0 7px; }
.rfx-road p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.rfx-road .tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 10px var(--display); letter-spacing: .1em;
  color: #9df4ff; border: 1px solid #2ee6ff44; background: #0d1219; }
.rfx-road .done .tag { color: #03161d; background: var(--rfx); border-color: var(--rfx); }
.rfx-road .plan .tag { color: var(--muted); border-color: var(--line-2); background: #0f0d15; }

/* ══════════ three steps ══════════ */
.rfx-steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; }
.rfx-steps li { counter-increment: s; list-style: none; position: relative; padding: 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.rfx-steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 11px; background: #2ee6ff17; border: 1px solid #2ee6ff55; color: var(--rfx); font: 700 16px var(--display); }
.rfx-steps li + li::after { content: ""; position: absolute; left: -16px; top: 42px; width: 16px; height: 2px; background: #2ee6ff55; }
.rfx-steps b { display: block; font: 700 17px var(--display); margin-bottom: 6px; }
.rfx-steps span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.rfx-steps .rfx-key { display: inline-block; margin-top: 14px; padding: 7px 12px; border-radius: 9px; font: 600 13px var(--mono); letter-spacing: .5px;
  color: var(--rfx); background: #2ee6ff10; border: 1px solid #2ee6ff33; }

/* ══════════ FAQ: Pulse's own question style (its chevron), in cyan ══════════ */
.reflex-page summary::after { border-color: var(--rfx); }
.reflex-page .tl-gap i { background: repeating-linear-gradient(90deg, #2ee6ffaa 0 6px, transparent 6px 11px); }
.reflex-page .tl-gap i::after { border-color: var(--rfx); }
.reflex-page details[open] { border-color: #2ee6ff50; background: linear-gradient(180deg, #2ee6ff0d, transparent 70%), #120f19e6; }

/* ══════════ smaller screens ══════════ */
@media (max-width: 960px) {
  .rfx-plays { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .reflex-page .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reflex-page .feature.wide { grid-column: span 2; }
  .rfx-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfx-road::before { display: none; }
  .rfx-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .rfx-steps li + li::after { display: none; }
}
@media (max-width: 640px) {
  .reflex-page .bento { grid-template-columns: 1fr; }
  .reflex-page .feature, .reflex-page .feature.wide, .reflex-page .feature.full { grid-column: span 1; }
  .rfx-road { grid-template-columns: 1fr; }
  .rfx-by { display: none; }
  .rfx-app-body { min-height: 240px; }
  .rfx-stat:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rfx-marker, .d-marker, .rfx-hit, .r-fill, .demo-keys kbd, .rfx-status i { animation: none; }
  .rfx-marker { left: 62%; } .d-marker { left: 60%; } .rfx-hit { opacity: 1; } .r-fill { stroke-dashoffset: 0; }
}

/* ══════════ the Reflex card on the Pulse home page ══════════ */
.rfx-promo { max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 56px auto 0; padding: 0 var(--gut); }
.rfx-promo-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: border-color .25s ease; }
.rfx-promo-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 160px at 0% 50%, #2ee6ff17, transparent 70%); }
.rfx-promo-card:hover { border-color: #2ee6ff44; }
.rfx-promo-tile { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; flex: none;
  background: #0b0f16; border: 1px solid #2ee6ff55; box-shadow: 0 0 34px -8px #2ee6ffaa; }
.rfx-promo-tile .rfx-mark { display: block; width: 34px; height: 34px; color: #fff; }
.rfx-promo-tile .rfx-mark svg { width: 100%; height: 100%; }
.rfx-promo-text { position: relative; flex: 1 1 320px; min-width: 0; }
.rfx-promo-text .tag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px; font: 700 10px var(--display);
  letter-spacing: .1em; color: #9df4ff; border: 1px solid #2ee6ff44; background: #0d1219; }
.rfx-promo-text h3 { font-size: 20px; margin-bottom: 5px; }
.rfx-promo-text h3 b { color: #2EE6FF; }
.rfx-promo-text p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.rfx-promo-card .btn-cyan { position: relative; background: #2EE6FF; color: #03161d; box-shadow: 0 1px 0 #ffffff50 inset, 0 10px 30px -8px #2ee6ff66; }
.rfx-promo-card .btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 1px 0 #ffffff50 inset, 0 16px 40px -8px #2ee6ff88; }
/* the little BETA pill on the Reflex nav link */
.beta-tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font: 700 9px var(--display);
  letter-spacing: .1em; color: #2EE6FF; border: 1px solid #2ee6ff55; vertical-align: 1px; }
