/* ============================================
   RewardHub - Japanese Earning Platform
   3D Scroll Animations + Full Media Queries
   ============================================ */

:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #5541d6;
  --accent: #00cec9;
  --accent-light: #55efc4;
  --gold: #fdcb6e;
  --gold-dark: #f0b429;
  --dark: #0a0a1a;
  --dark-light: #12122a;
  --dark-mid: #1a1a3e;
  --surface: #ffffff;
  --surface-dim: #f8f9fc;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --gradient-2: linear-gradient(135deg, #00cec9, #55efc4);
  --gradient-3: linear-gradient(135deg, #6c5ce7, #00cec9);
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', -apple-system, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark);
}

body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

::selection { background: var(--primary); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

a { text-decoration: none; color: inherit; cursor: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { display: flex; flex-direction: column; align-items: center; }

.loader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(108, 92, 231, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ringSpin 1s linear infinite;
}

.loader-ring-2 {
  position: absolute;
  width: 44px;
  height: 44px;
  border-top-color: var(--accent);
  animation-direction: reverse;
  animation-duration: 0.8s;
}

@keyframes ringSpin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-top: 24px;
  letter-spacing: -0.02em;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Cursor --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.4s;
}

body:hover .cursor-glow { opacity: 1; }

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), background 0.3s;
  will-change: transform;
}

.cursor-dot.hover {
  width: 44px;
  height: 44px;
  background: rgba(108, 92, 231, 0.15);
  border: 1.5px solid var(--primary);
}

/* --- Progress --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-3);
  z-index: 10001;
  width: 0%;
  will-change: width;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.4s var(--ease-spring);
}

.nav-logo:hover { transform: scale(1.03); }

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.4s var(--ease-out-expo);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
  padding: 10px 24px;
  background: var(--gradient-3);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(0, 206, 201, 0.1) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 60%, var(--dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 100px;
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 36px;
  backdrop-filter: blur(12px);
  background: rgba(108, 92, 231, 0.06);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.title-line { display: block; }

.title-accent {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-jp);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-lg { padding: 18px 40px; font-size: 0.95rem; }

.btn-primary {
  background: var(--gradient-3);
  color: var(--white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity 0.5s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(108, 92, 231, 0.4); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
}

.stat { text-align: center; }
.stat-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }

.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  transition: opacity 0.5s;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-dot {
  width: 3px;
  height: 7px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 7px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

.scroll-indicator span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

/* --- Section Shared --- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.75;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-desc { margin: 0 auto; }

/* --- Scroll Animations --- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.anim-fade-up.visible { opacity: 1; transform: translateY(0); }

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

.scroll-reveal-up {
  opacity: 0;
  transform: translateY(80px) scale(0.96);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.scroll-reveal-up.visible { opacity: 1; transform: translateY(0) scale(1); }

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.scroll-reveal-left.visible { opacity: 1; transform: translateX(0); }

.scroll-reveal-3d {
  opacity: 0;
  transform: perspective(1000px) translateY(60px) rotateX(10deg) scale(0.95);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.scroll-reveal-3d.visible {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0) scale(1);
}

.scroll-3d { transition: transform 0.8s var(--ease-out-expo); }

.scroll-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-spring);
}

.scroll-scale.visible { opacity: 1; transform: scale(1); }

.scroll-parallax { will-change: transform; }

/* --- Floating Section --- */
.floating-section {
  padding: 120px 0;
  overflow: hidden;
}

.floating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.floating-visual {
  position: relative;
  height: 480px;
  perspective: 1200px;
}

.float-card {
  position: absolute;
  transition: transform 0.6s var(--ease-out-expo);
}

.float-card-1 { top: 0; left: 10%; z-index: 3; }
.float-card-2 { top: 140px; right: 5%; z-index: 2; }
.float-card-3 { bottom: 20px; left: 15%; z-index: 1; }

.float-card-inner {
  padding: 28px;
  border-radius: var(--radius);
  min-width: 200px;
  text-align: center;
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-card-icon { font-size: 2.5rem; margin-bottom: 12px; }

.float-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.float-pts {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.float-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-3);
  filter: blur(80px);
  opacity: 0.2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -60%) scale(1.15); }
}

/* --- Tasks --- */
.tasks {
  padding: 120px 0;
  background: var(--surface-dim);
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.task-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.task-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.15);
}

.task-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

.task-badge.hot { background: rgba(255, 107, 107, 0.1); color: #ff6b6b; }
.task-badge.new { background: rgba(0, 206, 201, 0.1); color: var(--accent); }

.task-icon { font-size: 2.5rem; margin-bottom: 16px; }

.task-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.task-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.task-pts {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.task-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.task-bar {
  height: 6px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.task-bar-fill {
  height: 100%;
  background: var(--gradient-3);
  border-radius: 3px;
  transition: width 1s var(--ease-out-expo);
}

.task-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Parallax Divider --- */
.parallax-divider {
  position: relative;
  height: 50vh;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-img-wrap {
  position: absolute;
  inset: -80px;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(1.4) hue-rotate(20deg);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(10, 10, 26, 0.5), rgba(10, 10, 26, 0.7));
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
}

.divider-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.parallax-content blockquote {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.quote-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

/* --- Rewards --- */
.rewards {
  padding: 120px 0;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reward-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.reward-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(108, 92, 231, 0.1);
  border-color: rgba(108, 92, 231, 0.15);
}

.reward-icon { font-size: 3rem; margin-bottom: 16px; }

.reward-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.reward-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.reward-min {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: 100px;
}

/* --- Ranking --- */
.ranking {
  padding: 120px 0;
  background: var(--dark);
}

.ranking .section-label { color: var(--accent); }
.ranking .section-title { color: var(--white); }

.ranking-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s var(--ease-out-expo);
}

.rank-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
}

.rank-1 { border-color: rgba(253, 203, 110, 0.2); }
.rank-2 { border-color: rgba(192, 192, 192, 0.15); }
.rank-3 { border-color: rgba(205, 127, 50, 0.15); }

.rank-pos { font-size: 1.5rem; }

.rank-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.rank-info { flex: 1; }

.rank-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.rank-info p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.rank-pts {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.rank-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.rank-card { position: relative; overflow: hidden; }

.rank-bar-fill {
  height: 100%;
  background: var(--gradient-3);
  border-radius: 3px;
}

/* --- Testimony Section --- */
.testimony {
  padding: 120px 0;
  background: var(--surface);
}

.testimony-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimony-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.5s var(--ease-out-expo);
}

.testimony-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(108, 92, 231, 0.1);
}

.testimony-video {
  position: relative;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.video-placeholder video.playing {
  display: block;
}

.video-placeholder .video-play-btn,
.video-placeholder .video-overlay {
  transition: all 0.4s var(--ease-out-expo);
}

.video-placeholder video.playing ~ .video-play-btn,
.video-placeholder video.playing ~ .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
  animation: videoPulse 2s ease-in-out infinite;
}

@keyframes videoPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(108, 92, 231, 0.6), 0 0 0 15px rgba(108, 92, 231, 0.1); }
}

.video-placeholder:hover .video-play-btn {
  transform: scale(1.12);
  background: rgba(108, 92, 231, 1);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.6);
}

.video-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
}

.video-duration {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
}

.testimony-info {
  padding: 28px;
}

.testimony-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimony-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.testimony-user h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.testimony-user p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimony-earn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 16px;
  background: rgba(108, 92, 231, 0.05);
  border-radius: 10px;
}

.earn-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.earn-amount {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.testimony-text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.testimony-stars {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .testimony-grid { grid-template-columns: 1fr; }
  .video-placeholder { height: 220px; }
}

/* --- How It Works --- */
.how {
  padding: 120px 0;
  background: var(--surface-dim);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  text-align: center;
  padding: 40px 32px;
  max-width: 280px;
  position: relative;
}

.step-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon { font-size: 3rem; margin-bottom: 20px; }

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--primary);
  opacity: 0.3;
}

/* --- FAQ --- */
.faq {
  padding: 120px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-arrow {
  transition: transform 0.3s var(--ease-out-expo);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-a p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* --- Signup --- */
.signup {
  position: relative;
  padding: 120px 0;
  background: var(--dark);
  overflow: hidden;
}

#signupCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.signup-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.signup-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.signup-content > p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
}

.signup-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 18px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.92rem;
  font-family: var(--font-jp);
  outline: none;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}

.signup-form input::placeholder { color: rgba(255, 255, 255, 0.35); }
.signup-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15); }

.signup-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-top { padding: 72px 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--white);
}

.footer-links a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 0;
  transition: all 0.3s var(--ease-out-expo);
}

.footer-links a:hover { color: var(--primary-light); transform: translateX(4px); }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.footer-bottom p { font-size: 0.75rem; color: rgba(255, 255, 255, 0.25); }

/* ============================================
   MEDIA QUERIES - Mobile & Tablet
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .floating-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .floating-visual {
    height: 400px;
    order: -1;
  }

  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rewards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
    padding: 10px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-stats { gap: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }
  .btn-nav { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 0;
    transition: right 0.5s var(--ease-out-expo);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .tasks-grid { grid-template-columns: 1fr; }

  .rewards-grid { grid-template-columns: 1fr; }

  .rank-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .floating-visual { height: 350px; }

  .float-card-1 { left: 5%; }
  .float-card-2 { right: 0; }
  .float-card-3 { left: 10%; }

  .signup-form {
    flex-direction: column;
    padding: 0 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-title { font-size: 2.4rem; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; justify-content: center; }

  .section-title { font-size: 1.7rem; }

  .hero-badge { font-size: 0.72rem; padding: 8px 16px; }

  .task-card { padding: 24px; }

  .floating-visual { height: 300px; }

  .float-card-inner { padding: 20px; min-width: 160px; }

  .float-card-icon { font-size: 2rem; }

  .float-pts { font-size: 1.1rem; }

  .steps-grid { padding: 0 16px; }

  .step-card { padding: 32px 20px; }

  .step-connector { display: none; }

  .rank-card { padding: 16px 20px; }

  .parallax-divider { min-height: 300px; }

  .signup-content h2 { font-size: 1.6rem; }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 0; }

  .hero-title { font-size: 2rem; }

  .scroll-indicator { display: none; }
}

/* High DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .task-bar { height: 4px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .anim-fade-up, .scroll-reveal, .scroll-reveal-up,
  .scroll-reveal-left, .scroll-reveal-3d, .scroll-scale {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   FULL-PAGE ANIMATIONS
   ============================================ */

/* --- Continuous Ambient Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.15); }
  50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.3); }
}

@keyframes glowAccent {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 206, 201, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 206, 201, 0.3); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(108, 92, 231, 0.15); }
  50% { border-color: rgba(108, 92, 231, 0.4); }
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 50% { border-color: var(--primary); }
  51%, 100% { border-color: transparent; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-100px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flipIn {
  from { opacity: 0; transform: perspective(600px) rotateY(90deg); }
  to { opacity: 1; transform: perspective(600px) rotateY(0deg); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.08); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes elastic {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes particleBurst {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(180deg); opacity: 0; }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
  75% { border-radius: 60% 30% 50% 40% / 60% 50% 30% 70%; }
}

/* --- Logo Icon Animations --- */
.logo-icon {
  transition: all 0.5s var(--ease-spring);
  animation: glow 3s ease-in-out infinite;
}

.nav-logo:hover .logo-icon {
  transform: rotate(360deg) scale(1.15);
  animation: none;
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.footer-logo .logo-icon {
  animation: glow 4s ease-in-out infinite;
}

.footer-logo:hover .logo-icon {
  transform: rotate(-360deg) scale(1.15);
  animation: none;
}

/* --- Nav Link Animations --- */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(108, 92, 231, 0.06);
  transition: height 0.3s var(--ease-out-expo);
  border-radius: 4px 4px 0 0;
}

.nav-link:hover::before { height: calc(100% + 8px); }

/* --- Button Animations --- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.btn:active::after {
  width: 400px;
  height: 400px;
}

.btn-primary {
  animation: glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  animation: none;
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.5);
}

.btn-primary .btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2.5s infinite;
}

.btn-ghost:hover {
  animation: borderGlow 2s ease-in-out infinite;
}

.btn-nav {
  position: relative;
  overflow: hidden;
}

.btn-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn-nav:hover::before { left: 100%; }

/* --- Hero Badge Animation --- */
.hero-badge {
  animation: borderGlow 3s ease-in-out infinite, floatSlow 6s ease-in-out infinite;
}

/* --- Hero Title Letter Animation --- */
.hero-title .title-line {
  overflow: hidden;
}

.hero-title .title-line > * {
  display: inline-block;
  animation: slideInUp 0.8s var(--ease-out-expo) forwards;
}

/* --- Section Label Animations --- */
.section-label {
  position: relative;
  overflow: hidden;
}

.section-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* --- Text Gradient Animation --- */
.text-gradient {
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
}

/* --- Section Title Animations --- */
.section-title {
  transition: all 0.5s var(--ease-out-expo);
}

.section-title:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 20px rgba(108, 92, 231, 0.15);
}

/* --- Floating Card Continuous Animations --- */
.float-card-1 { animation: float 6s ease-in-out infinite; }
.float-card-2 { animation: float 7s ease-in-out 1s infinite; }
.float-card-3 { animation: float 5s ease-in-out 2s infinite; }

.float-card-inner {
  transition: all 0.5s var(--ease-spring);
}

.float-card:hover .float-card-inner {
  transform: scale(1.08) rotateY(5deg);
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.3);
}

.float-card-icon {
  transition: all 0.5s var(--ease-spring);
  animation: wave 3s ease-in-out infinite;
}

.float-card:hover .float-card-icon {
  transform: scale(1.3) rotate(10deg);
  animation: bounceIn 0.6s var(--ease-spring);
}

.float-pts {
  transition: all 0.4s var(--ease-out-expo);
}

.float-card:hover .float-pts {
  transform: scale(1.15);
  text-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

/* --- Task Card Full Animations --- */
.task-card {
  animation: floatSlow 8s ease-in-out infinite;
}

.task-card:nth-child(2) { animation-delay: 0.5s; }
.task-card:nth-child(3) { animation-delay: 1s; }
.task-card:nth-child(4) { animation-delay: 1.5s; }
.task-card:nth-child(5) { animation-delay: 2s; }
.task-card:nth-child(6) { animation-delay: 2.5s; }

.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.task-card:hover::before { transform: scaleX(1); }

.task-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.task-card:hover::after { opacity: 1; }

.task-icon {
  display: inline-block;
  transition: all 0.5s var(--ease-spring);
}

.task-card:hover .task-icon {
  transform: scale(1.3) rotate(-10deg) translateY(-4px);
  animation: bounceIn 0.5s var(--ease-spring);
}

.task-badge {
  animation: scalePulse 2s ease-in-out infinite;
}

.task-badge.hot {
  animation: glow 2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
}

.task-badge.new {
  animation: glowAccent 2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(0, 206, 201, 0.2);
}

.task-pts {
  transition: all 0.4s var(--ease-out-expo);
}

.task-card:hover .task-pts {
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.task-bar {
  position: relative;
  overflow: hidden;
}

.task-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShimmer 2s infinite;
}

.task-card:hover .task-bar-fill {
  filter: brightness(1.2);
}

.task-bar-label {
  transition: color 0.3s;
}

.task-card:hover .task-bar-label {
  color: var(--primary);
}

/* --- Reward Card Animations --- */
.reward-card {
  animation: floatSlow 7s ease-in-out infinite;
}

.reward-card:nth-child(2) { animation-delay: 0.3s; }
.reward-card:nth-child(3) { animation-delay: 0.6s; }
.reward-card:nth-child(4) { animation-delay: 0.9s; }
.reward-card:nth-child(5) { animation-delay: 1.2s; }
.reward-card:nth-child(6) { animation-delay: 1.5s; }

.reward-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient-3);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

.reward-card:hover::before { opacity: 1; }

.reward-icon {
  display: inline-block;
  transition: all 0.5s var(--ease-spring);
}

.reward-card:hover .reward-icon {
  transform: scale(1.4) rotate(15deg) translateY(-8px);
  animation: bounceIn 0.6s var(--ease-spring);
}

.reward-card:hover h3 {
  color: var(--primary);
}

.reward-min {
  transition: all 0.4s var(--ease-out-expo);
}

.reward-card:hover .reward-min {
  background: var(--gradient-3);
  color: var(--white);
  transform: scale(1.05);
}

/* --- Ranking Card Animations --- */
.rank-card {
  transition: all 0.5s var(--ease-out-expo);
}

.rank-card:hover {
  transform: translateX(12px) scale(1.02);
}

.rank-card:hover .rank-avatar {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.rank-avatar {
  transition: all 0.5s var(--ease-spring);
}

.rank-1 .rank-avatar {
  animation: glow 2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(253, 203, 110, 0.3);
}

.rank-2 .rank-avatar {
  animation: glow 2.5s ease-in-out 0.3s infinite;
}

.rank-3 .rank-avatar {
  animation: glow 3s ease-in-out 0.6s infinite;
}

.rank-pos {
  transition: all 0.4s var(--ease-spring);
}

.rank-card:hover .rank-pos {
  transform: scale(1.2) rotate(-10deg);
}

.rank-pts {
  transition: all 0.4s var(--ease-out-expo);
}

.rank-card:hover .rank-pts {
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(253, 203, 110, 0.4);
}

.rank-bar-fill {
  position: relative;
  overflow: hidden;
}

.rank-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShimmer 2.5s infinite;
}

/* --- Step Card Animations --- */
.step-card {
  transition: all 0.5s var(--ease-out-expo);
}

.step-card:hover {
  transform: translateY(-10px);
}

.step-num {
  transition: all 0.5s var(--ease-out-expo);
}

.step-card:hover .step-num {
  opacity: 0.5;
  transform: scale(1.1);
}

.step-icon {
  display: inline-block;
  transition: all 0.5s var(--ease-spring);
}

.step-card:hover .step-icon {
  transform: scale(1.3) rotate(10deg);
  animation: bounceIn 0.5s var(--ease-spring);
}

.step-connector svg {
  transition: all 0.5s var(--ease-out-expo);
}

.step-connector:hover svg {
  opacity: 1;
  transform: translateX(5px);
}

/* --- FAQ Animations --- */
.faq-item {
  transition: all 0.3s var(--ease-out-expo);
}

.faq-q {
  transition: all 0.3s var(--ease-out-expo);
}

.faq-q:hover {
  color: var(--primary);
  padding-left: 12px;
}

.faq-item.open {
  background: rgba(108, 92, 231, 0.03);
  border-radius: var(--radius-sm);
  padding: 0 16px;
}

.faq-a p {
  animation: slideInUp 0.4s var(--ease-out-expo);
}

/* --- Signup Section Animations --- */
.signup-content h2 {
  animation: floatSlow 6s ease-in-out infinite;
}

.signup-form input {
  transition: all 0.4s var(--ease-out-expo);
}

.signup-form input:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
}

.signup-form .btn {
  animation: glow 3s ease-in-out infinite;
}

.signup-form .btn:hover {
  animation: none;
}

/* --- Divider Icon Animation --- */
.divider-icon {
  display: inline-block;
  animation: float 3s ease-in-out infinite, scalePulse 2s ease-in-out infinite;
}

/* --- Parallax Content Animations --- */
.parallax-content blockquote {
  transition: all 0.5s var(--ease-out-expo);
}

.parallax-content:hover blockquote {
  text-shadow: 0 0 40px rgba(108, 92, 231, 0.3);
}

/* --- Footer Link Animations --- */
.footer-links a {
  position: relative;
  overflow: hidden;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-links a:hover::before { width: 100%; }

.footer-social a {
  animation: floatSlow 5s ease-in-out infinite;
}

.footer-social a:nth-child(2) { animation-delay: 0.5s; }
.footer-social a:nth-child(3) { animation-delay: 1s; }
.footer-social a:nth-child(4) { animation-delay: 1.5s; }

.footer-social a:hover {
  animation: none;
  transform: translateY(-6px) rotate(-10deg) scale(1.15);
}

/* --- Scroll Indicator Animations --- */
.scroll-indicator {
  animation: floatSlow 4s ease-in-out infinite;
}

.scroll-mouse {
  animation: borderGlow 2s ease-in-out infinite;
}

/* --- Stat Animations --- */
.stat {
  transition: all 0.4s var(--ease-out-expo);
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-icon {
  transition: all 0.4s var(--ease-spring);
  animation: float 3s ease-in-out infinite;
}

.stat:hover .stat-icon {
  transform: scale(1.3) rotate(10deg);
}

.stat-num {
  transition: all 0.4s var(--ease-out-expo);
}

.stat:hover .stat-num {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* --- Section Background Animations --- */
.tasks {
  position: relative;
}

.tasks::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.05) 0%, transparent 70%);
  animation: morphBlob 10s ease-in-out infinite;
  pointer-events: none;
}

.rewards {
  position: relative;
}

.rewards::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.05) 0%, transparent 70%);
  animation: morphBlob 12s ease-in-out infinite reverse;
  pointer-events: none;
}

.how {
  position: relative;
}

.how::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.03) 0%, transparent 70%);
  animation: morphBlob 15s ease-in-out infinite;
  pointer-events: none;
}

/* --- Hero Canvas Particles Pulse --- */
#heroCanvas {
  animation: pulse 4s ease-in-out infinite;
}

/* --- Page Section Transition Borders --- */
section + section {
  position: relative;
}

.tasks::after,
.rewards::after,
.floating-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gradient-3);
  border-radius: 1px;
  animation: scalePulse 3s ease-in-out infinite;
}

/* --- Cursor Trail Effect --- */
.cursor-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: ripple 1.5s ease-out infinite;
  pointer-events: none;
}

/* --- Mobile Touch Animations --- */
@media (max-width: 768px) {
  .task-card,
  .reward-card,
  .step-card {
    animation: none;
  }

  .task-card:active,
  .reward-card:active {
    transform: scale(0.97);
    transition: transform 0.1s;
  }

  .btn:active {
    transform: scale(0.95);
  }

  .faq-q:active {
    background: rgba(108, 92, 231, 0.05);
  }

  .footer-social a {
    animation: none;
  }

  .footer-social a:active {
    transform: scale(0.9);
  }

  .stat-icon {
    animation: none;
  }

  .divider-icon {
    animation: scalePulse 2s ease-in-out infinite;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ============================================
   WHATSAPP WIDGET
   ============================================ */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  font-family: var(--font-jp);
}

.wa-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.4s var(--ease-spring);
  position: relative;
  animation: waPulse 2s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgeBounce 1s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.wa-popup {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s var(--ease-out-expo);
}

.wa-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-popup-header {
  background: #075E54;
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-header-text h4 { font-size: 0.95rem; font-weight: 600; }
.wa-header-text p { font-size: 0.72rem; opacity: 0.8; }

.wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: none;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.wa-close:hover { background: rgba(255,255,255,0.15); }

.wa-popup-body {
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
  background: #ECE5DD;
}

.wa-msg {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.wa-msg-bot p {
  background: white;
  padding: 10px 14px;
  border-radius: 0 12px 12px 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  display: inline-block;
}

.wa-msg-bot p + p { margin-top: 4px; }

.wa-time {
  font-size: 0.65rem;
  color: #999;
  margin-top: 4px;
  align-self: flex-end;
}

.wa-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.wa-quick {
  padding: 8px 14px;
  border: 1px solid #25D366;
  background: white;
  color: #25D366;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: none;
  transition: all 0.3s;
  font-family: var(--font-jp);
}

.wa-quick:hover {
  background: #25D366;
  color: white;
}

.wa-popup-footer {
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #eee;
}

.wa-popup-footer input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: var(--font-jp);
  outline: none;
  transition: border-color 0.3s;
}

.wa-popup-footer input:focus { border-color: #25D366; }

.wa-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s;
}

.wa-send:hover { background: #1da851; transform: scale(1.1); }

/* ============================================
   LIVE CHAT WIDGET
   ============================================ */
.lc-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  font-family: var(--font-jp);
}

.lc-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  transition: all 0.4s var(--ease-spring);
  position: relative;
  animation: lcPulse 3s ease-in-out infinite;
}

@keyframes lcPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(108, 92, 231, 0.6), 0 0 0 10px rgba(108, 92, 231, 0.1); }
}

.lc-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(108, 92, 231, 0.6);
}

.lc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgeBounce 1s ease-in-out infinite;
}

.lc-popup {
  position: absolute;
  bottom: 68px;
  left: 0;
  width: 370px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s var(--ease-out-expo);
}

.lc-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lc-popup-header {
  background: linear-gradient(135deg, #6c5ce7, #5541d6);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lc-header-left { display: flex; align-items: center; gap: 12px; }

.lc-avatar {
  position: relative;
  width: 42px;
  height: 42px;
}

.lc-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lc-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #25D366;
  border-radius: 50%;
  border: 2px solid #6c5ce7;
}

.lc-header-text h4 { font-size: 0.92rem; font-weight: 600; }
.lc-header-text p { font-size: 0.7rem; opacity: 0.85; }

.lc-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: none;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.lc-close:hover { background: rgba(255,255,255,0.15); }

.lc-popup-body {
  padding: 16px;
  height: 300px;
  overflow-y: auto;
  background: #f8f9fc;
}

.lc-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.lc-msg-user {
  flex-direction: row-reverse;
}

.lc-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lc-msg-user .lc-msg-avatar {
  background: rgba(0, 206, 201, 0.1);
}

.lc-msg-content {
  max-width: 75%;
}

.lc-msg-content p {
  background: white;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.lc-msg-user .lc-msg-content p {
  background: var(--gradient-3);
  color: white;
  border-radius: 14px 14px 4px 14px;
}

.lc-time {
  font-size: 0.62rem;
  color: #999;
  margin-top: 4px;
  display: block;
}

.lc-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
}

.lc-typing-dots {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.lc-typing-dots span {
  width: 7px;
  height: 7px;
  background: #bbb;
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.lc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.lc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.lc-popup-footer {
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #eee;
}

.lc-popup-footer input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: var(--font-jp);
  outline: none;
  transition: border-color 0.3s;
}

.lc-popup-footer input:focus { border-color: #6c5ce7; }

.lc-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.3s;
}

.lc-send:hover { transform: scale(1.1); box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4); }

/* --- Mobile Adjustments for Widgets --- */
@media (max-width: 768px) {
  .wa-widget { bottom: 16px; right: 16px; }
  .lc-widget { bottom: 16px; left: 16px; }

  .wa-popup {
    width: calc(100vw - 32px);
    right: -8px;
  }

  .lc-popup {
    width: calc(100vw - 32px);
    left: -8px;
  }

  .wa-fab { width: 54px; height: 54px; }
  .lc-fab { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .wa-popup { width: calc(100vw - 24px); right: -12px; }
  .lc-popup { width: calc(100vw - 24px); left: -12px; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0a0a1a;
    --surface-dim: #12122a;
    --text: #f0f0f5;
    --text-light: #a0a0b0;
    --text-muted: #6b6b80;
  }
}
