/* ============================================================
   Agent Meeting Labs — "The Living Space"
   styles.css (index.html + 법적 페이지 공용)
   ============================================================ */

/* 웹폰트 로드 전 폴백(맑은 고딕 등)이 Pretendard와 같은 폭을 차지하도록 보정.
   폴백이 19% 더 넓어 로드 직후 헤드라인 줄바꿈이 바뀌며 레이아웃이 튀는
   문제(CLS)를 제거한다. 84% = 실측 폭 비율(1329.3/1582.7). */
@font-face {
  font-family: 'Pretendard Fallback';
  src: local('Malgun Gothic'), local('Apple SD Gothic Neo');
  size-adjust: 84%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --accent: #A3E635;
  --accent-soft: rgba(163, 230, 53, 0.2);
  --font-sans: 'Pretendard Variable', 'Pretendard Fallback', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --font-display: 'Syne', Pretendard, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Pretendard Variable', 'Pretendard Fallback', Pretendard, monospace;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

body {
  margin: 0;
  background: #030305;
  color: #F2F3F7;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

a { color: #A3E635; }
a:hover { color: #C5F56E; }

/* 모바일 탭 시 회색 하이라이트 잔상 제거 */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }

::selection { background: rgba(163, 230, 53, 0.32); }

[hidden] { display: none !important; }

main {
  position: relative;
  z-index: 1;
}

/* ---------- 고정 배경 (canvas + 그린 톤 오버레이) ---------- */

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-tone {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 1200px 700px at 50% 0%, var(--accent-soft), transparent 65%);
}

/* ---------- 좌우 고정 HUD (≥1120px) ---------- */

.hud {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hud--left { left: 22px; }
.hud--right { right: 22px; }

@media (min-width: 1120px) {
  .hud { display: flex; }
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #6E7387;
  writing-mode: vertical-rl;
}

.hud-line {
  width: 1px;
  height: 54px;
  background: rgba(242, 243, 247, 0.18);
}

.hud-phase {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.hud-progress-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #6E7387;
  writing-mode: vertical-rl;
}

.hud-gauge {
  width: 1px;
  height: 120px;
  background: rgba(242, 243, 247, 0.14);
  position: relative;
  overflow: hidden;
}

.hud-gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
}

/* ---------- 고정 헤더 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(3, 3, 5, 0.85), rgba(3, 3, 5, 0));
  padding-bottom: 18px;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 72px) 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

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

.brand,
.brand:hover { color: #F2F3F7; }

.brand svg {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(12.5px, 3.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #C7CCDD;
  text-decoration: none;
  padding: 10px 10px;
  display: none;
  align-items: baseline;
  gap: 5px;
  transition: color 0.2s ease;
}

@media (min-width: 1024px) {
  .nav-link { display: inline-flex; }
}

.nav-link:hover,
.nav-link.is-active { color: var(--accent); }

.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #6E7387;
}

.btn-contact {
  display: none;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #DDE0EC;
  background: rgba(242, 243, 247, 0.05);
  border: 1px solid rgba(242, 243, 247, 0.22);
  text-decoration: none;
  padding: 10px 21px;
  margin-left: 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.btn-contact:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(242, 243, 247, 0.02);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .btn-contact { display: inline-block; }
}

.btn-menu {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 41px;
  border: 1px solid rgba(242, 243, 247, 0.22);
  border-radius: 999px;
  background: rgba(242, 243, 247, 0.05);
  color: #DDE0EC;
  cursor: pointer;
  padding: 0 17px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-menu:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-menu span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .btn-menu { display: none; }
}

/* ---------- 풀스크린 오버레이 메뉴 ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 3, 5, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 18px clamp(20px, 5vw, 72px) 44px;
  box-sizing: border-box;
  overflow-y: auto;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-brand {
  font-family: var(--font-display);
  font-size: clamp(12.5px, 3.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #F2F3F7;
}

/* X 닫기 버튼 공용 */
.x-btn {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.x-btn::before,
.x-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: 1.5px;
  background: currentColor;
}

.x-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
.x-btn::after { transform: translate(-50%, -50%) rotate(-45deg); }

.menu-close {
  width: 44px;
  height: 44px;
  color: #F2F3F7;
}

.menu-close::before,
.menu-close::after { width: 20px; }

.menu-close:hover { color: var(--accent); }

.menu-nav {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  max-width: 880px;
  width: 100%;
  align-self: center;
  padding: 40px 0;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(10px, 1.6vh, 16px) 4px;
  border-bottom: 1px solid rgba(242, 243, 247, 0.12);
  text-decoration: none;
  color: #F2F3F7;
  transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover {
  color: var(--accent);
  padding-left: 16px;
}

.menu-item-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  width: 34px;
  flex-shrink: 0;
}

.menu-item-title {
  font-size: clamp(20px, 3.2vh, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.menu-item-sub {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E7387;
}

/* ---------- 문의하기 모달 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0A0C14;
  border: 1px solid rgba(242, 243, 247, 0.14);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 44px);
  box-sizing: border-box;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.modal-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #F2F3F7;
}

.modal-logo {
  display: block;
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.9;
}

.modal-close {
  width: 40px;
  height: 40px;
  color: #9BA1B5;
  transition: color 0.2s ease;
}

.modal-close::before,
.modal-close::after { width: 18px; }

.modal-close:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8992A8;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(242, 243, 247, 0.04);
  border: 1px solid rgba(242, 243, 247, 0.14);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: 'Pretendard Variable', 'Pretendard Fallback', Pretendard, sans-serif;
  color: #F2F3F7;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
}

.contact-form option { background: #0A0C14; }

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 6px;
  background: var(--accent);
  color: #030305;
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.25s ease;
}

.form-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.form-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6E7387;
  text-align: center;
}

/* ---------- Hero (Phase 00) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 70px;
  box-sizing: border-box;
}

.hero-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  box-sizing: border-box;
}

.hero-eyebrow {
  margin: 0 0 clamp(28px, 4vh, 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9BA1B5;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 0 0 clamp(30px, 4.5vh, 52px);
  font-size: clamp(44px, 9.4vw, 132px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero-line {
  display: block;
  margin: 0 0 8px;
}

.hero-line:last-child { margin-bottom: 0; }

.hero-line--gradient {
  color: transparent;
  background: linear-gradient(92deg, var(--accent) 10%, #4ED1E0 60%, #F2F3F7 105%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
}

.hero-copy { max-width: 560px; }

.hero-sub {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: #A6ACC0;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F2F3F7;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-primary,
.btn-primary:hover { color: #030305; }

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-soft);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(242, 243, 247, 0.3);
  color: #F2F3F7;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(242, 243, 247, 0.04);
}

/* ---------- 마퀴 스트립 ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(242, 243, 247, 0.1);
  border-bottom: 1px solid rgba(242, 243, 247, 0.1);
  padding: 18px 0;
  position: relative;
  z-index: 1;
  background: rgba(3, 3, 5, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(242, 243, 247, 0.14);
  padding-right: 60px;
}

/* ---------- 섹션 공통 ---------- */

.section {
  scroll-margin-top: 70px;
  position: relative;
  padding: clamp(100px, 14vw, 200px) 0;
}

.section--engine {
  min-height: 92vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vw, 230px) 0;
}

.section--company { padding: clamp(120px, 16vw, 230px) 0; }

.section--contact {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 12vw, 160px) 0;
}

.ghost-num {
  position: absolute;
  top: 30px;
  right: clamp(12px, 3vw, 60px);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 240px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 243, 247, 0.10);
  user-select: none;
}

.section-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}

.section-inner--full {
  width: 100%;
  box-sizing: border-box;
}

.section-inner--center { text-align: center; }

.section-inner--narrow { max-width: 940px; }

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

#company .eyebrow { margin-bottom: 26px; }
#contact .eyebrow { margin-bottom: 24px; }

/* 한글형 H2 / Syne 디스플레이 H2 */

.h2-kr {
  font-size: clamp(30px, 5vw, 66px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h2-display {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.6vw, 74px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.dim { color: #6E7387; }

/* ---------- Phase 01 — Why Now ---------- */

#vision h2 {
  margin: 0 0 26px;
  max-width: 980px;
  text-wrap: balance;
}

.vision-lead {
  margin: 0 0 clamp(48px, 6vw, 80px);
  max-width: 660px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #A6ACC0;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(9, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 243, 247, 0.1);
  border-radius: 4px;
  padding: 32px 28px 38px;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-tag {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #A6ACC0;
}

/* ---------- Phase 02 — What We Build ---------- */

#build h2 {
  margin: 0 0 clamp(56px, 8vw, 100px);
  max-width: 980px;
  text-wrap: balance;
}

.build-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(242, 243, 247, 0.14);
}

.build-row {
  border-bottom: 1px solid rgba(242, 243, 247, 0.14);
  padding: clamp(28px, 4vw, 44px) 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px clamp(28px, 4vw, 60px);
  align-items: baseline;
  transition: background-color 0.25s ease;
}

.build-row:hover { background: rgba(242, 243, 247, 0.02); }

.build-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.build-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  flex-shrink: 0;
}

.build-name { min-width: 0; }

.build-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: #A6ACC0;
}

/* ---------- Phase 03 — Relationship Space Engine ---------- */

#research h2 { margin: 0 auto 10px; }

.engine-sub {
  margin: 0 0 30px;
  font-size: 32px;
  font-weight: 600;
  color: #C7CCDD;
}

.engine-body {
  margin: 0 auto clamp(44px, 6vw, 64px);
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #A6ACC0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #DDE0EC;
  border: 1px solid rgba(242, 243, 247, 0.2);
  background: rgba(9, 10, 16, 0.7);
  padding: 12px 20px;
  border-radius: 999px;
}

.pill-code {
  color: var(--accent);
  margin-right: 10px;
}

/* ---------- Phase 04 — Products ---------- */

#products h2 { margin: 0 0 10px; }

.products-lead {
  margin: 0 0 clamp(48px, 7vw, 88px);
  font-size: 16.5px;
  line-height: 1.8;
  color: #A6ACC0;
}

.products-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-hero {
  position: relative;
  overflow: hidden;
  background: rgba(9, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 60px);
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-hero:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.product-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.product-hero-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px clamp(32px, 5vw, 80px);
}

.product-hero-left {
  flex: 1 1 340px;
  min-width: 0;
}

.product-hero-titlerow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.badge-fill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #030305;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
}

.product-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6E7387;
}

.product-hero-desc {
  margin: 0;
  flex: 1 1 320px;
  font-size: 15.5px;
  line-height: 1.85;
  color: #B4BACB;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.product-card {
  background: rgba(9, 10, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 243, 247, 0.1);
  border-radius: 6px;
  padding: clamp(28px, 3.6vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.badge-outline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C7CCDD;
  border: 1px solid rgba(242, 243, 247, 0.22);
  padding: 6px 13px;
  border-radius: 999px;
}

.product-card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #A6ACC0;
}

/* ---------- Phase 05 — Principles ---------- */

#principles h2 {
  margin: 0 0 clamp(56px, 8vw, 100px);
  max-width: 980px;
}

.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(242, 243, 247, 0.14);
}

.principle {
  border-bottom: 1px solid rgba(242, 243, 247, 0.14);
  padding: clamp(24px, 3vw, 36px) 4px;
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 120px) 1fr;
  gap: 8px clamp(16px, 3vw, 40px);
  align-items: baseline;
  transition: background-color 0.25s ease;
}

.principle:hover { background: rgba(242, 243, 247, 0.02); }

.principle-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
}

.principle-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: baseline;
}

.principle-title {
  margin: 0;
  flex: 1 1 260px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.principle-desc {
  margin: 0;
  flex: 1.3 1 300px;
  font-size: 15px;
  line-height: 1.78;
  color: #A6ACC0;
}

/* ---------- Phase 06 — Research Areas ---------- */

#areas h2 { margin: 0 0 14px; }

.areas-lead {
  margin: 0 0 clamp(48px, 7vw, 80px);
  font-size: 16.5px;
  line-height: 1.8;
  color: #A6ACC0;
}

.areas-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(242, 243, 247, 0.14);
}

.area-row {
  border-bottom: 1px solid rgba(242, 243, 247, 0.14);
  padding: clamp(20px, 2.6vw, 30px) 4px;
  display: flex;
  align-items: baseline;
  gap: 12px clamp(18px, 3vw, 44px);
  flex-wrap: wrap;
  transition: background-color 0.25s ease;
}

.area-row:hover { background: rgba(242, 243, 247, 0.02); }

.area-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.area-block { min-width: 0; }

.area-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #E7EAF2;
}

.area-desc {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #8992A8;
}

/* ---------- Phase 07 — Roadmap ---------- */

#roadmap h2 { margin: 0 0 clamp(56px, 8vw, 100px); }

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px 24px;
}

.stage {
  position: relative;
  border-top: 1px solid rgba(242, 243, 247, 0.2);
  padding-top: 26px;
}

.stage--now { border-top-color: var(--accent); }

.stage--future {
  border-top-style: dashed;
  border-top-color: rgba(242, 243, 247, 0.28);
}

.stage-dot {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #030305;
  border: 1px solid rgba(242, 243, 247, 0.5);
  box-sizing: border-box;
}

.stage--now .stage-dot {
  background: var(--accent);
  border: none;
  box-shadow: 0 0 18px var(--accent);
}

.stage--future .stage-dot {
  border: 1px dashed rgba(242, 243, 247, 0.55);
}

.stage-label {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6E7387;
  line-height: 1;
}

.stage--now .stage-label { color: var(--accent); }

.stage-product {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #E7EAF2;
}

.stage-sub {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #8992A8;
}

/* ---------- Phase 08 — Company ---------- */

#company h2 {
  margin: 0 0 34px;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.company-body {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 350;
  line-height: 2.05;
  color: #C2C7D8;
  text-wrap: pretty;
}

/* ---------- Phase 09 — Contact ---------- */

#contact h2 {
  margin: 0 auto 18px;
  max-width: 800px;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.contact-lead {
  margin: 0 0 clamp(40px, 6vw, 64px);
  font-size: 16.5px;
  line-height: 1.8;
  color: #A6ACC0;
}

.contact-cta {
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(34px, 10.5vw, 150px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px #F2F3F7;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease, filter 0.35s ease, -webkit-text-stroke-color 0.35s ease;
}

.contact-cta:hover {
  -webkit-text-stroke-color: var(--accent);
  color: rgba(163, 230, 53, 0.22);
  transform: translateY(-4px);
  filter: drop-shadow(0 0 22px rgba(163, 230, 53, 0.35));
}

/* ---------- 푸터 ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(242, 243, 247, 0.1);
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 42px 0 50px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #6E7387;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-left: auto;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: #9BA1B5;
  text-decoration: none;
  padding: 8px 11px;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent); }

.footer-info {
  width: 100%;
  border-top: 1px solid rgba(242, 243, 247, 0.07);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8992A8;
}

.footer-dl > div {
  display: flex;
  gap: 8px;
}

.footer-dl dt {
  color: #565D72;
  flex-shrink: 0;
}

.footer-dl dd { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.legal-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #9BA1B5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-link:hover { color: var(--accent); }

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(242, 243, 247, 0.25);
}

.copyright {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #565D72;
}

/* ============================================================
   모바일 전용 간격 보정 (≤767px)
   — 데스크톱/태블릿 레이아웃에는 영향 없음
   ============================================================ */

@media (max-width: 767px) {
  /* 히어로: 100vh 강제 채움 해제, 상하 여백은 넉넉하게 */
  .hero {
    min-height: auto;
    padding: 138px 0 94px;
  }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-title { margin-bottom: 28px; }

  /* 섹션 세로 패딩: 72px로 통일 (min-height 강제 채움 해제) */
  .section { padding: 72px 0; }
  .section--engine,
  .section--company { padding: 72px 0; }
  .section--engine { min-height: auto; }
  .section--contact {
    min-height: auto;
    padding: 106px 0 122px;
  }

  /* 유령 넘버(01~08): 72px로 축소, 콘텐츠 시작 영역과 겹치므로 투명도 절반 */
  .ghost-num {
    font-size: 72px;
    opacity: 0.5;
  }

  /* 가로 오버플로 방지: 긴 영문 디스플레이 제목을 화면 폭 비례로 축소
     ("RELATIONSHIP" 등 줄바꿈 불가 단어가 뷰포트를 넓히는 것 차단) */
  .h2-display { font-size: clamp(24px, 9vw, 32px); }
  .product-hero-name { font-size: clamp(28px, 10vw, 38px); }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }

  /* 아이브로 → 제목 → 본문 → 리스트 간 마진: 데스크톱 하한의 60~70% */
  .eyebrow { margin-bottom: 14px; }
  #company .eyebrow { margin-bottom: 17px; }
  #contact .eyebrow { margin-bottom: 20px; }

  #vision h2 { margin-bottom: 18px; }
  #build h2,
  #principles h2,
  #roadmap h2 { margin-bottom: 36px; }
  #research h2 {
    font-size: clamp(22px, 7.2vw, 32px);
    margin-bottom: 8px;
  }
  #products h2 { margin-bottom: 8px; }
  #areas h2 { margin-bottom: 10px; }
  #company h2 { margin-bottom: 22px; }
  #contact h2 { margin-bottom: 16px; }

  .vision-lead,
  .products-lead,
  .areas-lead { margin-bottom: 32px; }
  .engine-sub { margin-bottom: 20px; }
  .engine-body { margin-bottom: 30px; }
  .contact-lead { margin-bottom: 36px; }

  /* 리스트 행 내부 패딩·간격 축소 (하한의 약 70%) */
  .build-row { padding: 20px 4px; }
  .principle { padding: 18px 4px; }
  .area-row { padding: 14px 4px; }
  .roadmap-grid { gap: 30px 24px; }
}

/* ============================================================
   법적 페이지 (개인정보처리방침 / 이용약관)
   다크 + 그린, max-width 880px 문서 레이아웃
   ============================================================ */

.legal-header { border-bottom: 1px solid rgba(242, 243, 247, 0.08); }

.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-home {
  font-size: 13px;
  font-weight: 600;
  color: #9BA1B5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-home:hover { color: #A3E635; }

.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 40px) 96px;
}

.legal-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #A3E635;
}

.legal-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.legal-date {
  margin: 0 0 48px;
  font-size: 13.5px;
  color: #6E7387;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 15.5px;
  line-height: 1.85;
  color: #B4BACB;
}

.legal-body p { margin: 0; }

.legal-body .sec-lead { margin: 0 0 10px; }

.legal-body .sec-lead--lg { margin-bottom: 14px; }

.legal-body h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  color: #F2F3F7;
}

.legal-body ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body strong { color: #DDE0EC; }

.legal-card {
  border: 1px solid rgba(242, 243, 247, 0.1);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
}

.legal-footer {
  border-top: 1px solid rgba(242, 243, 247, 0.08);
  padding: 28px 0;
}

.legal-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.legal-flink {
  font-size: 12.5px;
  font-weight: 600;
  color: #9BA1B5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-flink:hover { color: #A3E635; }

.legal-flink--current,
.legal-flink--current:hover { color: #A3E635; }
