/*
  랜딩 페이지 (공개)
  - Studio_bada 디자인 시스템 토큰 재사용
  - 메시지: "노드/엣지" 용어 배제, 메모·연결·한눈에
*/

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
}

.landing-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.landing-logo {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.landing-nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== 언어 토글 (EN / KO) ===== */
.landing-lang {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-lang-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0.1rem;
  transition: color 0.15s ease;
}

.landing-lang-link:hover {
  color: var(--foreground);
}

.landing-lang-link.is-active {
  color: var(--foreground);
}

.landing-lang-sep {
  color: var(--border);
}

/* ===== 히어로 ===== */
.landing-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.landing-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-title {
  font-size: 3.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.landing-subtitle {
  margin: 1.5rem 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.landing-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===== 데스크탑 앱 다운로드 (소프트웨어 랜딩 스타일) ===== */
.landing-download {
  margin-top: 2rem;
}

.landing-download-label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.landing-download-btns {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--foreground);
  border-radius: 0.9rem;
  background-color: var(--foreground);
  color: var(--background);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dl-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.dl-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.dl-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.dl-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.dl-meta {
  font-size: 0.72rem;
  opacity: 0.68;
  margin-top: 1px;
}

/* ===== 미니 화이트보드 미리보기 ===== */
.landing-preview {
  display: flex;
  justify-content: center;
}

.lp-board {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 7 / 5;
  background-color: var(--card);
  border: 2px solid #000;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.lp-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-lines path {
  fill: none;
  stroke: #18181b;
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
}

.lp-card {
  position: absolute;
  width: 132px;
  padding: 12px 14px;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.lp-card p {
  margin: 0;
}

.lp-emoji {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
}

.lp-card-1 {
  top: 14%;
  left: 8%;
  transform: rotate(-3deg);
}

.lp-card-2 {
  top: 48%;
  left: 46%;
  transform: rotate(2deg);
}

.lp-card-3 {
  top: 64%;
  left: 12%;
  transform: rotate(-1deg);
}

.lp-card-sticky {
  background-color: #c8ff00;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

/* ===== 혜택 3블록 ===== */
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.landing-feature {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
}

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: #c8ff00;
  color: #18181b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.landing-feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.landing-feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== What's new (추가 기능 소개) ===== */
.landing-whatsnew {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.lwn-head {
  text-align: center;
  margin-bottom: 2rem;
}

.lwn-title {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.lwn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.lwn-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.lwn-card h3 {
  font-size: 1.1875rem;
  margin: 1.25rem 0 0.5rem;
}

.lwn-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 공통 목업 보드 (점선 그리드 + 검정 보더) */
.lwn-mock {
  position: relative;
  height: 200px;
  border: 2px solid #000;
  border-radius: 0.875rem;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}

/* ---- 인덱스 탭 목업 ---- */
.lwn-node {
  position: absolute;
  top: 30px;
  left: 28px;
  width: 188px;
  padding: 14px 14px 12px;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.lwn-index {
  position: absolute;
  top: 14px;
  right: -10px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #18181b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.lwn-node-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.lwn-node-emoji {
  font-size: 1rem;
}

.lwn-node-title {
  font-size: 0.875rem;
  font-weight: 700;
}

.lwn-node-text {
  margin: 0 0 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #52525b;
}

.lwn-node-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lwn-palette {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.lwn-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* ---- 돋보기 목업 ---- */
.lwn-tiny {
  position: absolute;
  padding: 7px 10px;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #18181b;
}

.lwn-tiny-1 {
  top: 26px;
  left: 30px;
  transform: rotate(-3deg);
}

.lwn-tiny-2 {
  top: 92px;
  left: 120px;
  transform: rotate(2deg);
}

.lwn-tiny-3 {
  top: 150px;
  left: 44px;
  transform: rotate(-1deg);
}

/* 알약형 유리 루페 (캔버스 루페와 동일 톤) */
.lwn-loupe {
  position: absolute;
  top: 70px;
  left: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 70px;
  border-radius: 999px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.12) 55%, rgba(255, 255, 255, 0) 70%),
    rgba(244, 244, 245, 0.35);
  backdrop-filter: blur(0.5px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -6px 14px rgba(0, 0, 0, 0.06);
}

.lwn-loupe::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.lwn-loupe-text {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #18181b;
}

/* ===== 푸터 ===== */
.landing-footer {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.landing-footer p {
  margin: 0;
}

/* ===== 반응형 ===== */
@media (max-width: 860px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }

  .landing-title {
    font-size: 2.5rem;
  }

  .landing-cta {
    justify-content: center;
  }

  .landing-preview {
    order: -1;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .lwn-grid {
    grid-template-columns: 1fr;
  }

  .lwn-title {
    font-size: 1.625rem;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    padding: 1rem 1.25rem;
  }

  .landing-hero {
    padding: 1.5rem 1.25rem 3rem;
  }

  .landing-title {
    font-size: 2.1rem;
  }
}
