/* SOCKET KITS — base44-inspired design v5 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-warm: #f9f7f4;
  --bg-cream: #faf8f4;
  --ink: #0a0a0a;
  --ink-1: #1a1a1a;
  --ink-2: #3f3f46;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --ink-5: #d1d5db;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;

  --orange: #ff8a5b;
  --orange-soft: #fff0e6;
  --blue: #c9d6f0;
  --blue-soft: #e8eef9;

  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --info: #2563eb;
  --info-soft: #dbeafe;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow:    0 6px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 14px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 40px 80px rgba(0,0,0,0.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  word-break: keep-all;
  overflow-wrap: break-word;
}

html {
  overflow-x: hidden;
}

/* 모든 섹션/컨테이너의 가로 폭 제한 */
section, .container, .container-md, .container-sm, .container-lg {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 큰 텍스트는 모두 화면 폭에 맞춰 줄바꿈 */
h1, h2, h3, h4, .hero-title, .section-title, .features-title, .pricing-title, .faq-title {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: keep-all;
}

/* 한국어/일본어는 break-word 사용 */
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

html[lang="ko"] body, html[lang="ja"] body { word-break: keep-all; }

/* Containers */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 460px; margin: 0 auto; padding: 0 24px; }
.container-md     { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container-lg     { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ====================================================
   GLOBAL BACKGROUND — base44 sky-blue → cream gradient
   ==================================================== */
body {
  background:
    linear-gradient(180deg,
      #d6e3f7 0%,
      #e2eaf5 8%,
      #ecf0f5 16%,
      #f5f3ee 50%,
      #faf3eb 65%,
      #ffeede 80%,
      #ffe4cc 92%,
      #ffd9b8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* For scroll past 100vh, keep cream */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, #faf3eb 100%);
  pointer-events: none;
}

main, .page-content {
  position: relative;
  z-index: 1;
}

/* When inside dashboards/auth, override to clean white */
body.plain {
  background: var(--bg);
}
body.plain::after { display: none; }

/* ====================================================
   NAV — capsule floating
   ==================================================== */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: -68px;
}

.nav {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-img {
  /* 핵심 반응형 속성 */
  max-width: 100%;  /* 부모 요소보다 커지지 않음 */
  height: auto;     /* 비율 유지 */
  
  /* 로고 크기 설정 (원하는 크기로 조절하세요) */
  width: 180px;     
}
/* 모바일 화면 (화면 너비 768px 이하일 때) */
@media (max-width: 768px) {
  .logo-img {
    width: 140px;   /* 모바일에서는 조금 더 작게 조절 */
  }
}


.logo-mark {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #ff8a5b, #ff6a35);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring);
  flex-shrink: 0;
}
.logo:hover .logo-mark { transform: rotate(360deg); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.logo-mark svg { width: 14px; height: 14px; color: white; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-full);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--r-full);
  padding: 2px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
}
.lang-switch a {
  padding: 5px 9px;
  border-radius: var(--r-full);
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lang-switch a.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--r-full);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.mobile-toggle:hover { background: rgba(0,0,0,0.04); }
.mobile-toggle .mt-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.mobile-toggle.active .mt-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active .mt-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active .mt-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 88px 24px 32px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
  overflow-y: auto;
  /* 스크롤바 숨김 - 닫혔을 때도 깜빡임 안 보이게 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  visibility: hidden;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-link {
  display: block;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.025em;
  transition: padding 0.2s var(--ease);
}
.mobile-menu-link:hover { padding-left: 8px; }
.mobile-menu-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.btn-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink-4);
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.btn-block { width: 100%; padding: 13px 18px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-orange {
  background: #cdf564;
  color: var(--ink);
  border-color: #cdf564;
  font-weight: 600;
}
.btn-orange:hover {
  background: #b8e84d;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(205, 245, 100, 0.4);
}

/* ====================================================
   FLASH
   ==================================================== */
.flash {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.flash-hide { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.flash-error { background: var(--red-soft); color: #991b1b; }
.flash-success { background: var(--green-soft); color: #14532d; }

/* ====================================================
   HERO — Center, big title, big prompt
   ==================================================== */
.hero {
  padding: 120px 0 48px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  margin: 0 auto 32px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  animation: fadeUp 0.8s var(--ease-out);
  cursor: pointer;
  width: max-content;
}
.hero-pill:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.hero-pill-tag {
  background: linear-gradient(135deg, #ff8a5b, #ff6a35);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-pill svg {
  width: 12px; height: 12px;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease);
}
.hero-pill:hover svg { transform: translateX(2px); color: var(--ink); }

.hero-title {
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  /* fill-mode 'both' + opacity:1 안전망: animation이 어떤 이유로든 작동 못해도 콘텐츠는 보임 */
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.1s both;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="ko"] .hero-title,
html[lang="ja"] .hero-title {
  font-size: clamp(34px, 6.4vw, 86px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  word-break: keep-all;
  overflow-wrap: anywhere;
  hyphens: none;
}

/* 모바일에서 일본어/한국어 더 작게 */
@media (max-width: 640px) {
  html[lang="ko"] .hero-title,
  html[lang="ja"] .hero-title {
    font-size: clamp(28px, 7.8vw, 42px);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 28px;
  letter-spacing: -0.01em;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.2s both;
  word-break: keep-all;
}

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

/* ★ 추가 안전망: hero 직접 자식이 어떤 이유로든 invisible 상태로 머물지 않도록 */
.hero > .container > .hero-pill,
.hero > .container > .hero-title,
.hero > .container > .hero-sub,
.hero > .container > .prompt-wrap {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-pill, .hero-title, .hero-sub, .prompt-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ====================================================
   PROMPT BOX
   ==================================================== */
.prompt-wrap {
  max-width: 1000px;
  margin: 0 auto 12px;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.3s both;
}

.prompt-box {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-xl);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s var(--ease);
  position: relative;
}
.prompt-box:focus-within {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 4px rgba(91, 95, 199, 0.06), 0 28px 72px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.prompt-textarea {
  width: 100%;
  min-height: 92px;
  border: none;
  outline: none;
  padding: 18px 22px 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  resize: none;
  font-family: inherit;
  letter-spacing: -0.01em;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.prompt-textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
.prompt-textarea::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 16px;
  gap: 10px;
}

.prompt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.prompt-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--r-full);
  letter-spacing: -0.005em;
}
.prompt-meta-pill svg { width: 11px; height: 11px; }

.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-full);
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}
.btn-generate:hover {
  background: var(--ink-1);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-generate:active { transform: scale(0.95); }
.btn-generate svg { width: 16px; height: 16px; }

/* Examples chips */
.examples-eyebrow {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 760px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.chip:hover {
  border-color: var(--ink-4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ====================================================
   FEATURES SECTION (Consider yourself limitless)
   slide carousel - 4 slides
   ==================================================== */
.features-section {
  padding: 60px 0 40px;
  position: relative;
}

.features-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.features-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
html[lang="ko"] .features-title,
html[lang="ja"] .features-title {
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.025em;
}

.feature-slide {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.feature-slide:last-child { border-bottom: none; }
.feature-slide.reverse { grid-template-columns: 1.2fr 1fr; }
.feature-slide.reverse .feature-text { order: 2; }
.feature-slide.reverse .feature-visual { order: 1; }

.feature-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.feature-num strong {
  color: var(--ink);
  font-weight: 700;
}

.feature-heading {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.feature-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  max-width: 480px;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.feature-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.feature-cta svg { transition: transform 0.2s var(--ease); }
.feature-cta:hover svg { transform: translateX(3px); }

/* Mock browser */
.mock-browser {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease);
  position: relative;
}
.feature-slide:hover .mock-browser { transform: translateY(-6px); }
.mock-browser-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: var(--r-full);
}
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #febc2e; }
.mock-dot.g { background: #28c840; }
.mock-url {
  flex: 1;
  text-align: center;
  background: white;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  border: 1px solid var(--line);
}
.mock-body {
  padding: 24px;
  min-height: 320px;
  background: white;
}

/* ====================================================
   APP GALLERY (5 cards mosaic)
   ==================================================== */
.gallery-section {
  padding: 80px 0 120px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
  cursor: pointer;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }

.gallery-content {
  padding: 24px;
  text-align: center;
}
.gallery-emoji-bg {
  font-size: 64px;
  filter: grayscale(0.3);
  opacity: 0.85;
}
.gallery-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  margin-top: 12px;
}

/* Different colored backgrounds for variety */
.gallery-item:nth-child(1) { background: linear-gradient(135deg, #fde4d3, #fbceae); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #d4e4fc, #b8d2f7); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #d4f0e0, #a8dcbe); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #e8d8f7, #ccb1ec); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #fff4d3, #ffe39e); }

/* ====================================================
   PRICING SECTION
   ==================================================== */
.pricing-section {
  padding: 120px 0;
  text-align: center;
}
.pricing-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
html[lang="ko"] .pricing-title,
html[lang="ja"] .pricing-title {
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.025em;
}
.pricing-sub {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 56px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.plan:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.plan.featured {
  background: linear-gradient(180deg, #fff4eb 0%, white 100%);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.plan.current {
  background: linear-gradient(180deg, #f0fdf4 0%, white 100%);
  border: 2px solid #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
  position: relative;
}
.plan.current.featured {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff4eb 100%);
  border: 2px solid #16a34a;
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan-price .currency {
  font-size: 22px;
  vertical-align: super;
  font-weight: 500;
  color: var(--ink-3);
}
.plan-period {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 28px;
}
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: keep-all;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="none"><path d="M3 9l4 4 8-8" stroke="%2316a34a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}

/* ====================================================
   FAQ
   ==================================================== */
.faq-section {
  padding: 120px 0;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}
.faq-title {
  text-align: center;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 56px;
}
html[lang="ko"] .faq-title,
html[lang="ja"] .faq-title {
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: -0.025em;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
  font-family: inherit;
}
.faq-q:hover { padding-left: 14px; }
.faq-q-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.3s var(--ease);
}
.faq-q-icon svg {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q-icon { background: var(--ink); border-color: var(--ink); color: white; }
.faq-item.open .faq-q-icon svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: keep-all;
}
.faq-item.open .faq-a {
  max-height: 400px;
}
.faq-a-inner { padding: 0 8px 24px; }

/* ====================================================
   CTA — final
   ==================================================== */
.cta-section {
  padding: 120px 24px;
  text-align: center;
}
.cta-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
html[lang="ko"] .cta-title,
html[lang="ja"] .cta-title {
  font-size: clamp(36px, 5.5vw, 76px);
  letter-spacing: -0.035em;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  padding: 16px 32px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease-spring);
}
.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.cta-button svg { transition: transform 0.3s var(--ease); }
.cta-button:hover svg { transform: translateX(4px); }

/* ====================================================
   AUTH
   ==================================================== */
.auth-page {
  padding: 120px 24px 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  width: 100%;
  animation: fadeUp 0.6s var(--ease-out);
}
.auth-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.auth-sub {
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 32px;
}

.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.field-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.field-input::placeholder { color: var(--ink-4); }
.field-help { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.field-checkbox input { margin-top: 2px; cursor: pointer; }
.field-checkbox label { cursor: pointer; }

.auth-bottom {
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 24px;
}
.auth-bottom a { color: var(--ink); font-weight: 500; }
.auth-bottom a:hover { text-decoration: underline; }

/* ====================================================
   DASHBOARD
   ==================================================== */
.dash { padding: 88px 0 96px; }
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-greet {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dash-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: all 0.25s var(--ease);
}
.stat-card:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.stat-meta { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-sm); }
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.panel-body { padding: 4px 0; }
.panel-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  padding: 12px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.005em;
}
.table th {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s var(--ease); }
.table tbody tr:hover td { background: var(--bg-soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-active, .badge-ready    { background: var(--green-soft); color: #14532d; }
.badge-pending, .badge-queued  { background: var(--amber-soft); color: #78350f; }
.badge-cancelled, .badge-expired, .badge-suspended, .badge-failed { background: var(--red-soft); color: #7f1d1d; }
.badge-building { background: var(--info-soft); color: #1e3a8a; }

/* ====================================================
   CHECKOUT
   ==================================================== */
.checkout-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.summary-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 18px;
  padding-top: 18px;
}

/* ====================================================
   SITES
   ==================================================== */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.site-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: all 0.25s var(--ease);
}
.site-card:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.site-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.site-prompt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
.site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.site-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.site-actions .btn { font-size: 12px; padding: 7px 12px; }

/* ====================================================
   ADMIN
   ==================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
body.admin { background: var(--bg); }
body.admin::after { display: none; }

.admin-sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.admin-nav { display: flex; flex-direction: column; padding: 0 12px; }
.admin-nav-item {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.admin-nav-item.active { background: var(--ink); color: white; }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-content { padding: 32px; max-width: calc(100vw - 240px); overflow-x: auto; }

/* MAP */
.map-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.map-svg {
  width: 100%;
  height: 480px;
  display: block;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.map-overlay {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.map-overlay strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 2px;
}
.map-dot { fill: #ef4444; opacity: 0.85; cursor: pointer; }
.map-dot-pulse {
  fill: #ef4444;
  opacity: 0.4;
  transform-origin: center;
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}
.map-tooltip {
  position: absolute;
  background: var(--ink);
  color: white;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 14px; height: 14px; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  padding: 80px 0 40px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand-col { max-width: 280px; }
.footer-brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.footer-brand .logo-mark { width: 28px; height: 28px; }
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: white;
  transition: all 0.2s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-label {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-link:hover { color: white; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ====================================================
   SCROLL REVEAL
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ★ 안전망: JS가 로드되기 전에도, 또는 IntersectionObserver가 실패해도
   요소가 영원히 숨어있지 않도록 1.5초 후 강제 표시 */
.reveal {
  animation: forceReveal 0s ease 1.5s forwards;
}
@keyframes forceReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* JS가 즉시 visible 클래스 추가했으면 애니메이션 우회 */
.reveal.visible {
  animation: none;
}

/* prefers-reduced-motion 지원 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

.reveal.force-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ====================================================
   RESPONSIVE - 종합 정리
   ==================================================== */

/* ─── Tablet & Small Desktop (≤1024px) ─── */
@media (max-width: 1024px) {
  .feature-slide {
    grid-template-columns: 1fr !important;
    gap: 40px;
    padding: 60px 0;
  }
  .feature-slide.reverse { grid-template-columns: 1fr !important; }
  .feature-slide.reverse .feature-text { order: 1; }
  .feature-slide.reverse .feature-visual { order: 2; }

  /* Visual 카드는 컨테이너 안에 들어가도록 */
  .feature-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .feature-visual > * {
    max-width: 100%;
  }
  .mock-browser, .mock-card, .mock-window {
    max-width: 100%;
    width: 100%;
  }

  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 2; }
  .gallery-item:nth-child(3) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 0 12px; gap: 4px; }
  .admin-nav-item { white-space: nowrap; }
  .admin-content { max-width: 100%; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; max-width: 100%; }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  /* 가로 스크롤 절대 방지 */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100vw; }

  .container { padding: 0 16px; }

  /* ─── 네비바 ─── */
  .nav-wrap {
    top: 10px;
    padding: 0 10px;
    margin-bottom: -48px;
  }
  .nav {
    padding: 4px 4px 4px 10px;
    gap: 4px;
    min-height: 44px;
  }
  .logo {
    font-size: 13px;
    gap: 6px;
    flex-shrink: 0;
  }
  .logo-mark { width: 22px; height: 22px; flex-shrink: 0; }
  .logo span:not(.logo-mark) {
    font-size: 12px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .nav-links { display: none !important; }
  .nav-actions { gap: 4px; flex-shrink: 0; }
  .nav-actions .btn-ghost { display: none !important; }
  .nav-actions .btn-primary {
    padding: 7px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .mobile-toggle {
    display: flex !important;
    width: 44px; height: 44px;
    flex-shrink: 0;
    /* iOS Safari touch 최적화 */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.15) !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-appearance: none !important;
    z-index: 100 !important;
    position: relative !important;
  }
  .mobile-toggle:active {
    transform: scale(0.95);
  }
  .mobile-toggle .mt-bar {
    pointer-events: none !important;  /* span은 클릭 안 받음 — 부모 button만 받음 */
  }
  .lang-switch {
    padding: 1px;
    margin-right: 2px;
  }
  .lang-switch a {
    padding: 4px 6px;
    font-size: 10px;
  }

  /* ─── 히어로 ─── */
  .hero {
    padding: 90px 0 50px;
    min-height: auto;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }
  .hero-title {
    font-size: clamp(32px, 8.5vw, 48px) !important;
    line-height: 1.05 !important;
    word-break: keep-all;
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  /* 모바일에서 한국어/일본어는 더 작게 */
  html[lang="ko"] .hero-title,
  html[lang="ja"] .hero-title {
    font-size: clamp(26px, 7.2vw, 38px) !important;
    line-height: 1.18 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .hero-sub {
    font-size: 15px !important;
    line-height: 1.55;
    margin-bottom: 28px;
    word-break: keep-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* ─── 프롬프트 박스 ─── */
  .prompt-wrap { padding: 0 4px; }
  .prompt-box { width: 100%; }
  .prompt-textarea {
    font-size: 16px !important;  /* iOS zoom 방지 */
    padding: 14px 14px 6px;
    min-height: 80px;
  }
  .prompt-actions {
    padding: 6px 8px 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .prompt-meta {
    font-size: 11px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .prompt-meta-pill {
    padding: 3px 8px;
    font-size: 11px;
  }
  .btn-generate {
    width: 36px; height: 36px;
    flex-shrink: 0;
  }

  /* ─── chips ─── */
  .examples-eyebrow { margin-top: 28px; font-size: 12px; }
  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* ─── Feature 섹션 (스크린샷의 문제!) ─── */
  .features-section,
  .gallery-section,
  .pricing-section,
  .faq-section,
  .cta-section { padding: 50px 0; }

  .features-title {
    margin-bottom: 32px;
    font-size: 28px !important;
    text-align: center;
    word-break: keep-all;
  }

  .feature-slide {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 40px 0;
  }

  .feature-text { width: 100%; }
  .feature-num {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .feature-heading {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.15 !important;
    word-break: keep-all;
    margin-bottom: 14px;
  }
  .feature-body {
    font-size: 15px !important;
    line-height: 1.65;
    word-break: keep-all;
  }
  .feature-cta {
    font-size: 14px;
    padding: 10px 18px;
  }

  /* ─── Visual / Mock 카드 (스크린샷의 잘림 문제) ─── */
  .feature-visual {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    transform: none !important;
  }
  .feature-visual > *,
  .mock-browser,
  .mock-card,
  .mock-window,
  .feature-visual img {
    max-width: 100% !important;
    width: 100% !important;
    transform: none !important;
    margin: 0 !important;
  }
  .mock-browser {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    border-radius: 12px;
  }

  /* ─── 갤러리 ─── */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 10px;
  }
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; }

  /* ─── 인증 페이지 ─── */
  .auth-card { padding: 28px 20px; }
  .auth-page { padding: 90px 16px 50px; }

  /* ─── 대시보드 ─── */
  .dash-greet { font-size: 24px; }
  .stat-grid { gap: 8px; grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 20px; }
  .dash-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px 12px; font-size: 13px; }

  /* ─── 푸터 ─── */
  .footer { padding: 48px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* ─── 챗봇 위젯 (스크린샷에서 본문 가림) ─── */
  .chatbot-toggle,
  #chatbot-toggle,
  .kb-chat-toggle {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  /* ─── 카운터 인디케이터 (스크린샷의 02/04 잘림) ─── */
  .feature-counter,
  .feature-num strong {
    white-space: nowrap;
  }

  /* ─── 버튼 ─── */
  .btn { font-size: 14px; padding: 10px 18px; }
  .btn-lg { font-size: 15px; padding: 12px 22px; }
  .btn-block { width: 100%; }

  /* ─── 가독성 ─── */
  h1, h2, h3, h4 { word-break: keep-all; }
  p { word-break: keep-all; }
}

/* ─── Small Mobile (≤480px) ─── */
@media (max-width: 480px) {
  .nav-actions .btn-primary {
    padding: 6px 10px;
    font-size: 11px;
  }
  .hero-title { font-size: clamp(28px, 9vw, 40px) !important; }
  .feature-heading { font-size: clamp(22px, 7vw, 28px) !important; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── 가로모드 안전영역 ─── */
@supports (padding: env(safe-area-inset-left)) {
  .container, .nav-wrap, .footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
