/* =========================================================================
   NK AI Studio — 공개 랜딩 페이지 전용 스타일 (.lp- 네임스페이스로 격리)
   앱의 다크 디자인 토큰(오렌지×틸×블루)을 그대로 계승해 정합성 유지.
   외부 무거운 라이브러리 0 · 순수 CSS 모션 · prefers-reduced-motion 존중.
   ========================================================================= */

:root {
  --lp-orange: #ff7a00;
  --lp-teal: #0bbfa5;
  --lp-blue: #5c7cff;
  --lp-bg: #0b1020;
  --lp-bg-2: #0a0f1f;
  --lp-panel: #0e1730;
  --lp-panel-2: #111d3a;
  --lp-border: #1b2845;
  --lp-border-soft: rgba(255, 255, 255, 0.08);
  --lp-text: #eef2fb;
  --lp-text-2: #b9c6e0;
  --lp-muted: #8aa0c3;
  --lp-radius: 18px;
  --lp-radius-sm: 12px;
  --lp-max: 1200px;
  --lp-grad: linear-gradient(120deg, #ff7a00 0%, #ff5d7a 38%, #5c7cff 100%);
  --lp-grad-soft: linear-gradient(120deg, rgba(255, 122, 0, 0.14), rgba(92, 124, 255, 0.14));
  --lp-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-font: 'Space Grotesk', system-ui, -apple-system, 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.lp {
  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.lp a { color: inherit; text-decoration: none; }
.lp img { max-width: 100%; display: block; }

/* 배경 글로우 레이어 */
.lp-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 480px at 12% -6%, rgba(255, 122, 0, 0.16), transparent 60%),
    radial-gradient(720px 520px at 92% 4%, rgba(92, 124, 255, 0.18), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(11, 191, 165, 0.12), transparent 60%),
    var(--lp-bg);
}
.lp-aura::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.lp-wrap { width: min(var(--lp-max), 100% - 48px); margin-inline: auto; }

/* ---------- 공통 타이포 ---------- */
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-teal);
  padding: 6px 12px;
  border: 1px solid var(--lp-border-soft);
  border-radius: 999px;
  background: rgba(11, 191, 165, 0.06);
}
.lp-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.lp-section-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--lp-text-2);
  max-width: 620px;
}
.lp-grad-text {
  background: var(--lp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { padding: clamp(72px, 11vw, 132px) 0; }
.lp-head { margin-bottom: clamp(36px, 5vw, 56px); }
.lp-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- 헤더 ---------- */
.lp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s var(--lp-ease), border-color 0.3s var(--lp-ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.lp-header.scrolled {
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--lp-border);
}
.lp-nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.lp-brand img { width: 30px; height: 30px; border-radius: 8px; }
.lp-brand b { font-size: 17px; letter-spacing: 0.01em; }
.lp-nav-links { display: flex; gap: 28px; }
.lp-nav-links a {
  font-size: 14.5px;
  color: var(--lp-text-2);
  font-weight: 500;
  transition: color 0.2s;
}
.lp-nav-links a:hover { color: var(--lp-text); }
.lp-nav-cta { display: inline-flex; align-items: center; gap: 10px; }
.lp-lang {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--lp-text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lp-border-soft);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 52px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lp-lang:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: var(--lp-text); }

/* ---------- 버튼 ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--lp-ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.lp-btn-primary {
  color: #1a0c00;
  background: var(--lp-grad);
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.28);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 122, 0, 0.38); }
.lp-btn-ghost {
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--lp-border-soft);
}
.lp-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.lp-btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.lp-hero { padding-top: clamp(128px, 17vw, 184px); position: relative; }
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lp-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 20px 0 22px;
}
.lp-hero p.lp-lead {
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--lp-text-2);
  max-width: 540px;
  margin: 0 0 32px;
}
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.lp-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--lp-muted); font-size: 13.5px; }
.lp-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-teal); box-shadow: 0 0 10px var(--lp-teal); }

/* Hero 비주얼: 제품 목업 카드 */
.lp-hero-visual { position: relative; }
.lp-mock {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, var(--lp-panel-2), var(--lp-panel));
  box-shadow: var(--lp-shadow);
  overflow: hidden;
}
.lp-mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-border);
  background: rgba(255, 255, 255, 0.02);
}
.lp-mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a5e; display: inline-block; }
.lp-mock-bar i:nth-child(1) { background: #ff5f57; }
.lp-mock-bar i:nth-child(2) { background: #febc2e; }
.lp-mock-bar i:nth-child(3) { background: #28c840; }
.lp-mock-bar small { margin-left: 10px; color: var(--lp-muted); font-size: 12px; }
.lp-mock-body { padding: 18px; display: grid; gap: 14px; }
.lp-mock-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.lp-mock-thumb {
  height: 64px; border-radius: 12px;
  background: var(--lp-grad-soft);
  border: 1px solid var(--lp-border-soft);
  display: grid; place-items: center;
}
.lp-mock-thumb svg { width: 30px; height: 30px; opacity: 0.92; }
.lp-mock-lines { display: grid; gap: 8px; }
.lp-mock-lines span { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); display: block; }
.lp-mock-lines span:nth-child(2) { width: 72%; }
.lp-mock-lines span.accent { background: linear-gradient(90deg, var(--lp-orange), transparent); width: 46%; }
.lp-mock-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--lp-border); flex-wrap: wrap; }
.lp-chip {
  font-size: 12px; font-weight: 600; color: var(--lp-text-2);
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--lp-border-soft); background: rgba(255, 255, 255, 0.03);
}
.lp-float {
  position: absolute;
  border-radius: 14px;
  border: 1px solid var(--lp-border);
  background: rgba(14, 23, 48, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--lp-shadow);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  animation: lp-floaty 5.5s ease-in-out infinite;
}
.lp-float svg { width: 20px; height: 20px; }
.lp-float.one { top: -22px; right: -10px; color: var(--lp-teal); }
.lp-float.two { bottom: -20px; left: -16px; color: var(--lp-orange); animation-delay: -2.4s; }
@keyframes lp-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } }

/* ---------- 파이프라인 ---------- */
.lp-pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.lp-pipe-step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, var(--lp-panel-2), var(--lp-panel));
}
.lp-pipe-step .lp-step-no {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--lp-orange); margin-bottom: 14px; display: block;
}
.lp-pipe-step h3 { margin: 0 0 8px; font-size: 19px; }
.lp-pipe-step p { margin: 0 0 14px; color: var(--lp-muted); font-size: 14px; }
.lp-pipe-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-pipe-arrow {
  position: absolute; top: 50%; right: -13px; transform: translateY(-50%);
  width: 26px; height: 26px; z-index: 2;
  display: grid; place-items: center;
  color: var(--lp-blue);
}
.lp-pipe-step:last-child .lp-pipe-arrow { display: none; }

/* ---------- 기능 그리드 ---------- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feature {
  padding: 28px 24px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, rgba(17, 29, 58, 0.7), rgba(14, 23, 48, 0.7));
  transition: transform 0.25s var(--lp-ease), border-color 0.25s, background 0.25s;
}
.lp-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 124, 255, 0.4);
  background: linear-gradient(180deg, rgba(20, 33, 66, 0.9), rgba(15, 25, 52, 0.9));
}
.lp-feature-ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--lp-grad-soft); border: 1px solid var(--lp-border-soft);
}
.lp-feature-ico img { width: 34px; height: 34px; object-fit: contain; }
.lp-feature h3 { margin: 0 0 8px; font-size: 19px; }
.lp-feature p { margin: 0 0 14px; color: var(--lp-muted); font-size: 14.5px; }
.lp-feature .lp-models { display: flex; flex-wrap: wrap; gap: 6px; }

.lp-tag {
  font-size: 11.5px; font-weight: 600; color: var(--lp-text-2);
  padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--lp-border-soft); background: rgba(255, 255, 255, 0.03);
}

/* ---------- 작동 방식 ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: lp-step; }
.lp-step {
  padding: 28px 22px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: rgba(14, 23, 48, 0.55);
}
.lp-step::before {
  counter-increment: lp-step;
  content: counter(lp-step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-weight: 700; font-size: 18px; color: #1a0c00;
  background: var(--lp-grad);
  margin-bottom: 18px;
}
.lp-step h3 { margin: 0 0 8px; font-size: 18px; }
.lp-step p { margin: 0; color: var(--lp-muted); font-size: 14.5px; }

/* ---------- IP 쇼케이스 ---------- */
.lp-ip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-ip-card {
  text-align: center;
  padding: 30px 20px 26px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, var(--lp-panel-2), var(--lp-panel));
  transition: transform 0.25s var(--lp-ease), border-color 0.25s;
}
.lp-ip-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 0, 0.4); }
.lp-ip-avatar {
  width: 96px; height: 96px; margin: 0 auto 16px;
  border-radius: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--lp-border-soft);
}
.lp-ip-avatar svg { width: 64px; height: 64px; }
.lp-ip-card h3 { margin: 0 0 4px; font-size: 19px; }
.lp-ip-role { font-size: 12.5px; color: var(--lp-teal); font-weight: 600; margin: 0 0 10px; }
.lp-ip-card p { margin: 0; color: var(--lp-muted); font-size: 13.5px; }

/* 확정 필요 마커 */
.lp-todo {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: #ffd27a; background: rgba(255, 180, 0, 0.1);
  border: 1px dashed rgba(255, 180, 0, 0.45);
  padding: 3px 8px; border-radius: 6px;
}

/* ---------- SNS 밴드 ---------- */
.lp-sns-band {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.06), rgba(92, 124, 255, 0.06));
  padding: clamp(34px, 5vw, 52px);
  text-align: center;
}
.lp-sns-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 28px;
}
.lp-sns-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--lp-border-soft); background: rgba(255, 255, 255, 0.04);
  font-weight: 600; font-size: 14.5px;
  transition: transform 0.2s var(--lp-ease), background 0.2s;
}
.lp-sns-pill:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); }
.lp-sns-pill svg { width: 22px; height: 22px; }

/* ---------- CTA 밴드 ---------- */
.lp-cta {
  position: relative;
  border-radius: 26px;
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 0, 0.32);
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(255, 122, 0, 0.22), transparent 70%),
    linear-gradient(180deg, var(--lp-panel-2), var(--lp-panel));
}
.lp-cta h2 { font-size: clamp(28px, 4.4vw, 46px); margin: 0 0 16px; letter-spacing: -0.02em; }
.lp-cta p { color: var(--lp-text-2); max-width: 560px; margin: 0 auto 30px; font-size: clamp(15px, 1.7vw, 18px); }

/* ---------- 푸터 ---------- */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  padding: 56px 0 40px;
  background: var(--lp-bg-2);
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 38px;
}
.lp-footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lp-footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.lp-footer-brand b { font-size: 16px; }
.lp-footer p { color: var(--lp-muted); font-size: 13.5px; margin: 6px 0; max-width: 340px; }
.lp-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lp-text-2); margin: 0 0 14px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer ul a { color: var(--lp-muted); font-size: 14px; transition: color 0.2s; }
.lp-footer ul a:hover { color: var(--lp-text); }
.lp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--lp-border); padding-top: 22px;
  color: var(--lp-muted); font-size: 12.5px;
}
.lp-footer-bottom .links { display: inline-flex; gap: 16px; }
.lp-footer-bottom a:hover { color: var(--lp-text); }

/* ---------- 스크롤 리빌 ---------- */
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--lp-ease), transform 0.7s var(--lp-ease); }
.lp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-visual { order: -1; max-width: 460px; }
  .lp-pipe { grid-template-columns: repeat(2, 1fr); }
  .lp-pipe-arrow { display: none; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-ip { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-nav-links { display: none; }
}
@media (max-width: 560px) {
  .lp-wrap { width: min(var(--lp-max), 100% - 32px); }
  .lp-features, .lp-steps, .lp-ip, .lp-pipe { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-hero-actions .lp-btn { flex: 1 1 auto; }
  .lp-footer-bottom { flex-direction: column; align-items: flex-start; }
}
