/* ═══════════════════════════════════════════════════════════════════
   www.rtalk.chat — 리뷰쳇 홈페이지 (Phase 327 → 327.1)

   디자인 언어 = 사장님 첨부 스티치 시안 "The Sovereign Ledger":
   · 네이비 그라데이션 히어로 + **인디고 세컨더리**(#4A69BD → #6C7FD8) 액션/막대
     (327.1 — 사장님: "히어로 박스 / 박스 디자인 이 스타일로" — 골드는 로고·
     텍스트 하이라이트만, 박스·버튼은 스티치 인디고 체계로)
   · 토널 레이어링 — 1px 실선 구분 금지, 면 색 차이로만 위계
   · 앰비언트 섀도 + 글래스모피즘(blur 헤더/카드), 대형 번호 워터마크 벤토
   · 폰트 = Pretendard (셀프호스팅 — CSP 외부 호스트 0)

   ⚠ CSP 가 외부 호스트 0개 (nginx.conf) — 웹폰트·CDN 금지.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  /* Pretendard Variable (OFL) — assets/PretendardVariable.woff2 셀프호스팅 */
  font-family: 'Pretendard';
  src: url('/assets/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 스티치 토널 팔레트 */
  --navy: #000B36;
  --navy-2: #081F5E;
  --navy-soft: #2A365C;
  --indigo: #4A69BD;         /* 스티치 secondary */
  --indigo-hi: #6C7FD8;      /* CTA 카드 밝은 인디고 */
  --indigo-soft: #7A99E8;
  --surface: #F8F9FC;
  --surface-low: #F2F3F6;
  --surface-high: #E7E8EB;
  --white: #FFFFFF;
  --ink: #191C1E;
  --ink-soft: #5A5D66;
  /* 브랜드 골드 — 로고·텍스트 하이라이트 전용 */
  --gold: #E8B84B;
  --gold-grad: linear-gradient(120deg, #F5D67A 0%, #E8B84B 40%, #C9971E 100%);
  --navy-grad: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  --indigo-grad: linear-gradient(135deg, var(--indigo-hi) 0%, var(--indigo) 100%);
  --shadow-ambient: 0 12px 32px rgba(0, 11, 54, 0.06);
  --shadow-float: 0 24px 64px rgba(0, 11, 54, 0.14);
  --r-xl: 2rem;
  --wrap: 1152px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── 공통 타이포 ── */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; color: var(--navy); }
.t-accent {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--indigo); margin-bottom: 14px;
}
.eyebrow--glass {
  background: rgba(122, 153, 232, 0.16); color: var(--indigo-soft);
  padding: 7px 16px; border-radius: 999px; backdrop-filter: blur(12px);
}
.sec-head { margin-bottom: 48px; }
.sec-head p { color: var(--ink-soft); font-size: 1.06rem; margin-top: 12px; max-width: 620px; }

/* ── 버튼 (스티치: 인디고 프라이머리) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; border-radius: 14px; cursor: pointer;
  transition: transform .18s, box-shadow .25s, background .25s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--primary {
  background: var(--indigo-grad); color: #fff;
  box-shadow: 0 12px 32px rgba(74, 105, 189, 0.35);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(74, 105, 189, 0.5); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.btn--ghost:hover { background: rgba(255,255,255,0.16); }
.btn--white { background: #fff; color: var(--indigo); padding: 13px 26px; }
.btn--white:hover { background: var(--surface-high); }
.btn--soft { background: var(--surface-low); color: var(--navy); padding: 13px 20px; }

/* ── 고정 글래스 헤더 ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(248, 249, 252, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-ambient);
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand__logo { height: 44px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__link {
  font-weight: 700; font-size: 0.94rem; color: var(--ink-soft);
  transition: color .2s; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.site-nav__link:hover { color: var(--indigo); }

/* 드롭다운 (327.1 — 상단메뉴 그룹 2개) */
.nav-drop { position: relative; }
.nav-caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); display: inline-block;
}
.nav-drop__menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 176px; padding: 10px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(18px);
  border-radius: 16px; box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu,
.nav-drop.open .nav-drop__menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-drop__menu a {
  padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 0.92rem; color: var(--ink);
}
.nav-drop__menu a:hover { background: var(--surface-low); color: var(--indigo); }

/* 햄버거 (327.1 — 모바일은 하단 내비 대신 상단 햄버거) */
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--navy); transition: transform .25s, opacity .25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  padding: 8px 20px 22px;
  background: rgba(248,249,252,0.97); backdrop-filter: blur(20px);
  box-shadow: 0 24px 40px rgba(0,11,54,0.12);
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.mobile-menu__group { padding: 12px 0; }
.mobile-menu__group + .mobile-menu__group { box-shadow: inset 0 1px 0 rgba(0,11,54,0.06); }
.mobile-menu__label {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--indigo);
  margin-bottom: 4px;
}
.mobile-menu__group > a { display: block; padding: 10px 4px; font-weight: 700; color: var(--ink); }
.mobile-menu__group--row { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-menu__group--row .btn { flex: 1; min-width: 130px; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

/* ── 히어로 — 4슬라이드 캐러셀 ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-grad);
  padding: 118px 0 34px;
  color: #fff;
}
/* 건물 유리창 느낌의 세로 광 스트릭 (스티치 히어로 배경 톤) */
.hero__streaks {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 0 55%, rgba(122,153,232,0.06) 55% 57%, transparent 57% 66%,
      rgba(122,153,232,0.10) 66% 67.5%, transparent 67.5% 78%, rgba(255,255,255,0.05) 78% 79%,
      transparent 79% 90%, rgba(122,153,232,0.08) 90% 91.5%, transparent 91.5%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__glow--1 { width: 460px; height: 460px; background: rgba(108, 127, 216, 0.30); top: -120px; right: -80px; }
.hero__glow--2 { width: 380px; height: 380px; background: rgba(122, 153, 232, 0.14); bottom: -140px; left: -100px; }

.hero__slider { position: relative; z-index: 2; }
.hero__track {
  display: flex; transition: transform .65s cubic-bezier(.4,.05,.2,1);
  will-change: transform;
}
.hero__slide { flex: 0 0 100%; min-width: 100%; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  min-height: 480px; padding-top: 26px; padding-bottom: 26px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; margin: 18px 0 22px; }
/* 327.2 — 슬라이드 1 공식 라인 (사장님: "Keyword×Review×Reward") */
.hero__formula {
  font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 800; letter-spacing: 0.06em;
  color: var(--indigo-soft); margin: -8px 0 16px;
}
.hero__lead { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 540px; }
.hero__lead b { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* 캐러셀 컨트롤 */
.hero__nav {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 10px 0 26px;
}
.hero__arrow {
  width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 1.5rem; line-height: 1;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); cursor: pointer;
  transition: background .2s;
}
.hero__arrow:hover { background: rgba(255,255,255,0.22); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 9px; height: 9px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.3); transition: width .3s, background .3s;
}
.hero__dot.active { width: 30px; background: var(--indigo-soft); }

/* 히어로 글래스 데이터 카드 (스티치 — 인디고 막대 + 흰 톱바) */
.hero__visual { display: flex; justify-content: center; }
.glass-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255,255,255,0.12);
  transform: rotate(2deg);
  transition: transform .5s;
}
.glass-card:hover { transform: rotate(0deg) translateY(-4px); }
.glass-card--center { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 28px; }
.glass-card__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.86rem; color: rgba(255,255,255,0.65); margin-bottom: 20px; font-weight: 600;
}
.glass-card__caption { font-size: 0.84rem; color: rgba(255,255,255,0.55); }
.pill--live {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(122,153,232,0.2); color: var(--indigo-soft);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px;
}
.pill--live .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-soft);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.rankbars {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; height: 170px; padding-bottom: 18px;
}
.rankbar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.rankbar i {
  display: block; width: 100%; height: 0; border-radius: 10px;
  background: var(--indigo);
  transition: height 1.1s cubic-bezier(.22,1,.36,1);
}
.rankbar:nth-child(2) i { background: rgba(122,153,232,0.75); }
.rankbar:nth-child(3) i { background: rgba(122,153,232,0.55); }
.rankbar--top i {
  background: #fff; box-shadow: 0 8px 30px rgba(255,255,255,0.35);
}
.in-view .rankbar i { height: var(--h); }
.glass-card__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding-top: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.glass-card__label { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.glass-card__value { font-size: 1.9rem; font-weight: 800; color: #fff; }

/* 키워드 조합 칩 */
.kw-combine { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 0.8rem; }
.kw-combine--big { font-size: 1rem; }
.chip {
  padding: 5px 10px; border-radius: 8px; font-weight: 700;
  background: rgba(255,255,255,0.12); color: #fff;
  animation: chipIn .6s both;
}
.chip--b { animation-delay: .35s; }
.chip--hit {
  background: var(--indigo-grad); color: #fff;
  animation-delay: .9s; box-shadow: 0 6px 18px rgba(108,127,216,0.4);
}
.chip-plus, .chip-eq { color: rgba(255,255,255,0.5); font-weight: 800; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* ── 스탯 리본 ── */
.stats { padding: 88px 0; background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { background: var(--surface-low); border-radius: 24px; padding: 38px 34px; }
.stat h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--navy); }
.stat p { color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.stat__bar {
  margin-top: 26px; height: 5px; border-radius: 999px; overflow: hidden;
  background: var(--surface-high);
}
.stat__bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--indigo);
  transition: width 1.2s cubic-bezier(.22,1,.36,1) .2s;
}
.in-view .stat__bar i { width: var(--w); }

/* ── 플레이스무료분석 벤토 (스티치: 01 화이트 / 02 네이비 / 03 그레이 / CTA 인디고) ── */
.free { padding: 96px 0; background: var(--surface-low); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.bento__card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border-radius: var(--r-xl); padding: 34px;
  box-shadow: var(--shadow-ambient); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  grid-column: span 4;
}
.bento__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.bento__card--wide { grid-column: span 8; flex-direction: row; align-items: center; gap: 28px; }
.bento__card--wide .bento__body { flex: 1; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.bento__card--gray { background: var(--surface-high); }
.bento__card h3 { font-size: 1.28rem; font-weight: 800; color: var(--navy); }
.bento__card p { color: var(--ink-soft); font-size: 0.97rem; }
/* ⚠ 다크 카드 오버라이드는 base(h3/p) **뒤에** 둔다 — `.bento__card--navy h3` 와
   `.bento__card h3` 는 특이성이 같아(클래스 1개 + 요소) 순서로 승부가 난다.
   앞에 두면 네이비 배경에 네이비 글자가 찍힌다 (327.1 실측으로 잡은 함정). */
.bento__card--navy { background: var(--navy-soft); color: #fff; }
.bento__card--navy h3 { color: #fff; }
.bento__card--navy p { color: rgba(255,255,255,0.72); }
.bento__card--navy p b { color: #fff; }
.bento__card--cta {
  background: var(--indigo-grad); color: #fff; grid-column: span 8;
  align-items: flex-start; justify-content: center; gap: 14px;
}
.bento__card--cta h3 { font-size: 1.6rem; color: #fff; }
.bento__card--cta p { color: rgba(255,255,255,0.78); font-weight: 600; }
.bento__num {
  font-size: 3.6rem; font-weight: 900; line-height: 1;
  color: rgba(0, 11, 54, 0.08);
}
.bento__num--light { color: rgba(255,255,255,0.16); }
.bento__cta { margin-top: auto; font-weight: 800; color: var(--indigo); }
.bento__cta--light { color: var(--indigo-soft); }
/* 01 카드 우하단 데코 (스티치의 흐린 차트 이미지 대응 — CSS 막대 패턴) */
.bento__deco {
  position: absolute; right: -10px; bottom: -14px; width: 220px; height: 150px;
  opacity: 0.10; pointer-events: none;
  background:
    linear-gradient(0deg, var(--indigo) 0 46%, transparent 46%) 0 100% / 24px 100% no-repeat,
    linear-gradient(0deg, var(--indigo) 0 74%, transparent 74%) 34px 100% / 24px 100% no-repeat,
    linear-gradient(0deg, var(--indigo) 0 58%, transparent 58%) 68px 100% / 24px 100% no-repeat,
    linear-gradient(0deg, var(--indigo) 0 90%, transparent 90%) 102px 100% / 24px 100% no-repeat,
    linear-gradient(0deg, var(--indigo) 0 66%, transparent 66%) 136px 100% / 24px 100% no-repeat,
    linear-gradient(0deg, var(--indigo) 0 82%, transparent 82%) 170px 100% / 24px 100% no-repeat;
  transition: opacity .3s;
}
.bento__card--wide:hover .bento__deco { opacity: 0.2; }

/* R지수 게이지 */
.gauge { position: relative; width: 168px; flex-shrink: 0; }
.gauge--hero { width: 220px; }
.gauge svg { width: 100%; display: block; }
.gauge__track, .gauge__fill { fill: none; stroke-width: 11; stroke-linecap: round; }
.gauge__track { stroke: var(--surface-high); }
.glass-card .gauge__track { stroke: rgba(255,255,255,0.15); }
.gauge__fill {
  stroke: var(--indigo);
  stroke-dasharray: 158; stroke-dashoffset: 158;
  transition: stroke-dashoffset 1.4s cubic-bezier(.22,1,.36,1) .2s;
}
.glass-card .gauge__fill { stroke: #fff; }
.in-view .gauge__fill, .glass-card .gauge__fill { stroke-dashoffset: 22; }
.gauge__val {
  position: absolute; inset: auto 0 4px; text-align: center;
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
}
.glass-card .gauge__val { color: #fff; font-size: 1.8rem; }
/* 327.2 — 등급 게이지 (사장님 첨부 이미지: 준최적화 / 6등급 / R지수 61점) */
.gauge__fill--half { stroke-dashoffset: 71 !important; }  /* 6등급 ≈ 55% 채움 */
.gauge__inner {
  position: absolute; inset: auto 0 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.gauge__tier { font-size: 0.86rem; font-weight: 800; color: var(--indigo-soft); }
.gauge__grade { font-size: 2.3rem; font-weight: 900; color: #fff; line-height: 1.1; }
.score-badge {
  display: inline-block; padding: 10px 22px; border-radius: 14px;
  background: rgba(255,255,255,0.95); color: var(--navy-soft);
  font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 10px 26px rgba(0,11,54,0.25);
}

/* 대표키워드 타이핑 */
.typewrap {
  margin: 10px 0 4px; font-size: 1.3rem; font-weight: 800; color: var(--indigo);
  min-height: 2.1rem; display: flex; align-items: center;
}
.typewrap--hero { font-size: 2rem; color: #fff; min-height: 3rem; }
.caret {
  width: 2px; height: 1.25em; background: currentColor; margin-left: 3px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* 경쟁매장 레이스 바 */
.race { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.race__row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.race__row span { width: 62px; flex-shrink: 0; }
.race__bar { flex: 1; height: 10px; border-radius: 999px; background: rgba(0,11,54,0.10); overflow: hidden; }
.race__bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--ink-soft); transition: width 1.2s cubic-bezier(.22,1,.36,1) .3s;
}
.race__bar--mine i { background: var(--indigo-grad); }
.in-view .race__bar i { width: var(--w); }
/* 327.2 — 히어로(글래스 카드) 안 레이스 바: 다크 배경용 변형 */
.race--hero { width: 100%; gap: 16px; }
.race--hero .race__row { font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.race--hero .race__row span { width: 72px; }
.race--hero .race__bar { background: rgba(255,255,255,0.14); height: 12px; }
.race--hero .race__bar i { background: rgba(255,255,255,0.45); }
.race--hero .race__bar--mine i { background: var(--indigo-grad); box-shadow: 0 4px 16px rgba(108,127,216,0.5); }

/* ── 최적화알고리즘 ── */
.algo { padding: 100px 0; background: var(--surface); }
.algo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.algo__card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border-radius: var(--r-xl); padding: 34px;
  box-shadow: var(--shadow-ambient);
  transition: transform .3s, box-shadow .3s;
}
.algo__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.algo__card h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.algo__card p { color: var(--ink-soft); font-size: 0.97rem; }
.algo__cta { margin-top: auto; font-weight: 800; color: var(--indigo); padding-top: 10px; }
.algo__icon {
  position: relative; height: 130px; border-radius: 18px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.algo__icon > b { font-size: 3rem; font-weight: 900; opacity: 0.9; }
.algo__icon--kw { background: var(--navy-grad); color: var(--indigo-soft); }
.algo__icon--rv { background: var(--surface-low); color: var(--navy); }
.algo__icon--rw { background: var(--indigo-grad); color: #fff; }

/* 키워드 궤도 칩 */
.orbit-chip {
  position: absolute; font-size: 0.68rem; font-weight: 800;
  background: rgba(255,255,255,0.14); color: #fff;
  padding: 3px 9px; border-radius: 999px;
  animation: orbit 5s linear infinite; animation-delay: var(--d);
}
@keyframes orbit {
  0%   { transform: rotate(0deg) translateX(52px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(52px) rotate(-360deg); }
}

/* 리뷰 스트림 */
.review-stream {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; gap: 8px; padding: 0 18px;
}
.review-stream--hero {
  position: static; width: 100%; gap: 14px; padding: 6px 0;
}
.review-stream span {
  font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
  background: #fff; border-radius: 8px; padding: 4px 10px;
  box-shadow: var(--shadow-ambient); opacity: 0;
  animation: streamIn 4.8s infinite;
}
.review-stream--hero span {
  font-size: 0.98rem; padding: 12px 16px; border-radius: 12px; color: var(--navy);
}
.review-stream span:nth-child(2) { animation-delay: 1.6s; }
.review-stream span:nth-child(3) { animation-delay: 3.2s; }
@keyframes streamIn {
  0% { opacity: 0; transform: translateY(10px); }
  8%, 30% { opacity: 1; transform: none; }
  38%, 100% { opacity: 0.4; }
}
.algo__icon--rv > b { position: relative; z-index: 2; opacity: 0.12; font-size: 4.5rem; }

/* 코인 스택 (골드 유지 — R포인트 브랜드) */
.coin-stack { position: absolute; right: 22px; bottom: 16px; }
.coin-stack i {
  display: block; width: 44px; height: 12px; border-radius: 999px;
  background: linear-gradient(180deg, #F5D67A, #C9971E);
  box-shadow: 0 2px 0 rgba(42,30,0,0.25); margin-top: -4px;
  animation: coinDrop .5s both;
}
.coin-stack i:nth-child(2) { animation-delay: .25s; }
.coin-stack i:nth-child(3) { animation-delay: .5s; }
@keyframes coinDrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ── 최종 CTA ── */
.final { padding: 60px 0 100px; background: var(--surface); }
.final__card {
  background: var(--navy-grad); border-radius: 3rem; padding: 72px 40px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-float);
}
.final__card::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(108,127,216,0.18); filter: blur(80px); top: -160px; right: -120px;
}
.final__logo { height: 72px; width: auto; margin-bottom: 22px; }
.final__card h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.final__card p { color: rgba(255,255,255,0.66); margin-top: 12px; font-size: 1.08rem; }
.final__cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 34px; position: relative; z-index: 2;
}

/* ── FAQ ── */
.faq { padding: 20px 0 110px; background: var(--surface); }
.faq__list { max-width: 760px; }
.faq__list details {
  background: var(--surface-low); border-radius: 16px; margin-bottom: 12px;
  padding: 18px 22px; transition: background .2s;
}
.faq__list details[open] { background: var(--white); box-shadow: var(--shadow-ambient); }
.faq__list summary {
  font-weight: 800; color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__list summary::after { content: "+"; font-size: 1.3rem; color: var(--indigo); }
.faq__list details[open] summary::after { content: "−"; }
.faq__list p { margin-top: 12px; color: var(--ink-soft); }
.faq__list a { color: var(--indigo); font-weight: 700; }

/* ── 푸터 ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 64px 0; font-size: 0.9rem; }
.site-footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px;
  padding-bottom: 28px; margin-bottom: 28px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer__links a { color: rgba(255,255,255,0.72); font-weight: 600; }
.site-footer__links a:hover { color: var(--indigo-soft); }
.site-footer__biz { line-height: 1.9; }
.site-footer__biz strong { color: rgba(255,255,255,0.85); }

/* ── 스크롤 리빌 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ── 반응형 ── */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .hero { padding-top: 96px; }
  .hero__visual { order: 2; }
  .stats__grid, .algo__grid { grid-template-columns: 1fr; }
  .bento__card, .bento__card--wide, .bento__card--cta { grid-column: span 12; }
  .bento__card--wide { flex-direction: column; align-items: flex-start; }
}

/* ── 모션 최소화 존중 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .in-view .rankbar i { height: var(--h); }
  .in-view .stat__bar i { width: var(--w); }
  .in-view .race__bar i { width: var(--w); }
  .in-view .gauge__fill, .glass-card .gauge__fill { stroke-dashoffset: 22; }
}
