/*
 * [랜딩페이지 스타일 2026-07-14 / A1]
 * #landing-container 전용. 앱 본체 스타일과 충돌하지 않도록 .lp- 접두사 사용.
 */

/* 랜딩 컨테이너는 화면 전체를 덮는 오버레이.
 * 아래에는 app.js 가 그린 로그인 폼(#auth-container)이 그대로 살아있으며(E2E 계약 유지),
 * 오버레이를 걷어내면(hidden) 곧바로 드러난다. */
#landing-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* .hidden(=Tailwind display:none) 이 position:fixed 를 확실히 이기도록 명시 */
#landing-container.hidden { display: none !important; }
/* 비어 있을 때(토큰 보유로 미렌더) 오버레이가 클릭을 가로채지 않도록 */
#landing-container:empty { display: none !important; }

.lp-root {
  --lp-bg: #0b1020;
  --lp-bg-alt: #111832;
  --lp-fg: #e6e9f2;
  --lp-muted: #9aa3b8;
  --lp-accent: #7b68ee;
  --lp-accent-2: #5b8def;
  --lp-critical: #ef4444;
  --lp-card: #161f3d;
  --lp-border: #24304f;
  background: var(--lp-bg);
  color: var(--lp-fg);
  font-family: 'Pretendard', 'Inter', sans-serif;
  min-height: 100vh;
}

.lp-root a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.lp-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.lp-brand i { color: var(--lp-accent); }
.lp-nav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.lp-nav-links a { color: var(--lp-muted); font-size: 14px; }
.lp-nav-links a:hover { color: var(--lp-fg); }
.lp-nav-cta { margin-left: auto; }

/* ── Buttons ── */
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
}
.lp-btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.lp-btn-primary { background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2)); color: #fff; }
.lp-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lp-btn-ghost { background: transparent; color: var(--lp-fg); border-color: var(--lp-border); }
.lp-btn-ghost:hover { border-color: var(--lp-accent); color: #fff; }

/* ── Hero ── */
.lp-hero { padding: 72px 24px 56px; }
.lp-hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.lp-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--lp-accent); background: rgba(123,104,238,.12);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lp-h1 { font-size: 44px; line-height: 1.18; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.02em; }
.lp-sub { font-size: 17px; line-height: 1.6; color: var(--lp-muted); margin: 0 0 28px; max-width: 540px; }
.lp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-center { justify-content: center; }
.lp-microcopy { margin-top: 16px; font-size: 13px; color: var(--lp-muted); }
.lp-microcopy i { color: #34d399; margin-right: 4px; }

/* ── Hero/Demo mockups ── */
.lp-hero-visual, .lp-demo-visual { display: flex; justify-content: center; }
.lp-mock {
  width: 100%; max-width: 460px; background: var(--lp-card);
  border: 1px solid var(--lp-border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.lp-mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--lp-border); background: #0f1732; }
.lp-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #33406a; }
.lp-mock-body { padding: 20px 18px; }
.lp-gantt-row { position: relative; height: 26px; margin-bottom: 12px; display: flex; align-items: center; }
.lp-gantt-label { position: absolute; left: 0; width: 64px; font-size: 12px; color: var(--lp-muted); }
.lp-gantt-bar { position: absolute; left: 70px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--lp-accent-2), var(--lp-accent)); }
.lp-gantt-bar.lp-critical { background: linear-gradient(90deg, #f87171, var(--lp-critical)); }
.lp-mock-legend { margin-top: 6px; font-size: 12px; color: var(--lp-muted); display: flex; align-items: center; gap: 6px; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lp-dot.lp-critical { background: var(--lp-critical); }
.lp-mock-net { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lp-node { width: 42px; height: 42px; border-radius: 10px; background: #1e2a4d; border: 1px solid var(--lp-border); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.lp-node.lp-critical { border-color: var(--lp-critical); color: #fca5a5; }
.lp-arrow { color: var(--lp-muted); }

/* ── Proof ── */
.lp-proof { border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); background: var(--lp-bg-alt); }
.lp-proof-inner {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px;
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.lp-proof-item { font-size: 14px; color: var(--lp-muted); display: inline-flex; align-items: center; gap: 8px; }
.lp-proof-item i { color: var(--lp-accent); }

/* ── Sections ── */
.lp-section { padding: 72px 24px; }
.lp-section-alt { background: var(--lp-bg-alt); }
.lp-section-inner { max-width: 1160px; margin: 0 auto; }
.lp-h2 { font-size: 30px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.01em; text-align: center; }
.lp-section-sub { font-size: 16px; color: var(--lp-muted); text-align: center; margin: 0 0 40px; }

.lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-card {
  background: var(--lp-card); border: 1px solid var(--lp-border);
  border-radius: 14px; padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.lp-card:hover { border-color: var(--lp-accent); transform: translateY(-2px); }
.lp-card-sm { padding: 20px; text-align: center; }
.lp-card-icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(123,104,238,.14); color: var(--lp-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.lp-card-icon-sm { margin: 0 auto 12px; }
.lp-card-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.lp-card-desc { font-size: 14px; line-height: 1.55; color: var(--lp-muted); margin: 0; }

/* ── Demo ── */
.lp-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lp-demo .lp-h2 { text-align: left; }
.lp-checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.lp-checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--lp-fg); line-height: 1.5; }
.lp-checklist i { color: #34d399; margin-top: 3px; }

/* ── FAQ ── */
.lp-faq { max-width: 780px; }
.lp-faq-item { border-bottom: 1px solid var(--lp-border); padding: 20px 0; }
.lp-faq-q { font-size: 16px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.lp-faq-q i { color: var(--lp-accent); }
.lp-faq-a { font-size: 14px; line-height: 1.6; color: var(--lp-muted); margin: 0; padding-left: 26px; }

/* ── Closing CTA ── */
.lp-cta { padding: 80px 24px; background: linear-gradient(135deg, rgba(123,104,238,.18), rgba(91,141,239,.12)); border-top: 1px solid var(--lp-border); }
.lp-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }

/* ── Footer ── */
.lp-footer { border-top: 1px solid var(--lp-border); background: var(--lp-bg); }
.lp-footer-inner { max-width: 1160px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-brand-sm { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.lp-brand-sm i { color: var(--lp-accent); }
.lp-footer-copy { font-size: 13px; color: var(--lp-muted); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-h1 { font-size: 34px; }
  .lp-grid, .lp-grid-4 { grid-template-columns: 1fr; }
  .lp-demo { grid-template-columns: 1fr; gap: 28px; }
  .lp-nav-links { display: none; }
  .lp-section { padding: 52px 20px; }
}
