/* ════════════════════════════════════════════════════════════════════
   /reviews — 다크 글래스모피즘 후기 페이지
   세련된 + 캐주얼 + 화려한 마이크로 애니메이션
   Linear/Vercel/Notion-style premium aesthetic
   ════════════════════════════════════════════════════════════════════ */

:root {
  --rv-bg-1: #0a0a14;
  --rv-bg-2: #1c1530;
  --rv-fg: #ffffff;
  --rv-muted: rgba(255, 255, 255, 0.62);
  --rv-subtle: rgba(255, 255, 255, 0.42);
  --rv-line: rgba(255, 255, 255, 0.08);
  --rv-glass: rgba(255, 255, 255, 0.04);
  --rv-glass-hover: rgba(255, 255, 255, 0.08);
  --rv-pink: #ec4899;
  --rv-purple: #a855f7;
  --rv-cyan: #06b6d4;
  --rv-grad: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
  --rv-grad-soft: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(168,85,247,0.18), rgba(6,182,212,0.18));
}

* { box-sizing: border-box; }

.reviews-body {
  font-family: 'Pretendard', system-ui, sans-serif;
  background:
    radial-gradient(at 20% 30%, rgba(236, 72, 153, 0.18) 0%, transparent 40%),
    radial-gradient(at 80% 15%, rgba(168, 85, 247, 0.18) 0%, transparent 38%),
    radial-gradient(at 50% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, var(--rv-bg-1) 0%, var(--rv-bg-2) 100%);
  color: var(--rv-fg);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════════════════════
   배경 atmosphere — 떠다니는 글로우 오브들
   ════════════════════════════════════════════════════════════════════ */
.rv-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: rv-orb-drift 24s ease-in-out infinite;
  will-change: transform;
}
.rv-orb-1 {
  top: 8%; left: -8%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
}
.rv-orb-2 {
  top: 40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  animation-delay: -8s;
  animation-duration: 28s;
}
.rv-orb-3 {
  bottom: -5%; left: 30%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-delay: -15s;
  animation-duration: 32s;
}
@keyframes rv-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(60px, -40px) scale(1.08); }
  50%      { transform: translate(-40px, 50px) scale(0.95); }
  75%      { transform: translate(40px, 30px) scale(1.04); }
}

/* 옅은 noise 그레인 — 깊이감 추가 */
.rv-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* 스크롤 진행 바 — 최상단 그라데이션 라인 */
.rv-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rv-grad);
  z-index: 9999;
  transform-origin: 0 0;
  transform: scaleX(0);
  will-change: transform;
}

.rv-main {
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════════════════════════════
   헤더 — 다크 글래스 변형 (.reviews-body 하위)
   ════════════════════════════════════════════════════════════════════ */
.reviews-body .site-header {
  background: rgba(10, 10, 20, 0.65) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rv-line) !important;
  z-index: 100;
}
.reviews-body .brand-text .ko { color: #fff !important; }
.reviews-body .site-nav a {
  color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
}
.reviews-body .site-nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.reviews-body .site-nav a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.reviews-body .site-nav a.cta {
  background: var(--rv-grad) !important;
  color: #fff !important;
  background-size: 200% 200% !important;
  animation: rv-grad-shift 6s ease infinite;
}
@keyframes rv-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* 푸터/quick-cta 다크 변형 */
.reviews-body .site-footer {
  background: rgba(10, 10, 20, 0.6);
  border-top: 1px solid var(--rv-line);
  color: var(--rv-muted);
  position: relative;
  z-index: 2;
}
.reviews-body .footer-brand h3 { color: #fff; }
.reviews-body .footer-brand p,
.reviews-body .footer-biz,
.reviews-body .footer-biz b,
.reviews-body .footer-biz .sep,
.reviews-body .footer-biz span,
.reviews-body .footer-copy { color: var(--rv-muted) !important; }
.reviews-body .footer-biz b { color: #fff !important; }
.reviews-body .qa-btn { box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.reviews-body .qa-primary {
  background: var(--rv-grad) !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  animation: rv-grad-shift 6s ease infinite;
  border: none !important;
}
.reviews-body .qa-outline {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(8px);
}

/* ════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════ */
.rv-hero {
  position: relative;
  padding: clamp(60px, 11vw, 100px) 0 clamp(36px, 7vw, 56px);
  text-align: center;
}

.rv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
  animation: rv-fadeup 0.7s ease-out both;
}
.rv-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--rv-pink);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--rv-pink);
  animation: rv-pulse 1.6s ease-in-out infinite;
}
@keyframes rv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.rv-hero-title {
  font-size: clamp(36px, 9vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  color: #fff;
  word-break: keep-all;
}
.rv-hero-title-line {
  display: block;
  animation: rv-fadeup 0.8s ease-out both;
}
.rv-hero-title-line:nth-child(2) { animation-delay: 0.12s; }
.rv-hero-title-grad {
  background: linear-gradient(135deg, #fff 0%, #ec4899 30%, #a855f7 60%, #06b6d4 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: rv-fadeup 0.8s ease-out 0.12s both,
             rv-grad-shift 8s ease-in-out 1s infinite;
}

@keyframes rv-fadeup {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rv-hero-sub {
  font-size: clamp(14px, 3.6vw, 17px);
  color: var(--rv-muted);
  margin: 0 0 28px;
  line-height: 1.65;
  font-weight: 500;
  animation: rv-fadeup 0.8s ease-out 0.24s both;
}

.rv-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: rv-fadeup 0.8s ease-out 0.36s both;
}
.rv-hero-stats[hidden] { display: none; }
.rv-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.rv-stat::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--rv-grad-soft);
  opacity: 0.4;
  pointer-events: none;
}
.rv-stat > * { position: relative; z-index: 1; }
.rv-stat-num {
  font-size: 18px;
  font-weight: 900;
  background: var(--rv-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.rv-stat-lbl {
  font-size: 12px;
  color: var(--rv-muted);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   카드 매소너리
   ════════════════════════════════════════════════════════════════════ */
.rv-grid-section {
  padding: clamp(8px, 3vw, 20px) 0 clamp(40px, 8vw, 72px);
}
.rv-masonry {
  column-count: 1;
  column-gap: 18px;
}
@media (min-width: 640px) {
  .rv-masonry { column-count: 2; column-gap: 20px; }
}
@media (min-width: 1024px) {
  .rv-masonry { column-count: 3; column-gap: 24px; }
}

/* ─── 카드 (glassmorphism) ─── */
.rv-card {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: var(--rv-glass);
  border: 1px solid var(--rv-line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  -webkit-tap-highlight-color: transparent;
}
.rv-card.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .rv-masonry { column-gap: 24px; }
  .rv-card { margin-bottom: 24px; }
}

/* 카드 그라데이션 글로우 (hover 시 강조) */
.rv-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    var(--c, var(--rv-pink)),
    transparent 50%,
    var(--c2, var(--rv-purple)));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.rv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%),
    var(--c-glow, rgba(236, 72, 153, 0.15)) 0%,
    transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.rv-card:hover {
  transform: translateY(-6px);
  background: var(--rv-glass-hover);
  border-color: transparent;
}
.rv-card:hover::before,
.rv-card:hover::after { opacity: 1; }

/* 카드 내용 — z-index 보장 */
.rv-card-quote {
  font-family: Georgia, 'Times New Roman', serif;
  position: absolute;
  top: -6px; right: 14px;
  font-size: 88px;
  line-height: 1;
  color: var(--c, var(--rv-pink));
  opacity: 0.22;
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
}

.rv-card-title {
  position: relative;
  z-index: 2;
  font-size: clamp(17px, 4.4vw, 20px);
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  margin: 0 36px 14px 0;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.rv-card-content {
  position: relative;
  z-index: 2;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  word-break: keep-all;
  white-space: pre-wrap;
}
.rv-card-foot {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rv-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.rv-card-nick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.rv-card-nick-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c, var(--rv-pink)), var(--c2, var(--rv-purple)));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--c-glow, rgba(236, 72, 153, 0.3));
}
.rv-card-blog {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.rv-card-blog:hover {
  transform: translateY(-2px);
  background: var(--c, var(--rv-pink));
  border-color: var(--c, var(--rv-pink));
  color: #fff;
}
.rv-card-blog .ico { font-size: 12px; }

/* ─── 카드 색상 로테이션 (5색, 그라데이션 페어) ─── */
.rv-card[data-color="0"] { --c: #ec4899; --c2: #f97316; --c-glow: rgba(236,72,153,0.32); }
.rv-card[data-color="1"] { --c: #a855f7; --c2: #ec4899; --c-glow: rgba(168,85,247,0.32); }
.rv-card[data-color="2"] { --c: #06b6d4; --c2: #a855f7; --c-glow: rgba(6,182,212,0.32); }
.rv-card[data-color="3"] { --c: #10b981; --c2: #06b6d4; --c-glow: rgba(16,185,129,0.32); }
.rv-card[data-color="4"] { --c: #f59e0b; --c2: #ec4899; --c-glow: rgba(245,158,11,0.32); }

/* ─── 스켈레톤 ─── */
.rv-skel-card {
  break-inside: avoid;
  margin-bottom: 18px;
  height: var(--h, 200px);
  border-radius: 22px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.08) 50%,
      rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  border: 1px solid var(--rv-line);
  animation: rv-shimmer 1.6s linear infinite;
}
@keyframes rv-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty ─── */
.rv-empty {
  text-align: center;
  padding: 100px 28px;
  background: var(--rv-glass);
  border: 1px dashed var(--rv-line);
  border-radius: 28px;
  color: var(--rv-muted);
  max-width: 480px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.rv-empty-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  display: inline-block;
  animation: rv-pulse-emoji 2.4s ease-in-out infinite;
}
@keyframes rv-pulse-emoji {
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.1) rotate(-6deg); }
}
.rv-empty h2 {
  font-size: 22px; font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}
.rv-empty p { font-size: 14px; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════════════════════════ */
.rv-cta-section {
  position: relative;
  padding: clamp(64px, 11vw, 110px) 0 clamp(80px, 12vw, 140px);
  text-align: center;
}
.rv-cta-title {
  font-size: clamp(26px, 6.5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 16px;
  word-break: keep-all;
}
.rv-cta-title span { display: block; }
.rv-cta-title-grad {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: rv-grad-shift 7s ease-in-out infinite;
}
.rv-cta-sub {
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--rv-muted);
  margin: 0 0 32px;
  word-break: keep-all;
}
.rv-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--rv-grad);
  background-size: 200% 200%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 12px 32px rgba(236, 72, 153, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: rv-grad-shift 5s ease infinite;
  min-height: 52px;
}
/* shine sweep on hover */
.rv-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent);
  transition: left 0.6s ease;
}
.rv-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 44px rgba(236, 72, 153, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.rv-cta-btn:hover::after { left: 100%; }
.rv-cta-btn:active { transform: translateY(0) scale(0.98); }
.rv-cta-arrow {
  transition: transform 0.22s;
  font-size: 18px;
}
.rv-cta-btn:hover .rv-cta-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════════
   UTIL
   ════════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rv-orb, .rv-empty-emoji, .rv-eyebrow-dot { animation: none !important; }
  .rv-card { opacity: 1 !important; transform: none !important; }
  .rv-hero-title-line, .rv-hero-sub, .rv-hero-stats, .rv-eyebrow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .rv-skel-card { animation: none; }
}
