/*
 * Arrive — Qiao-inspired visual system
 * Animated gradient bg, glass nav/sections/cards, scroll-fade animations
 * Applied site-wide via <link> in every HTML file
 */

/* ─── ANIMATED GRADIENT BACKGROUND ───────────────────────────────────────── */
html {
  background: #ede6ff !important;
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    #ede6ff 0%,
    #d8e8ff 35%,
    #f0dcff 65%,
    #dbeeff 100%);
  background-size: 300% 300%;
  animation: arriveGradient 14s ease infinite;
  pointer-events: none;
}

@keyframes arriveGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── GLASS NAV ───────────────────────────────────────────────────────────── */
nav {
  background: transparent !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 16px rgba(91, 79, 233, 0.07) !important;
}

/* ─── GLASS SECTIONS ──────────────────────────────────────────────────────── */
.sec-alt {
  background: rgba(255, 255, 255, 0.46) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.plan-strip {
  background: rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* ─── WHITE GLASS CARDS ───────────────────────────────────────────────────── */
.pcard,
.cov-card,
.ucard,
.guide-card,
.blog-card,
.feat-card,
.card {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.97) !important;
  box-shadow:
    0 2px 8px rgba(91, 79, 233, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease !important;
}

.pcard:hover,
.cov-card:hover,
.ucard:hover,
.guide-card:hover,
.blog-card:hover,
.feat-card:hover,
.card:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 12px 32px rgba(91, 79, 233, 0.14),
    0 3px 8px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(91, 79, 233, 0.16) !important;
}

/* ─── HERO — floating phone mockups ──────────────────────────────────────── */
.hero-img {
  display: none !important;
}

.hero-text {
  width: 54% !important;
  padding: 148px 48px 172px max(28px, calc((100vw - 1180px) / 2 + 28px)) !important;
}

.hero-visual {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2 + 20px));
  top: 50%;
  transform: translateY(-52%);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.hero-phone {
  width: 214px;
  border-radius: 38px;
  border: 7px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 40px 80px rgba(91, 79, 233, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.12);
  transform: rotate(-3deg) translateY(-12px);
}

.hero-phone-2 {
  width: 186px;
  border-radius: 32px;
  border: 6px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 32px 64px rgba(91, 79, 233, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.10);
  transform: rotate(3deg) translateY(12px);
}

.hero-badge {
  position: absolute;
  right: max(260px, calc((100vw - 1180px) / 2 + 270px));
  bottom: 144px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow:
    0 8px 24px rgba(91, 79, 233, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  animation: badgeFloat 4s ease-in-out infinite;
  white-space: nowrap;
}

.hero-badge-num {
  font-size: 20px;
  font-weight: 800;
  color: #5B4FE9;
  line-height: 1;
  letter-spacing: -0.5px;
}

.hero-badge-txt {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 3px;
  letter-spacing: 0.1px;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ─── QFADE ANIMATION SYSTEM ──────────────────────────────────────────────── */
.qfade {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.qfade.qvis {
  opacity: 1;
  transform: translateY(0);
}

.qslide {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qslide.qvis {
  opacity: 1;
  transform: translateX(0);
}

.qscale {
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qscale.qvis {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.qd1 { transition-delay: 0.06s !important; }
.qd2 { transition-delay: 0.12s !important; }
.qd3 { transition-delay: 0.18s !important; }
.qd4 { transition-delay: 0.24s !important; }
.qd5 { transition-delay: 0.30s !important; }
.qd6 { transition-delay: 0.36s !important; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.82) !important;
}

/* ─── ARTICLE / GUIDE BODIES ──────────────────────────────────────────────── */
.prose,
.article-body,
.guide-body,
.blog-body,
article {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(91, 79, 233, 0.06);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-visual,
  .hero-badge {
    display: none !important;
  }

  .hero-text {
    width: 100% !important;
    padding: 100px 20px 80px !important;
  }
}
