.underground-mockup {
  position: relative;
  background: #fffdf5;
}

.underground-mockup main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 9%, rgba(45, 125, 107, 0.1), transparent 24rem),
    radial-gradient(circle at 78% 17%, rgba(244, 222, 214, 0.24), transparent 20rem),
    linear-gradient(
      180deg,
      #fffdf5 0%,
      #fffaf0 12%,
      #f1e1c7 24%,
      #cfa678 39%,
      #9f744f 55%,
      #6f503a 71%,
      #49342a 86%,
      #211a17 100%
    );
}

.underground-mockup main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(121, 85, 72, 0.12) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 31%, rgba(255, 248, 207, 0.16) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 66%, rgba(41, 29, 24, 0.14) 0 6px, transparent 7px),
    radial-gradient(circle at 76% 82%, rgba(255, 253, 245, 0.1) 0 3px, transparent 4px);
  background-size: 280px 280px, 230px 230px, 360px 360px, 190px 190px;
}

.underground-mockup main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(ellipse 360px 170px at -4% 50%, transparent 54%, rgba(41, 29, 24, 0.42) 55% 58%, transparent 59%),
    radial-gradient(ellipse 420px 190px at 108% 73%, transparent 55%, rgba(255, 248, 207, 0.34) 56% 58%, transparent 59%),
    radial-gradient(ellipse 290px 130px at 12% 88%, transparent 56%, rgba(41, 29, 24, 0.28) 57% 59%, transparent 60%);
}

.underground-mockup main > * {
  position: relative;
  z-index: 1;
}

.underground-mockup .site-header {
  background: rgba(255, 253, 245, 0.84);
}

.underground-mockup .hero {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.underground-mockup .trust-strip {
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.68), rgba(255, 248, 207, 0.48));
  backdrop-filter: blur(8px);
}

.underground-mockup .hero-visual-wrapper,
.underground-mockup .gallery-grid figure,
.underground-mockup .preview-frame {
  border-color: rgba(255, 253, 245, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.94), rgba(250, 246, 232, 0.88)),
    #fffdf5;
  box-shadow:
    0 24px 64px rgba(41, 29, 24, 0.22),
    0 0 0 1px rgba(255, 253, 245, 0.42);
}

.underground-mockup .hero-visual-wrapper {
  padding: 14px;
  border: 1px solid rgba(255, 253, 245, 0.82);
  border-radius: 22px;
}

.underground-mockup .hero-screen,
.underground-mockup .gallery-grid img,
.underground-mockup .tag-showcase,
.underground-mockup .demo-video {
  border: 1px solid rgba(222, 216, 199, 0.78);
  box-shadow: 0 14px 34px rgba(93, 73, 49, 0.12);
}

.underground-mockup .section,
.underground-mockup .preview-section {
  position: relative;
  background: transparent;
}

.underground-mockup .gallery-section {
  background: transparent;
}

.underground-mockup .install-section {
  color: #fffdf5;
  background: transparent;
}

.underground-mockup .install-section .eyebrow,
.underground-mockup .install-section .section-heading p,
.underground-mockup .install-section .install-steps span {
  color: rgba(255, 253, 245, 0.78);
}

.underground-mockup .install-steps li {
  border-color: rgba(255, 253, 245, 0.2);
  background: rgba(255, 253, 245, 0.1);
}

.underground-mockup .install-steps li::before {
  color: #5b3827;
  background: #fff8cf;
}

.underground-mockup .install-platform {
  margin: 26px 0 12px;
  font-size: 1.05rem;
  color: #fff8cf;
}

.underground-mockup .install-platform small {
  font-size: 0.85em;
  font-weight: 400;
  color: rgba(255, 253, 245, 0.6);
}

.underground-mockup .install-steps b {
  color: #fff8cf;
  font-weight: 700;
}

.underground-mockup .install-steps .ui-term {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 207, 0.45);
  background: rgba(255, 248, 207, 0.14);
  color: #fff8cf;
  font-weight: 600;
}

.underground-mockup .install-steps kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 253, 245, 0.35);
  border-bottom-width: 2px;
  background: rgba(255, 253, 245, 0.12);
  color: #fffdf5;
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 600;
  text-align: center;
}

.underground-mockup .preview-section {
  color: #fffdf5;
  background: transparent;
}

.underground-mockup .preview-section .eyebrow,
.underground-mockup .preview-section .section-heading p {
  color: rgba(255, 253, 245, 0.76);
}

.underground-mockup .preview-frame {
  box-shadow: 0 28px 80px rgba(20, 14, 12, 0.34);
}

.underground-mockup .final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 40%, rgba(255, 248, 207, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(47, 90, 78, 0.92), rgba(27, 43, 37, 0.96));
}

.underground-mockup .site-footer {
  color: rgba(255, 253, 245, 0.62);
  background: #1b1715;
}

.underground-mockup .site-footer strong {
  color: #fffdf5;
}

/* ── 다운로드 직후 설치 안내 모달 ── */
.install-guide-dialog {
  max-width: 560px;
}

.install-guide-dialog .guide-lead {
  margin: 6px 0 18px;
  color: rgba(60, 47, 38, 0.75);
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-steps[hidden] {
  display: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(222, 216, 199, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.guide-step-text strong {
  display: block;
  margin-bottom: 4px;
  color: #3c2f26;
}

.guide-step-text span {
  color: rgba(60, 47, 38, 0.78);
  font-size: 0.94rem;
  line-height: 1.55;
}

.guide-step-text b {
  color: #2f5a4e;
  font-weight: 700;
}

.guide-step-text .ui-term {
  display: inline-block;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(47, 90, 78, 0.35);
  background: rgba(47, 90, 78, 0.1);
  color: #2f5a4e;
  font-weight: 600;
}

.guide-step-text kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(60, 47, 38, 0.3);
  border-bottom-width: 2px;
  background: #fff;
  color: #3c2f26;
  font: 600 0.85em inherit;
  text-align: center;
}

.guide-visual {
  display: flex;
  justify-content: center;
}

/* macOS Gatekeeper 경고창 재현 */
.mac-alert {
  width: 248px;
  padding: 18px 16px 14px;
  border-radius: 14px;
  background: #2b2b2e;
  color: #f2f2f5;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mac-alert-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.mac-alert-title {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.mac-alert-body {
  margin: 0 0 12px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(242, 242, 245, 0.72);
}

.mac-alert-btn {
  margin-top: 6px;
  padding: 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.mac-alert-btn-muted {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(242, 242, 245, 0.8);
}

.mac-alert-btn-key {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: 2px solid #4c8bf5;
  outline-offset: 1px;
}

/* macOS 설정 '그래도 열기' 행 재현 */
.mac-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #2b2b2e;
  color: #f2f2f5;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.mac-settings-label {
  flex: 1;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(242, 242, 245, 0.82);
  text-align: left;
}

.mac-settings-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 7px;
  background: #5a5a5e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Windows SmartScreen 재현 */
.win-alert {
  width: 270px;
  padding: 16px;
  border-radius: 6px;
  background: #f4f4f4;
  color: #1a1a1a;
  text-align: left;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.win-alert-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.win-alert-body {
  margin: 0 0 14px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.72);
}

.win-alert-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0067c0;
  text-decoration: underline;
}

.win-alert-run {
  width: 92px;
  margin-top: 12px;
  margin-left: auto;
  padding: 6px;
  border-radius: 3px;
  background: #e6e6e6;
  border: 1px solid #adadad;
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 640px) {
  .guide-steps li {
    grid-template-columns: 1fr 260px;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .underground-mockup main::before {
    background-size: 190px 190px, 170px 170px, 230px 230px, 110px 110px;
  }
}


/* ── 언어 토글 버튼 ─────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.lang-toggle {
  padding: 4px 12px;
  border: 1px solid rgba(93, 56, 39, 0.3);
  border-radius: 20px;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: rgba(93, 56, 39, 0.1);
  border-color: rgba(93, 56, 39, 0.5);
}

/* ── 기본 스크롤바: 공간 유지 + 시각적으로만 숨김 ── */
html {
  overflow-y: scroll;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}

/* ── 스크롤 트랙 (오른쪽 세로 띠) ─────────────────── */
.scroll-track {
  position: fixed;
  right: 0;
  top: 0;
  width: 64px;
  height: 100vh;
  z-index: 49;
  pointer-events: auto;
  cursor: pointer;
}

/* ── 두더지 스크롤 캐릭터 ─────────────────────────── */
.scroll-mole {
  position: fixed;
  right: 4px;
  top: 10vh;
  z-index: 50;
  pointer-events: none;
  will-change: top;
  transition: top 80ms linear;
}

.scroll-mole img {
  width: 60px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(41, 29, 24, 0.5));
  transform-origin: 50% 70%;
  animation: mole-idle 3.2s ease-in-out infinite;
}

/* 유휴 상태 — 살짝 떠다니는 느낌 */
@keyframes mole-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40%       { transform: translateY(-5px) rotate(-3deg); }
  70%       { transform: translateY(-2px) rotate(2deg); }
}

/* 스크롤 중 — CSS 애니메이션 정지 (이미지 프레임 교체로 모션 표현) */
.scroll-mole.is-digging img {
  animation: none;
}

@media (max-width: 860px) {
  .scroll-track { width: 48px; }
  .scroll-mole  { right: 2px; }
  .scroll-mole img { width: 46px; }
}

@media (max-width: 560px) {
  .scroll-track { display: none; }
  .scroll-mole  { display: none; }
}
