@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --ink: #0B0E12;
  --ink-2: #14181F;
  --paper: #E8E2D6;
  --mute: #A8A093;
  --line: #2A2E36;
  --accent: #C4A46A;
  --accent-ink: #14110A;
  --danger: #F2B8B0;
  --page: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --r: 14px;
  --mark-opacity: 0.5;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.shell {
  width: min(var(--page), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 18, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--mute);
  text-decoration: none;
}
.lang a[aria-current="true"] {
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__link,
.nav__cta,
.text-link {
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--accent);
}
.nav__cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
}

.hero,
.section {
  padding: 88px 0;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 780px);
  padding-top: 96px;
  padding-bottom: 80px;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__copy {
  max-width: 28ch;
}
.hero__mark {
  position: absolute;
  /* 박스 일부가 화면 밖으로 나가 원 호만 남게 한다. */
  right: -20%;
  bottom: -30%;
  width: min(98vw, 1200px);
  height: min(98vw, 1200px);
  pointer-events: none;
  z-index: 0;
}
.hero__mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: var(--mark-opacity);
}
.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1,
.page-title,
.section h2 {
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 750;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  max-width: 12ch;
}
.lead,
.section p,
.card p {
  color: var(--mute);
}
.lead {
  max-width: 42ch;
  margin: 24px 0 32px;
  font-size: 20px;
}
.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.featured,
.card,
.faq,
.form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.featured,
.form {
  padding: 32px;
}
.grid {
  display: grid;
  gap: 16px;
}
/* 제목 바로 아래 카드가 붙지 않게. lead가 있는 섹션은 기존 여백을 쓴다. */
.section .shell > h2 + .grid {
  margin-top: 48px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 24px;
}
.card h3 {
  margin-bottom: 10px;
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--mute);
  line-height: 1.6;
}

[data-faq-list] {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.faq { overflow: hidden; }
.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  line-height: 1.45;
  cursor: pointer;
}
.faq__a {
  padding: 0 24px 22px;
  color: var(--mute);
  line-height: 1.6;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.swatch {
  min-height: 280px;
  border-radius: var(--r);
  background:
    radial-gradient(circle at 22% 18%, rgba(196, 164, 106, 0.32), transparent 42%),
    linear-gradient(160deg, #1a1710, #0B0E12);
}

.form label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}
.form input,
.form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: 15px;
}
.form-status.is-error { color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--mute);
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer__slogan {
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.footer__label {
  color: var(--paper);
  margin-bottom: 10px;
}
.footer__links,
.footer__legal + .footer__legal {
  display: grid;
  gap: 6px;
}
.footer__links { gap: 8px; }
.footer__copy { padding-bottom: 12px; }

.page-head { padding: 96px 0 24px; }
.page-title { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; }
.method-block { margin-bottom: 48px; }

/* 움직임: JS가 has-motion을 붙였을 때만 숨긴다. JS가 없으면 그냥 다 보인다. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 700ms var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.has-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.hero h1.is-split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: word-in 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes word-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.hero__mark img {
  animation: mark-in 1600ms var(--ease-out) both;
}
@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.94) rotate(-4deg);
  }
  to {
    opacity: var(--mark-opacity);
    transform: none;
  }
}
.btn,
.nav__cta,
.card,
.faq {
  transition:
    transform 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    background-color 240ms var(--ease-out);
}
.btn:hover,
.nav__cta:hover {
  transform: scale(1.03);
}
.btn:active,
.nav__cta:active {
  transform: scale(0.98);
}
.card:hover,
.faq:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 164, 106, 0.45);
}
.reduce-motion .hero h1.is-split .word,
.reduce-motion .hero__mark img {
  animation: none;
  opacity: 1;
  transform: none;
}
.reduce-motion .hero__mark img { opacity: var(--mark-opacity); }
@media (prefers-reduced-motion: reduce) {
  .has-motion [data-reveal],
  .btn,
  .nav__cta,
  .card,
  .faq {
    transition: none;
  }
  .btn:hover,
  .nav__cta:hover,
  .card:hover,
  .faq:hover {
    transform: none;
  }
}

/* REVIEW: 480 아래는 로고 글자를 숨긴다. 44px 언어 칸과 메뉴가 한 줄에 안 들어가서다. */
@media (max-width: 479px) {
  .brand__name { display: none; }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .grid--3,
  .grid--2,
  .story,
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .hero,
  .section { padding: 64px 0; }
  .hero {
    min-height: 70vh;
    padding-top: 88px;
    padding-bottom: 72px;
  }
  .hero__copy {
    max-width: none;
  }
  .hero__mark {
    right: -16%;
    bottom: -26%;
    width: min(110vw, 640px);
    height: min(110vw, 640px);
  }
  .featured,
  .form { padding: 24px; }
}

/* 태블릿: 메뉴는 펼치고, 카드는 여러 열을 유지한다. 그림만 글에서 더 밀어낸다. */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --mark-opacity: 0.36; }
  .hero__copy { max-width: 26ch; }
  .hero__mark {
    right: -28%;
    bottom: -34%;
    width: min(88vw, 780px);
    height: min(88vw, 780px);
  }
}

/* 한국어 메인 문구의 어절과 두 줄 구성을 지킨다. */
:lang(ko) .hero__copy { max-width: 760px; }
:lang(ko) .hero h1 {
  max-width: none;
  font-size: clamp(28px, 5.8vw, 72px);
  word-break: keep-all;
}
:lang(ko) .hero .lead { max-width: 34em; }
:lang(ko) .section h2,
:lang(ko) .card h3,
:lang(ko) .lead,
:lang(ko) .card p,
:lang(ko) .page-title { word-break: keep-all; overflow-wrap: anywhere; }
