/* Ryfe site polish (fx.js): card glint, glowing section lines, light beams, glowing hero frame, trust row, smooth scroll.
   Ideas from ascendscripts.com, in Ryfe's purple / pink / teal. Everything stops for "reduce motion". */

/* ---------- card glint: a soft shine sweeps across every few seconds ---------- */
.fx-glint { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.fx-glint::before { content: ''; position: absolute; top: -30%; bottom: -30%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%, transparent 100%);
  transform: translateX(-140%) skewX(-16deg); animation: fxGlint 6s cubic-bezier(.45,.05,.3,1) infinite; animation-delay: var(--gd, 0s); }
@keyframes fxGlint { 0% { transform: translateX(-140%) skewX(-16deg); } 26%, 100% { transform: translateX(380%) skewX(-16deg); } }

/* ---------- glowing line between sections: draws in when you reach it, then a glint runs along ---------- */
.fx-line { position: absolute; top: 0; left: 50%; width: min(1100px, calc(100% - 40px)); height: 1px; transform: translateX(-50%); pointer-events: none; z-index: 1; }
.fx-line::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.55) 18%, rgba(244,114,182,.7) 50%, rgba(45,212,191,.55) 82%, transparent);
  box-shadow: 0 0 14px 1px rgba(167,139,250,.35); transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.fx-line.drawn::before { transform: scaleX(1); }
.fx-line i { position: absolute; top: -1px; left: 0; width: 160px; height: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 12px 2px rgba(244,114,182,.7); }
.fx-line.drawn i { animation: fxRun 7s ease-in-out 1.4s infinite; }
@keyframes fxRun { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 40% { opacity: 1; } 50%, 100% { left: calc(100% - 160px); opacity: 0; } }

/* ---------- light beams behind some sections ---------- */
.fx-has-beams { isolation: isolate; }
.fx-beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
/* one beam = a soft band of light with a bright line on its edge, tilted, drifting slowly */
.fx-beams i { position: absolute; top: -30%; height: 160%; width: 300px; animation: fxBeam 18s ease-in-out infinite alternate;
  background: linear-gradient(90deg, rgba(139,92,246,.14), rgba(244,114,182,.05) 55%, transparent); }
.fx-beams i::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(196,181,253,.75) 35%, rgba(244,114,182,.6) 65%, transparent);
  box-shadow: 0 0 22px 5px rgba(139,92,246,.3); }
.fx-beams i.b2 { opacity: .45; animation-delay: -9s; }
.fx-right .fx-beams i { left: 64%; transform: rotate(26deg); }
.fx-right .fx-beams i.b2 { left: 80%; }
.fx-left .fx-beams i { right: 64%; transform: rotate(-26deg) scaleX(-1); }
.fx-left .fx-beams i.b2 { right: 80%; }
@keyframes fxBeam { 0% { translate: -30px 0; } 100% { translate: 40px 0; } }
@media (max-width: 700px) { .fx-beams i { width: 160px; } .fx-beams i.b2 { display: none; } }

/* ---------- hero: glowing frame that slowly turns around the video showcase ---------- */
@property --ring-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sc-frame-wrap { position: relative; isolation: isolate; }
.sc-ring { position: absolute; inset: -1px; border-radius: 27px; padding: 1.5px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--ring-a), rgba(139,92,246,.95), rgba(244,114,182,.95) 20%, rgba(45,212,191,.9) 40%, rgba(139,92,246,.12) 62%, rgba(139,92,246,.12) 80%, rgba(139,92,246,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fxRing 8s linear infinite; }
.sc-ring.glow { inset: -5px; border-radius: 31px; padding: 0; -webkit-mask: none; mask: none; filter: blur(16px); opacity: .55; z-index: -1; }
@keyframes fxRing { to { --ring-a: 360deg; } }

/* ---------- trust row (home: under the hero + above pricing) ---------- */
.trust-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; max-width: 1180px;
  margin: 46px auto 0; padding: 14px 20px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--stroke, rgba(255,255,255,.08));
  font-size: 14px; color: var(--muted); }
.trust-row.slim { margin: -8px auto 26px; padding: 6px 12px; background: none; border-color: transparent; font-size: 13.5px; }
.tr-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tr-item[hidden] { display: none; }
.tr-item b { color: #fff; font-weight: 800; }
.tr-item svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #a78bfa; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-pay { display: inline-flex; align-items: center; gap: 5px; }
.tr-pay i { display: inline-grid; place-items: center; height: 21px; padding: 0 6px; border-radius: 5px; background: #fff; color: #111;
  font: 800 10px/1 var(--font-body, system-ui); font-style: normal; letter-spacing: .01em; }
.tr-pay .pv { color: #1a1f71; font-style: italic; font-weight: 900; letter-spacing: .05em; }
.tr-pay .pm { position: relative; width: 34px; padding: 0; }
.tr-pay .pm b { position: absolute; top: 4.5px; width: 13px; height: 13px; border-radius: 50%; }
.tr-pay .pm b:first-child { left: 6px; background: #eb001b; }
.tr-pay .pm b:last-child { left: 14px; background: #f79e1b; opacity: .9; }
@media (max-width: 640px) {
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; justify-items: start; gap: 10px 12px; margin-top: 34px; padding: 14px; font-size: 12.5px; }
  .trust-row.slim { margin: -4px auto 20px; }
  .tr-item { white-space: normal; align-items: flex-start; }
  .tr-pay { grid-column: 1 / -1; justify-self: center; margin-top: 2px; }
}

/* ---------- smooth scrolling on PC (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .fx-glint, .fx-beams, .fx-line i { display: none; }
  .fx-line::before { transform: none; transition: none; }
  .sc-ring { animation: none; }
}
