/* ============================================
   미모 메인(home) — Gumroad-inspired dark rail
   Scoped to body.page-home only
   ============================================ */

.page-home {
  --home-bg: #050505;
  --home-surface: #242423;
  --home-surface-2: #222222;
  --home-ink: #f5f5f5;
  --home-muted: #a3a3a3;
  --home-pink: #ff90e8;
  --home-yellow: #ffc900;
  --home-orange: #ff8a3d;
  --home-green: #5eead4;
  --home-teal: #23a094;
  --home-radius: 28px;
  --home-radius-sm: 18px;
  /* 영문·한글 동일 패밀리로 광학 크기 맞춤 (Syne 제거) */
  --font-home-display: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --home-orb-size: clamp(144px, 16.875vw, 252px);
  --home-orb-size-left: calc(var(--home-orb-size) * 5 / 6);
  --home-orb-size-compact: var(--home-orb-size-left);
  --home-market-tri-gap: clamp(14px, 1.5vw, 26px);
  --home-orb-edge: clamp(6px, 1vw, 18px);

  /* 매물 카드 여유를 위해 레일 1.5배 */
  --home-rail: min(75vw, 1560px);

  background-color: #000000;
  background-image: none;
  color: var(--home-ink);
  /* 좁은/분할 창에서 잘리지 않고 가로 스크롤로 전체 네비·콘텐츠 접근 */
  overflow-x: auto;
  overflow-y: visible;
}

.page-home .container--home {
  width: 100%;
  max-width: var(--home-rail);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 28px);
}

@media (max-width: 960px) {
  .page-home {
    --home-rail: min(94vw, 1080px);
  }
}

@media (max-width: 640px) {
  .page-home {
    --home-rail: 100%;
  }
}

/* ---- Nav (home) ---- */
.page-home .nav {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-bottom: 0;
}

.page-home .nav::before,
.page-home .nav::after {
  display: none;
}

.page-home .nav__logo {
  color: #fff;
  gap: 10px;
}

.page-home .nav__home {
  background: #ff90e8;
  color: #111;
  border: none;
  box-shadow: none;
  border-radius: 12px;
}

.page-home .nav__home:hover {
  background: #ffb0f0;
  color: #111;
  transform: none;
  box-shadow: none;
}

.page-home .nav__home--pink {
  background: #ff90e8;
}

.page-home .nav__home--pink:hover {
  background: #ffb0f0;
}

.page-home .nav__home--yellow {
  background: #ffc900;
}

.page-home .nav__home--yellow:hover {
  background: #ffd84d;
}

.page-home .nav__home--mint {
  background: #5eead4;
}

.page-home .nav__home--mint:hover {
  background: #7ff0dd;
}

.page-home .nav__home--white {
  background: #ffffff;
}

.page-home .nav__home--white:hover {
  background: #f0f0f0;
}

.page-home .nav__home--sky {
  background: #7dd3fc;
}

.page-home .nav__home--sky:hover {
  background: #a5e0fd;
}

.page-home .nav__home-icon {
  color: #111;
}

.page-home .nav__logo > span:first-child {
  display: none;
}

.page-home .nav__logo-badge {
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-family: var(--font-home-display);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .nav__pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--home-ink);
  box-shadow: none;
}

.page-home .nav__pill:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.page-home .nav__pill--orange,
.page-home .nav__pill--mint,
.page-home .nav__pill--lavender {
  background: transparent;
}

.page-home .nb-btn--nav {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: var(--home-ink);
  background: transparent;
}

.page-home .nb-btn--nav-coral,
.page-home .nb-btn--nav-sky,
.page-home .nb-btn--nav-mint {
  background: var(--home-pink);
  color: #111;
  border-color: transparent;
  font-weight: 800;
}

.page-home .nb-btn--nav-yellow {
  background: var(--home-yellow);
  color: #111;
  border-color: transparent;
  font-weight: 800;
}

.page-home .nb-btn--nav-ghost,
.page-home .nb-btn--nav-admin {
  background: var(--home-surface-2);
}

.page-home .nav__welcome {
  color: var(--home-muted);
}

.page-home .nav__lang-btn {
  color: rgba(255, 255, 255, 0.45);
}

.page-home .nav__lang-btn:hover,
.page-home .nav__lang-btn.is-active {
  color: var(--home-ink);
}

.page-home .nav__lang-sep {
  color: rgba(255, 255, 255, 0.28);
}

/* 메뉴·언어·로그인: 홈버튼~오른쪽 끝 사이 구간의 가로 중앙 */
.page-home .nav__row {
  justify-content: flex-start;
  position: relative;
}

.page-home .nav__brand {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  flex-shrink: 0;
  z-index: 1;
}

.page-home .nav__links {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 28px);
  min-width: 0;
  margin-inline: 0;
}

/* ---- Hero ---- */
.page-home .hero {
  position: relative;
  padding: clamp(28px, 5vh, 56px) 0 calc(clamp(48px, 7vh, 88px) + var(--home-orb-size) * 0.35);
  overflow: visible;
}

.page-home .hero__wash,
.page-home .hero__glow {
  display: none;
}

.page-home .hero__orb {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--home-orb-size);
  height: var(--home-orb-size);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  box-shadow: none;
  animation: home-float 7s ease-in-out infinite;
  will-change: transform;
  overflow: visible;
}

.page-home .hero__orb--pink {
  background: var(--home-pink);
}

.page-home .hero__orb--yellow {
  background: var(--home-yellow);
}

.page-home .hero__orb-mark {
  position: relative;
  z-index: 2;
  font-family: var(--font-home-display);
  font-size: calc(var(--home-orb-size) * 0.48);
  font-weight: 800;
  line-height: 1;
  color: #111;
  letter-spacing: -0.03em;
  user-select: none;
}

/* 좌·우 장식 원 — 대각선 배치, 블랙 M만 */
.page-home .hero__decor-cluster {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--home-orb-size-left) * 1.9);
  height: calc(var(--home-orb-size-left) * 1.75);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero__decor-cluster--left {
  left: calc(50% - 50vw + var(--home-orb-edge) - 4px);
}

.page-home .hero__decor-cluster--right {
  right: calc(50% - 50vw + var(--home-orb-edge) - 2px);
}

.page-home .hero__decor-cluster .hero__orb {
  position: absolute;
  flex-shrink: 0;
}

.page-home .hero__decor-cluster--left .hero__orb:nth-child(1) {
  top: 0;
  left: 6%;
  animation-delay: -3.5s;
}

.page-home .hero__decor-cluster--left .hero__orb:nth-child(2) {
  top: 54%;
  left: 44%;
  animation-delay: -1.8s;
}

.page-home .hero__decor-cluster--right .hero__orb:nth-child(1) {
  top: 4%;
  right: 2%;
  animation-delay: -2.4s;
}

.page-home .hero__decor-cluster--right .hero__orb:nth-child(2) {
  top: 56%;
  right: 40%;
  animation-delay: -1.1s;
}

.page-home .hero__orb--decor-left {
  width: var(--home-orb-size-left);
  height: var(--home-orb-size-left);
}

.page-home .hero__orb--decor-left .hero__orb-mark {
  font-size: calc(var(--home-orb-size-left) * 0.48);
  color: #111;
}

.page-home .hero__orb--mint {
  background: var(--home-green);
}

/* 히어로 중앙 — 마켓 pill 버튼 (다크 · 회색 테두리) */
.page-home .hero__market-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: clamp(10px, 2vw, 20px);
}

.page-home .hero__market-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 12px clamp(16px, 2.4vw, 24px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.55vw, 1.02rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page-home .hero__market-pill--yellow,
.page-home .hero__market-pill--mint,
.page-home .hero__market-pill--pink {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

.page-home a.hero__market-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
}

.page-home .hero__market-pill[data-soon-tooltip] {
  cursor: not-allowed;
  user-select: none;
  color: rgba(255, 255, 255, 0.58);
}

.page-home .hero__market-pill-badge {
  padding: 2px 7px;
  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.5);
  font-size: 0.72em;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.page-home .hero__market-tooltip {
  position: fixed;
  z-index: 200;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #1a1a1a;
  border: 2px solid #ff90e8;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.page-home .hero__market-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

@keyframes home-float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

.page-home .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(28px, 4vw, 44px);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(720px, calc(100% - var(--home-orb-size-compact) * 0.55));
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 32px);
}

.page-home .hero__content {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.2vw, 24px);
}

.page-home .hero__brand {
  display: none;
}

.page-home .hero__headline {
  font-family: var(--font-home-display);
  font-size: clamp(1.7rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0;
  text-wrap: balance;
}

.page-home .hero__subheadline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--home-muted);
  max-width: 34em;
  margin: 0 auto;
  line-height: 1.65;
}

.page-home .hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  list-style: none;
  margin: 4px auto 0;
  padding: 0;
  max-width: 40em;
}

.page-home .hero__feature {
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 700;
  color: var(--home-muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-home .hero__feature:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 700;
}

.page-home .hero__actions {
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 0;
  gap: 12px;
}

.page-home .hero__cta {
  border-radius: 999px;
  border: none;
  box-shadow: none;
  background: var(--home-pink);
  color: #111;
  font-weight: 800;
  padding: 14px 28px;
}

.page-home .hero__cta:hover {
  transform: translateY(-2px);
  background: #ffb0f0;
}

.page-home .hero__cta-secondary,
.page-home .nb-btn--ghost {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  box-shadow: none;
  padding: 14px 22px;
  font-weight: 700;
}

.page-home .hero__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.page-home .hero__stage {
  width: 100%;
  margin-top: clamp(12px, 3vh, 36px);
}

.page-home .hero__mimo {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: clamp(4px, 0.85vw, 9px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  animation: home-pill-in 0.8s ease both;
}

.page-home .hero__mimo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.page-home .hero__mimo-letter {
  display: block;
  font-family: var(--font-home-display);
  font-size: clamp(4rem, 12.5vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  -webkit-text-stroke: 0;
  paint-order: normal;
  transform: none;
  transition: transform 0.25s ease;
  color: #fff;
}

.page-home .hero__mimo-item:nth-child(2) .hero__mimo-letter,
.page-home .hero__mimo-item:nth-child(3) .hero__mimo-letter,
.page-home .hero__mimo-item:nth-child(4) .hero__mimo-letter {
  transform: none;
}

.page-home .hero__mimo-item:hover .hero__mimo-letter {
  transform: translateY(-4px);
}

.page-home .hero__mimo-letter--pink,
.page-home .hero__mimo-letter--yellow,
.page-home .hero__mimo-letter--orange,
.page-home .hero__mimo-letter--green {
  color: #fff;
  background: none;
  box-shadow: none;
  text-shadow: none;
}

@keyframes home-pill-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__orb {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .page-home .hero__decor-cluster {
    display: none;
  }

  .page-home .hero__inner {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-home .hero__orb {
    opacity: 0.55;
  }

  .page-home .hero__market-pills {
    gap: 8px;
  }

  .page-home .hero__market-pill {
    min-height: 42px;
    padding: 10px 16px;
    font-size: clamp(0.82rem, 3.8vw, 0.94rem);
  }

  .page-home .hero__mimo {
    gap: 3px;
  }

  .page-home .hero__feature {
    white-space: normal;
  }

  .page-home .hero__feature:not(:last-child)::after {
    display: none;
  }
}

/* ---- Listings ---- */
.page-home .listings {
  padding: 0 0 96px;
  margin-top: -58px;
}

.page-home .listings__header {
  text-align: center;
  margin-bottom: 28px;
}

.page-home .listings__title {
  font-family: var(--font-home-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
  text-align: center;
}

.page-home .listings__report-banner {
  display: block;
  margin: 0 auto;
  padding: 0;
  max-width: none;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--home-muted);
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.page-home .listings__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.page-home .listings__login-gate {
  margin-top: 4px;
  padding: 20px 12px 4px;
}

.page-home .listings__login-gate-text {
  color: rgba(255, 255, 255, 0.72);
}

.page-home .listings__login-gate-link {
  color: var(--home-pink, #ff90e8);
}

@media (max-width: 980px) {
  .page-home .listings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-home .listings__grid {
    grid-template-columns: 1fr;
  }
}

.page-home .card {
  position: relative;
  background: var(--home-surface);
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--home-radius);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .card:has(.card__accent--purple) {
  border-color: var(--home-pink);
}

.page-home .card:has(.card__accent--yellow) {
  border-color: var(--home-yellow);
}

.page-home .card:has(.card__accent--mint) {
  border-color: var(--home-teal);
}

.page-home .card:has(.card__accent--coral) {
  border-color: #ff6b6b;
}

.page-home .card:hover {
  transform: translateY(-4px);
  background: #2e2e2d;
}

.page-home .card:has(.card__accent--purple):hover {
  border-color: #ffb0f0;
}

.page-home .card:has(.card__accent--yellow):hover {
  border-color: #ffe566;
}

.page-home .card:has(.card__accent--mint):hover {
  border-color: var(--home-green);
}

.page-home .card:has(.card__accent--coral):hover {
  border-color: #ff8a8a;
}

.page-home .card__accent {
  display: none;
}

.page-home .card__body {
  padding: 22px 22px 20px;
  color: var(--home-ink);
}

.page-home .card__tagline,
.page-home .card__mrr {
  color: var(--home-muted);
}

.page-home .card__builder {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: none;
}

.page-home .card__proposal-note {
  background: #6b6b6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  -webkit-font-smoothing: antialiased;
}

.page-home .card__name,
.page-home .card__name-link,
.page-home .card__price {
  color: #fff;
}

.page-home .revenue-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  filter: none;
  text-shadow: none;
  border-radius: 6px;
  -webkit-font-smoothing: antialiased;
  font-weight: 700;
  letter-spacing: 0;
}

.page-home .revenue-badge--verified {
  background: #1a1a1a;
  color: #e8e8e8;
}

.page-home .revenue-badge--growth {
  background: #2a2a2a;
  color: #d4d4d4;
}

.page-home .revenue-badge--ready {
  background: #333;
  color: #cfcfcf;
}

.page-home .revenue-badge--pending {
  background: #222;
  color: #9a9a9a;
}

.page-home .card__name {
  font-family: "Pretendard Variable", "Pretendard", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-home .card__name-en {
  display: inline;
  font-family: "Pretendard Variable", "Pretendard", sans-serif;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.78;
  margin-left: 0.2em;
  vertical-align: baseline;
}

.page-home .nb-tag {
  background: var(--home-surface-2);
  color: var(--home-ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: none;
}

.page-home .score-pill {
  background: var(--home-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: none;
  color: var(--home-muted);
}

.page-home .score-pill__value--high {
  color: #5eead4;
}
.page-home .score-pill__value--mid {
  color: var(--home-yellow);
}

.page-home .card__cta {
  border-radius: 999px;
  border: none;
  box-shadow: none;
  font-weight: 800;
}

.page-home .card__cta--pastel {
  background: var(--cta-pastel, var(--home-pink)) !important;
  color: #111 !important;
}

.page-home .card__cta--pastel:hover {
  background: var(--cta-pastel-hover, #ffb0f0) !important;
  color: #111 !important;
}

.page-home .card__cta--disabled {
  background: #333 !important;
  color: #888 !important;
}

.page-home .card__footer {
  border-top: none;
  padding-top: 12px;
}

.page-home .card--sold {
  opacity: 0.72;
}

/* ---- Footer ---- */
.page-home .footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--home-muted);
}

.page-home .footer__brand {
  color: #fff;
  font-family: var(--font-home-display);
  font-weight: 800;
}

.page-home .footer__brand-en {
  font-family: "Pretendard Variable", "Pretendard", sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-left: 0.12em;
  opacity: 0.92;
}

.page-home .footer__link:hover {
  color: var(--home-pink);
}
