/* ===========================================================================
   Recap Maker — shared "fresh modern" theme
   Used by the redesigned pages (landing uses an inline copy of this system).
   NOTE: This is a NEW file. Do not confuse with the legacy /static/animations.css
   which is still consumed by miniapp.html and other not-yet-migrated pages.
   =========================================================================== */

/* ----- Base ----- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', 'Noto Sans Myanmar', sans-serif;
  overflow-x: hidden;
  background: #0f072e;
  color: #e9e1ff;
}
.font-headline { font-family: 'Plus Jakarta Sans', 'Noto Sans Myanmar', sans-serif; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.gradient-primary { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); }

/* ----- Continuously flowing brand gradient text ----- */
.gradient-text {
  background: linear-gradient(90deg, #a3a6ff, #c180ff, #7de9ff, #c180ff, #a3a6ff);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientSweep 7s linear infinite;
}
@keyframes gradientSweep { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }

/* ----- Animated background (aurora + particles) ----- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; will-change: transform; }
.aurora-1 { width: 46vw; height: 46vw; top: -8vw; left: -8vw; background: radial-gradient(circle, #6366f1, transparent 70%); animation: auroraA 19s ease-in-out infinite; }
.aurora-2 { width: 42vw; height: 42vw; bottom: -10vw; right: -6vw; background: radial-gradient(circle, #a855f7, transparent 70%); animation: auroraB 23s ease-in-out infinite; }
.aurora-3 { width: 34vw; height: 34vw; top: 38%; left: 46%; background: radial-gradient(circle, #22d3ee, transparent 70%); opacity: 0.30; animation: auroraC 27s ease-in-out infinite; }
@keyframes auroraA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vw) scale(1.18); } }
@keyframes auroraB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw,-4vw) scale(1.22); } }
@keyframes auroraC { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-44%,-58%) scale(1.12); } }
.particle { position: absolute; bottom: -12px; border-radius: 50%; background: radial-gradient(circle, #a3a6ff, rgba(163,166,255,0) 70%); animation-name: particleRise; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes particleRise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 0.5; } 100% { transform: translateY(-105vh); opacity: 0; } }

/* ----- Logo: float + glow + conic ring ----- */
.logo-img { animation: logoFloat 5s ease-in-out infinite, logoGlow 4s ease-in-out infinite; }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes logoGlow { 0%,100% { filter: drop-shadow(0 0 5px rgba(99,102,241,0.5)); } 50% { filter: drop-shadow(0 0 15px rgba(168,85,247,0.85)); } }
.logo-ring::before {
  content: ""; position: absolute; inset: -6px; border-radius: 9999px; z-index: 0;
  background: conic-gradient(from 0deg, transparent, #6366f1, #a855f7, #22d3ee, transparent 75%);
  filter: blur(6px); opacity: 0.7; animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ----- Shimmer sweep on buttons ----- */
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%); transform: translateX(-130%); animation: btnShimmer 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes btnShimmer { 0% { transform: translateX(-130%); } 55%,100% { transform: translateX(130%); } }

/* ----- Feature icon breathing glow + float ----- */
.icon-breath { animation: iconBreath 4.5s ease-in-out infinite; }
@keyframes iconBreath { 0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); transform: translateY(0); } 50% { box-shadow: 0 0 24px 2px rgba(99,102,241,0.4); transform: translateY(-3px); } }

/* ----- Floating / pulsing decor ----- */
.float-card { animation: floatCard 7s ease-in-out infinite; }
@keyframes floatCard { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-0.4deg); } }
.pulse-blob { animation: pulseBlob 6s ease-in-out infinite; }
@keyframes pulseBlob { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.25); } }
.progress-loop { animation: progressLoop 4s ease-in-out infinite; }
@keyframes progressLoop { 0% { width: 8%; } 70% { width: 100%; } 100% { width: 8%; } }

/* ----- Trust strip marquee ----- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3.5rem; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ----- Step connector flowing pulse + ring ping ----- */
.connector { background: linear-gradient(90deg, transparent, #6366f1, #22d3ee, #a855f7, transparent); background-size: 200% 100%; animation: connectorFlow 4s linear infinite; }
@keyframes connectorFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.step-node { position: relative; }
.step-node::after { content: ""; position: absolute; inset: -4px; border-radius: 9999px; border: 1px solid rgba(99,102,241,0.5); animation: stepPing 3s ease-out infinite; }
@keyframes stepPing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

/* ----- Badge pulse ----- */
.badge-pulse { animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.5); } 50% { box-shadow: 0 0 16px 2px rgba(168,85,247,0.85); } }

/* ----- Rotating light beams (CTA / cards) ----- */
.cta-beams { position: relative; overflow: hidden; }
.cta-beams::before { content: ""; position: absolute; top: 50%; left: 50%; width: 180%; height: 180%; transform: translate(-50%,-50%); background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.18) 40deg, transparent 80deg, transparent 180deg, rgba(255,255,255,0.12) 220deg, transparent 260deg); animation: beamSpin 14s linear infinite; pointer-events: none; }
@keyframes beamSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ----- Scroll reveal ----- */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-up.revealed { opacity: 1; transform: none; }

/* ----- Sticky header scroll state ----- */
#siteHeader { transition: box-shadow .3s ease, background .3s ease, border-color .3s ease; }
#siteHeader.scrolled { box-shadow: 0 10px 34px rgba(0,0,0,0.45); border-color: rgba(99,102,241,0.18); }

/* ----- Mobile menu ----- */
.mobile-menu { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease; }
.mobile-menu.open { max-height: 480px; opacity: 1; }

/* ===========================================================================
   Reusable form / card components (auth, dashboard, subtitles, admin)
   =========================================================================== */
.auth-card { position: relative; isolation: isolate; }
.card-pop { animation: cardPop .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes cardPop { 0% { opacity: 0; transform: translateY(26px) scale(.985); } 100% { opacity: 1; transform: none; } }

/* gentle 3D tilt (driven by rm-theme.js on [data-tilt]) */
[data-tilt] { transform: perspective(900px) rotateX(var(--rm-rx, 0deg)) rotateY(var(--rm-ry, 0deg)); transition: transform .25s ease; transform-style: preserve-3d; }

.rm-field { position: relative; }
.rm-field > .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #a3a6ff; opacity: .6; transition: color .25s, opacity .25s; pointer-events: none; font-size: 20px; }
.rm-field:focus-within > .field-icon { opacity: 1; color: #7de9ff; }
.rm-input {
  width: 100%; background: #140b36; border: 1px solid #4a426b; color: #e9e1ff;
  border-radius: 12px; padding: 14px 14px 14px 44px; font: inherit; font-size: 14px;
  transition: border-color .25s, box-shadow .25s, background .25s; outline: none;
}
.rm-input::placeholder { color: #aea5d4; opacity: .7; }
.rm-input:focus { border-color: #a3a6ff; box-shadow: 0 0 0 3px rgba(163,166,255,.18), 0 0 18px rgba(99,102,241,.22); background: #1b1140; }

.error-msg { color: #ff4f7b; text-align: center; font-size: 13px; margin-bottom: 14px; display: none; padding: 10px; background: rgba(255,79,123,0.06); border-radius: 10px; border: 1px solid rgba(255,79,123,0.14); }
.success-msg { color: #00e676; text-align: center; font-size: 13px; margin-bottom: 14px; display: none; padding: 10px; background: rgba(0,230,118,0.06); border-radius: 10px; border: 1px solid rgba(0,230,118,0.14); }

/* ----- Responsive type helper ----- */
@media (max-width: 360px) { .hero-h1 { font-size: 2.15rem; line-height: 1.1; } }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .gradient-text { background-position: 0 50% !important; }
  [data-tilt] { transform: none !important; }
}
