/* 쌤툴 홈 (2026-11) — 큰 제품 화면이 차례로 이어지는 단순한 소개 페이지 */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --night: #000000;
  --blue: #2563eb;
  --blue-hi: #1d4ed8;
  --link-dark: #5b9bff;
  --gn-h: 48px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.i18n-wait body { visibility: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="th"] body, html[lang="hi"] body { font-family: -apple-system, BlinkMacSystemFont, "Noto Sans Thai", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif; }
html[lang="ja"] body, html[lang="th"] body { word-break: normal; line-break: strict; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ── 위쪽 메뉴 ── */
.gn {
  position: sticky; top: 0; z-index: 50;
  height: var(--gn-h);
  background: rgba(22, 22, 23, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #e8e8ed;
}
.gn-in {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 20px;
}
.gn-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; letter-spacing: -0.02em; }
.gn-logo svg { width: 22px; height: 22px; color: var(--blue); --mark-in: #fff; }
.gn-links { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 34px; }
.gn-links a { font-size: 13px; opacity: .82; transition: opacity .2s; white-space: nowrap; }
.gn-links a:hover { opacity: 1; }
.gn-right { display: flex; align-items: center; gap: 6px; }
.gn-lang { position: relative; display: flex; align-items: center; gap: 4px; font-size: 12px; opacity: .82; cursor: pointer; }
.gn-lang:hover { opacity: 1; }
.gn-lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gn-lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; cursor: pointer; padding: 6px 2px; max-width: 120px;
}
.gn-lang select option { color: #1d1d1f; }
.gn-menu { display: none; width: 36px; height: 36px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.gn-menu span { position: absolute; left: 10px; width: 16px; height: 1.5px; background: #e8e8ed; transition: transform .3s var(--ease), top .3s var(--ease); }
.gn-menu span:first-child { top: 14px; }
.gn-menu span:last-child { top: 21px; }
.gn-menu[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.gn-menu[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }

/* ── 큰 제품 화면 ── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 22px 0;
  min-height: 692px;
  display: flex; flex-direction: column; align-items: center;
}
.hero + .hero { border-top: 12px solid var(--paper); }
.hero-dark { background: var(--night); color: #f5f5f7; }
.hero-light { background: #e3e3e8; color: var(--ink); }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.hero-name { margin: 0; font-size: 56px; line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
.hero-line { margin: 6px 0 0; font-size: 28px; line-height: 1.14; font-weight: 500; letter-spacing: -0.02em; }
.hero-sub { margin: 12px auto 0; max-width: 520px; font-size: 17px; color: var(--ink-2); }
.hero-dark .hero-sub { color: #a1a1a6; }
.cta { margin-top: 20px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 9px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 500;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--blue-hi); }
.btn:active { transform: scale(.97); }
.more { color: var(--blue); font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.more i { font-style: normal; font-size: 1.15em; line-height: 1; transition: transform .2s var(--ease); }
.more:hover span { text-decoration: underline; }
.more:hover i { transform: translateX(3px); }
.hero-dark .more, .tile-shop .more, .tile-dub .more { color: var(--link-dark); }
.hero-media { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin-top: auto; }
.hero-media video { width: 100%; aspect-ratio: 2752 / 1536; object-fit: cover; }
.hero-dark .hero-media { margin-top: -36px; }
.hero-dark .hero-media video {
  -webkit-mask-image: radial-gradient(ellipse 45% 62% at 50% 56%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 45% 62% at 50% 56%, #000 62%, transparent 100%);
}
.hero-light .hero-media { margin-top: -10px; }
.hero-light .hero-media video {
  -webkit-mask-image: radial-gradient(ellipse 56% 70% at 50% 55%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 56% 70% at 50% 55%, #000 62%, transparent 100%);
}

/* ── 타일 ── */
.tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px; background: var(--paper);
}
.tile {
  position: relative; overflow: hidden; text-align: center;
  min-height: 580px; padding: 52px 22px 0;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 0;
}
.tile-copy { position: relative; z-index: 2; }
.tile h3 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.tile-line { margin: 6px 0 0; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.tile-sub { margin: 8px auto 0; max-width: 380px; font-size: 15px; opacity: .72; }
.tile .more { margin-top: 14px; font-size: 17px; }
.tile:hover .more span { text-decoration: underline; }
.tile:hover .more i { transform: translateX(3px); }
.tile img, .tile video {
  width: 100%; max-width: 640px; margin-top: auto; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile-shop { background: #161719; color: #f5f5f7; }
.tile-shop h3 { color: #ffd400; }
.tile-shop img { -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 55%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 72% at 50% 55%, #000 55%, transparent 100%); }
.tile-dub { background: #0d1530; color: #f5f5f7; }
.tile-dub video { -webkit-mask-image: radial-gradient(ellipse 72% 74% at 50% 52%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 72% 74% at 50% 52%, #000 60%, transparent 100%); }
.tile-font { background: #ebe0d4; color: #3a2f22; }
.tile-font .more { color: #9a6a1f; }
.tile-font img { -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 62%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 62% 78% at 50% 62%, #000 60%, transparent 100%); }
.tile-lang { background: var(--mist); color: var(--ink); justify-content: flex-start; }
.hello {
  margin: auto 0; padding: 30px 0 50px; width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
}
.hello span {
  background: linear-gradient(100deg, #2563eb, #7c3aed 45%, #db2777 75%, #f59e0b);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 9s linear infinite;
}
.hello span:nth-child(2n) { animation-delay: -2s; }
.hello span:nth-child(3n) { animation-delay: -4s; }
.hello span:nth-child(5n) { animation-delay: -6s; }
@keyframes hue { to { background-position: 300% 0; } }

/* ── 약속 ── */
.promise { max-width: 1024px; margin: 0 auto; padding: 96px 22px 88px; text-align: center; }
.promise-title { margin: 0 auto 56px; max-width: 700px; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promise-list svg { width: 44px; height: 44px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promise-list h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.promise-list p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ── 아래 ── */
.ft { background: var(--mist); color: var(--ink-2); font-size: 12px; }
.ft-in { max-width: 1024px; margin: 0 auto; padding: 28px 22px 36px; }
.ft-cols { display: flex; gap: 72px; padding-bottom: 20px; border-bottom: 1px solid #d2d2d7; }
.ft-cols h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.ft-cols a { display: block; margin: 6px 0; }
.ft-cols a:hover { text-decoration: underline; color: var(--ink); }
.ft-made { margin: 16px 0 0; }
.ft-made a { font-weight: 600; color: var(--ink); }
.ft-made a:hover { text-decoration: underline; }
.ft-copy { margin: 6px 0 0; }

/* ── 나타나기 ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2n) { transition-delay: .08s; }
.promise-list .reveal:nth-child(2) { transition-delay: .06s; }
.promise-list .reveal:nth-child(3) { transition-delay: .12s; }
.promise-list .reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hello span { animation: none; }
  .tile img, .tile video { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── 좁은 화면 ── */
@media (max-width: 1068px) {
  .hero { min-height: 620px; }
  .hero-name { font-size: 48px; }
  .hero-line { font-size: 24px; }
  .tile { min-height: 520px; }
  .tile h3 { font-size: 34px; }
  .promise-list { grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }
}
@media (max-width: 833px) {
  .gn-in { padding: 0 16px; }
  .gn-menu { display: block; }
  .gn-links {
    position: absolute; top: var(--gn-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 32px 28px;
    background: rgba(22, 22, 23, .96);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .gn.open .gn-links { visibility: visible; opacity: 1; transform: none; }
  .gn-links a { display: block; padding: 12px 0; font-size: 22px; font-weight: 600; opacity: .92; }
  .gn-right { margin-left: auto; }
  .tiles { grid-template-columns: 1fr; padding: 12px 0; }
  .tile { min-height: 0; padding-top: 44px; }
  .tile img, .tile video { max-width: 520px; }
  .ft-cols { flex-wrap: wrap; gap: 28px 48px; }
}
@media (max-width: 600px) {
  .hero { padding: 44px 16px 0; min-height: 0; }
  .hero + .hero { border-top-width: 0; }
  .hero-name { font-size: 40px; }
  .hero-line { font-size: 21px; }
  .hero-sub { font-size: 15px; }
  .hero-media { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
  .hero-dark .hero-media { margin-top: 0; }
  .hero-media video { aspect-ratio: 4 / 3; }
  .hero-dark .hero-media video { aspect-ratio: 1 / 1; }
  .cta { gap: 16px; }
  .tile { padding: 40px 16px 0; }
  .tile h3 { font-size: 30px; }
  .tile-line { font-size: 19px; }
  .hello { font-size: 26px; }
  .promise { padding: 64px 16px; }
  .promise-title { font-size: 30px; margin-bottom: 40px; }
  .promise-list { grid-template-columns: 1fr; gap: 36px; }
  .ft-in { padding: 24px 16px 32px; }
  .gn-lang select { max-width: 92px; }
}
