/* ─── Pretendard Variable ───────────────────── */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-jp.min.css");

:lang(ja) {
  font-family: "Pretendard JP Variable", "Pretendard Variable", sans-serif;
}

/* ─── Reset & Base ──────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #0a0a0a;
  color: #f5f5f0;
  overflow-x: hidden;
}

/* ─── Background Layer ──────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: scale(1.08);
  animation: bgPan 28s ease-in-out infinite alternate;

  /* HD fallback */
  background-image: url("assets/images/bg-desktop-1280.webp");
}

/* FHD ≥ 1281px */
@media (min-width: 1281px) {
  .bg-layer {
    background-image: url("assets/images/bg-desktop-1920.webp");
  }
}

/* 4K — large viewport OR Retina (≥2× DPR) on any decent-sized screen */
@media (min-width: 1921px),
       (-webkit-min-device-pixel-ratio: 2) and (min-width: 1024px),
       (min-resolution: 2dppx) and (min-width: 1024px) {
  .bg-layer {
    background-image: url("assets/images/bg-desktop-4k.webp");
  }
}

/* Mobile — phone only, PC 창 축소 대응 */
@media (max-width: 430px) {
  .bg-layer {
    background-position: center top;
  }
}

/* Gradient overlay for text legibility */
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.20) 40%,
      rgba(0, 0, 0, 0.50) 80%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

/* ─── Page Shell ────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ─── Header / Logo ─────────────────────────── */
.site-header {
  padding: 64px 32px 45px;
}

.header-inner {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.site-logo {
  height: 18px;
  width: auto;
  opacity: 0;
  animation: fadeInDown 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@media (max-width: 768px) {
  .site-header {
    padding: 48px 24px 0;
  }

  .site-logo {
    height: 14px;
  }
}

/* ─── Main Content ──────────────────────────── */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 32px 48px;
}

@media (max-width: 768px) {
  .site-main {
    padding: 44px 24px 40px;
  }
}

/* ─── Marketing Copy ────────────────────────── */
.copy-wrapper {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  text-align: left;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.coming-soon-label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.copy-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lang-block p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.lang-block[data-lang="ja"] p {
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .lang-block p {
    font-size: 15px;
    line-height: 1.8;
  }

  .copy-container {
    gap: 16px;
  }
}


/* ─── Footer ────────────────────────────────── */
.site-footer {
  padding: 28px 32px 36px;
  text-align: center;
}

.footer-notice {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 24px 32px;
  }
}

/* ─── Keyframes ─────────────────────────────── */
@keyframes bgPan {
  from { transform: scale(1.08) translateX(-3%); }
  to   { transform: scale(1.08) translateX(3%); }
}

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

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