/* =============================================================================
   landing.css — 루트 도메인 랜딩 페이지 전용 스타일
   =============================================================================
   포털(styles.css)과 같은 디자인 토큰에서 출발하지만, 마케팅 페이지는 앱 크롬과
   별도로 진화하므로 의도적으로 독립 파일로 유지한다. (토큰 원본: styles.css :root)
   ============================================================================= */

:root {
  --bg-base: #f2f7f4;
  --bg-wash: #eef4fb;
  --ink-main: #17273b;
  --ink-subtle: #4f667f;
  --ink-soft: #6d8096;
  --accent-teal: #0ea58c;
  --accent-blue: #2a86f1;
  --accent-teal-rgb: 14, 165, 140;
  --accent-blue-rgb: 42, 134, 241;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-border: rgba(19, 49, 80, 0.12);
  --surface-border-strong: rgba(19, 49, 80, 0.2);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 26px 70px rgba(20, 52, 84, 0.16);
  --shadow-md: 0 12px 32px rgba(22, 52, 80, 0.12);
  --font-body: "Manrope", "Noto Sans KR", sans-serif;
  --font-display: "Noto Sans KR", "Manrope", sans-serif;
  --font-latin: "Space Grotesk", "Noto Sans KR", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-main);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% 16%, rgba(var(--accent-teal-rgb), 0.17), transparent 40%),
    radial-gradient(circle at 86% 9%, rgba(var(--accent-blue-rgb), 0.16), transparent 34%),
    linear-gradient(160deg, var(--bg-base), var(--bg-wash));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 123, 155, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 123, 155, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 75%);
  opacity: 0.45;
}

a:focus-visible,
.cta-btn:focus-visible {
  outline: 3px solid rgba(var(--accent-blue-rgb), 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── 배경 오브 (포털과 동일한 분위기) ── */

.mesh-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.orb-a {
  width: 340px;
  height: 340px;
  left: -110px;
  top: 220px;
  background: radial-gradient(circle at 35% 35%, rgba(var(--accent-teal-rgb), 0.42), transparent 68%);
  animation: drift-a 14s ease-in-out infinite alternate;
}

.orb-b {
  width: 280px;
  height: 280px;
  right: 8%;
  top: 84px;
  background: radial-gradient(circle at 50% 40%, rgba(var(--accent-blue-rgb), 0.34), transparent 70%);
  animation: drift-b 12s ease-in-out infinite alternate;
}

.orb-c {
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: -40px;
  background: radial-gradient(circle at 40% 50%, rgba(var(--accent-teal-rgb), 0.32), transparent 72%);
  animation: drift-c 16s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(40px, -30px); }
}

@keyframes drift-b {
  to { transform: translate(-30px, 36px); }
}

@keyframes drift-c {
  to { transform: translate(-36px, -24px); }
}

/* ── 레이아웃 ── */

.lp-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── GNB ── */

.lp-gnb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.lp-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
}

.lp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lp-brand-eyebrow {
  font-family: var(--font-latin);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lp-brand-text strong {
  font-family: var(--font-latin);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.lp-portal-link {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-blue-rgb), 0.28);
  background: rgba(var(--accent-blue-rgb), 0.1);
  color: #113252;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lp-portal-link:hover {
  background: rgba(var(--accent-blue-rgb), 0.18);
  border-color: rgba(var(--accent-blue-rgb), 0.34);
}

/* ── 히어로 ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 48px;
  padding: 84px 0 104px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-latin);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #0b7d6c;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.16;
  text-wrap: balance;
}

.hero h1 .grad {
  font-style: normal;
  background: linear-gradient(115deg, var(--accent-teal), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--ink-subtle);
  text-wrap: pretty;
}

.hero-sub strong {
  color: var(--ink-main);
}

.hero-cta {
  margin-top: 34px;
}

/* 페이지 로드 시퀀스: 카피가 순서대로 떠오른다 */
.hero-copy > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-copy > .eyebrow { animation-delay: 0.05s; }
.hero-copy > h1 { animation-delay: 0.12s; }
.hero-copy > .hero-sub { animation-delay: 0.2s; }
.hero-copy > .hero-cta { animation-delay: 0.28s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CTA 버튼 ── */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-teal-rgb), 0.45);
  background: linear-gradient(120deg, rgba(var(--accent-teal-rgb), 0.92), rgba(56, 186, 208, 0.8));
  color: #04352c;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(var(--accent-teal-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-btn svg {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, rgba(var(--accent-teal-rgb), 0.96), rgba(var(--accent-blue-rgb), 0.78));
  box-shadow: 0 18px 36px rgba(var(--accent-teal-rgb), 0.32);
}

.cta-btn:hover svg {
  transform: translateX(3px);
}

/* ── 시그니처: 배포 로그 카드 ── */

.deploy-card {
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both;
}

.deploy-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
}

.deploy-tabs .tab {
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.deploy-tabs .tab.active {
  background: rgba(var(--accent-blue-rgb), 0.12);
  color: #134578;
  font-weight: 600;
}

.deploy-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #16324e;
}

.term-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  opacity: 0;
  animation: line-in 0.4s ease forwards;
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 실제 배포처럼 리듬을 준 재생 타이밍 */
.term-line.prompt { animation-delay: 0.5s; }
.term-line.t1 { animation-delay: 1.3s; }
.term-line.t2 { animation-delay: 1.9s; }
.term-line.t3 { animation-delay: 2.8s; }
.term-line.t4 { animation-delay: 3.5s; }
.term-line.live { animation-delay: 4.2s; }

.term-line .dollar {
  color: var(--accent-teal);
  font-weight: 500;
}

.term-line .caret {
  width: 8px;
  height: 15px;
  align-self: center;
  background: rgba(var(--accent-blue-rgb), 0.65);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.term-line .check {
  color: var(--accent-teal);
  font-weight: 500;
}

.term-line .leader {
  flex: 1;
  border-bottom: 1px dashed rgba(19, 49, 80, 0.18);
  transform: translateY(-4px);
}

.term-line .time {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.term-line.live {
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse 2.2s ease-out 4.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-teal-rgb), 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(var(--accent-teal-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-teal-rgb), 0); }
}

.live-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0b7d6c;
}

.live-url {
  color: var(--accent-blue);
  font-weight: 500;
  word-break: break-all;
}

/* ── 파이프라인 (연결 → 빌드 → 운영) ── */

.pipeline {
  padding-bottom: 110px;
}

.pipe-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pipe-card {
  padding: 26px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pipe-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-lg);
}

/* 배포 순서를 드러내는 노드 + 레일: 마지막 단계는 레일이 없다 */
.pipe-node {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0b7d6c;
}

.pipe-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(var(--accent-teal-rgb), 0.14);
}

.pipe-rail {
  flex: 1;
  height: 0;
  border-top: 1px dashed rgba(var(--accent-teal-rgb), 0.45);
  margin-right: -26px;
}

.pipe-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #0b7d6c;
  background: rgba(var(--accent-teal-rgb), 0.12);
  border: 1px solid rgba(var(--accent-teal-rgb), 0.24);
}

.pipe-icon svg {
  width: 23px;
  height: 23px;
}

.pipe-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pipe-card p:not(.pipe-node) {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--ink-subtle);
  text-wrap: pretty;
}

.pipe-card p strong {
  color: var(--ink-main);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.stack-chips li {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-blue-rgb), 0.24);
  background: rgba(var(--accent-blue-rgb), 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #134578;
}

/* ── 마무리 CTA ── */

.closing {
  padding-bottom: 96px;
}

.closing-card {
  position: relative;
  overflow: hidden;
  padding: 64px 32px 68px;
  text-align: center;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.closing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--accent-teal-rgb), 0.14), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(var(--accent-blue-rgb), 0.13), transparent 46%);
}

.closing-card > * {
  position: relative;
}

.closing-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.closing-card p {
  margin: 14px 0 30px;
  font-size: 1.02rem;
  color: var(--ink-subtle);
}

/* ── 푸터 ── */

.lp-footer {
  padding: 0 0 34px;
  text-align: center;
}

.lp-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ── 반응형 ── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 56px 0 84px;
  }

  .deploy-card {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .pipe-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pipe-rail {
    display: none;
  }

  .pipeline {
    padding-bottom: 84px;
  }
}

@media (max-width: 560px) {
  .lp-container {
    padding: 0 18px;
  }

  .hero {
    padding: 44px 0 68px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .deploy-body {
    font-size: 0.78rem;
    padding: 16px 16px 20px;
  }

  .closing-card {
    padding: 48px 22px 52px;
  }
}

/* ── 모션 최소화 설정 존중 ── */

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

  .orb,
  .hero-copy > *,
  .deploy-card,
  .term-line,
  .live-dot,
  .term-line .caret {
    animation: none;
  }

  .term-line {
    opacity: 1;
  }
}
