/* ==========================================================================
   CNT Main Stylesheet
   Palette: Warm Off-White (#FAF8F5), Cloudflare Orange (#F38020, #FF9A3D),
            Pure White (#FFFFFF), Deep Slate (#111418, #333942)
   ========================================================================== */

:root {
  --bg-primary: #FAF8F5;
  --bg-white: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  
  --text-main: #111418;
  --text-muted: #5A626A;
  --text-subtle: #8E959E;
  
  --orange-primary: #F38020;
  --orange-light: #FF9A3D;
  --orange-pale: #FFF3E6;
  --orange-glow: rgba(243, 128, 32, 0.25);
  
  --purple-accent: #6366F1;
  --purple-pale: #EEF2FF;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(243, 128, 32, 0.18);
  
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Outfit", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif KR", serif;
  --font-display: "Outfit", var(--font-sans);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.08);
  --shadow-orange: 0 16px 40px rgba(243, 128, 32, 0.15);
  
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 글로벌 리셋 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   GNB 헤더
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo-dot {
  color: var(--orange-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-tab-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 4px;
  font-family: inherit;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 0.22s ease;
  position: relative;
}

.nav-tab-btn:hover {
  color: var(--orange-primary);
}

.nav-tab-btn.active {
  color: var(--orange-primary);
  font-weight: 750;
}

.nav-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--orange-primary);
  border-radius: 2px;
  animation: tabUnderline 0.25s var(--ease-spring) forwards;
}

@keyframes tabUnderline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* 탭 뷰 전환 */
.tab-content-view {
  display: none;
  width: 100%;
}

.tab-content-view.active {
  display: block;
  animation: tabViewFadeIn 0.35s var(--ease-spring) forwards;
}

@keyframes tabViewFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--orange-primary);
  box-shadow: 0 0 0 0 rgba(243, 128, 32, 0.5);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(243, 128, 32, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(243, 128, 32, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(243, 128, 32, 0);
  }
}

/* ==========================================================================
   1. 히어로 섹션
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  user-select: none;
}

/* 배경 원형 매트 */
.ambient-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 0;
}

.brand-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* 통합 워드마크 */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111418;
}

/* 글자 요소 공통 */
.char {
  display: inline-block;
  vertical-align: baseline;
}

/* 압축되어 사라지는 글자 (O, U) */
.collapsible-char {
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  max-width: 62px;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  
  transition:
    max-width 0.55s var(--ease-spring),
    opacity 0.38s ease 0.1s,
    transform 0.48s var(--ease-spring),
    filter 0.35s ease;
}

/* CNT 상태로 압축 시: O, U가 투명/블러 처리되며 폭이 0으로 수축 */
.wordmark.collapsed .collapsible-char {
  max-width: 0px;
  opacity: 0;
  transform: scale(0.72);
  filter: blur(4px);
  transition:
    max-width 0.55s var(--ease-spring),
    opacity 0.22s ease,
    transform 0.48s var(--ease-spring),
    filter 0.25s ease;
}

/* 뒤따라오는 NT: 공간이 줄어들며 자연스럽게 이동 */
.tail-chars {
  display: inline-flex;
  align-items: baseline;
  transition: transform 0.55s var(--ease-spring) 0.06s;
}

/* 구분점 dot */
.part-dot {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 400;
  color: #D2D5DA;
  margin: 0 4px 0 2px;
  line-height: 1;
}

/* Cloudflare 시그니처 오렌지 DEV */
.part-dev {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #FF9A3D 0%, #F38020 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.55s var(--ease-spring) 0.08s;
}

.hero-subtext {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  opacity: 0.85;
}

/* 스크롤 다운 인디케이터 */
.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 15;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(17, 20, 24, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 3.5px;
  height: 7px;
  background-color: var(--orange-primary);
  border-radius: 2px;
  animation: wheelScroll 1.8s infinite ease-in-out;
}

@keyframes wheelScroll {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.1; }
  100% { transform: translateY(0); opacity: 0; }
}

.scroll-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
}

/* 하단 파도 캔버스 영역 */
.canvas-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

canvas#waveCanvas {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   파도 하단 약 10px 그라데이션 페이드아웃 (주황색 -> 하얀색)
   사용자 요청: "밑으로 내려가면 밑에 파도를 그 주황색에서 서서히 내려가면
   하얀색으로 바꾸는거 자연스럽게 만들고 (한 10px정도)"
   ========================================================================== */
.wave-bottom-fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 16px; /* 자연스러운 10px~16px 블렌딩 */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 45%,
    #FFFFFF 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   공통 컨테이너 및 섹션
   ========================================================================== */
.section-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 10;
}

/* 섹션 등장 애니메이션 (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. 모토 & 철학 섹션 (무용지용)
   ========================================================================== */
.motto-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-white);
  padding: 130px 0 110px 0;
  overflow: hidden;
  border-top: 1px solid #FFFFFF; /* 파도 하단과 이음새 없이 연결 */
}

/* 배경 대형 한자 워터마크 */
.watermark-hanja {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 22vw, 19rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.022);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.motto-card {
  position: relative;
  background: rgba(250, 248, 245, 0.65);
  border: 1px solid rgba(243, 128, 32, 0.12);
  border-radius: 28px;
  padding: 64px 56px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.035);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 5;
}

.motto-badge {
  display: inline-flex;
  margin-bottom: 24px;
}

.badge-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--orange-primary);
  background: var(--orange-pale);
  border: 1px solid rgba(243, 128, 32, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
}

.motto-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hanja-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.korean-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.quote-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.quote-mark {
  color: var(--orange-primary);
  opacity: 0.35;
  margin-bottom: 12px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1a1d20;
  letter-spacing: -0.02em;
}

.responsive-br {
  display: block;
}

.motto-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px auto;
  word-break: keep-all;
}

.motto-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
  margin: 0 auto 40px auto;
}

.motto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 850;
  color: var(--orange-primary);
  letter-spacing: -0.04em;
}

.stat-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   3. 프로젝트 섹션
   ========================================================================== */
.projects-section {
  width: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-primary) 100%);
  padding: 120px 0 140px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px auto;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--orange-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  word-break: keep-all;
}

/* 프로젝트 그리드 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* 공통 카드 */
.project-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 28px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), border-color 0.4s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
}

/* Vein 카드 스타일링 (Signature Lime Green Accent: #c7e6a2) */
.vein-card {
  border-top: 3px solid #c7e6a2;
}

.vein-card:hover {
  box-shadow: 0 16px 40px rgba(199, 230, 162, 0.28);
  border-color: rgba(199, 230, 162, 0.55);
}

.vein-card .card-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 230, 162, 0.25) 0%, rgba(199, 230, 162, 0) 70%);
  pointer-events: none;
}

/* LINK 카드 스타일링 (Purple/Blue Accent) */
.link-card {
  border-top: 3px solid var(--purple-accent);
}

.link-card:hover {
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.link-card .card-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
}

/* 카드 내부 */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-chip.active {
  background-color: rgba(199, 230, 162, 0.28);
  color: #3b5f18;
  border: 1px solid rgba(199, 230, 162, 0.65);
}

.status-chip.active .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #5b8e28;
  box-shadow: 0 0 6px #c7e6a2;
}

.status-chip.planned {
  background-color: var(--purple-pale);
  color: #4F46E5;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-chip.planned .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--purple-accent);
}

.project-logo-box {
  width: 92px;
  height: 92px;
  min-width: 92px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.project-card:hover .project-logo-box {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.project-logo-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.link-card .project-logo-img {
  object-fit: contain;
  padding: 8px;
}

.project-name-group {
  margin-bottom: 16px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
}

.project-tagline {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.project-summary {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 28px;
  word-break: keep-all;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.5;
}

.feature-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
}

.vein-card .feature-icon {
  color: #5b8e28;
}

.link-card .feature-icon {
  color: var(--purple-accent);
}

.card-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(0, 0, 0, 0.035);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   4. 푸터
   ========================================================================== */
.site-footer {
  background-color: #111418;
  color: #FFFFFF;
  padding: 60px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.footer-copy {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #9CA3AF;
  word-break: keep-all;
}

.footer-meta {
  font-size: 0.85rem;
  color: #6B7280;
}

/* ==========================================================================
   반응형 미디어 쿼리
   ========================================================================== */
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .motto-card {
    padding: 48px 32px;
  }
  
  .motto-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 600px;
  }

  .ambient-orb {
    width: 380px;
    height: 380px;
  }

  .motto-section {
    padding: 90px 0 80px 0;
  }

  .projects-section {
    padding: 80px 0 100px 0;
  }

  .project-card {
    padding: 32px 24px;
  }

  .project-logo-box {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Home 프로젝트 섹션 CTA 버튼
   ========================================================================== */
.projects-cta-box {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.projects-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: #111418;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s var(--ease-spring);
}

.projects-cta-btn:hover {
  background: var(--orange-primary);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(243, 128, 32, 0.3);
}

.projects-cta-btn svg {
  transition: transform 0.3s ease;
}

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

/* ==========================================================================
   Project 전용 탭/페이지 (project.html) 스타일
   ========================================================================== */
.project-page-body {
  background-color: var(--bg-primary);
  min-height: 100vh;
}

.nav-item.active-nav {
  color: var(--orange-primary);
  position: relative;
}

.nav-item.active-nav::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--orange-primary);
  border-radius: 2px;
}

/* 프로젝트 히어로 */
.project-hero {
  padding: 150px 0 60px 0;
  text-align: center;
}

.project-hero-badge {
  display: inline-flex;
  margin-bottom: 20px;
}

.project-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.project-hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
  word-break: keep-all;
}

/* 프로젝트 상세 카드 */
.project-detail-section {
  padding: 40px 0 100px 0;
}

.project-detail-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 32px;
  padding: 56px;
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.04);
  margin-bottom: 56px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.project-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

.vein-detail {
  border-top: 4px solid #c7e6a2;
}

.vein-detail .detail-card-glow {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 230, 162, 0.3) 0%, rgba(199, 230, 162, 0) 70%);
  pointer-events: none;
}

.link-detail {
  border-top: 4px solid var(--purple-accent);
}

.link-detail .detail-card-glow {
  position: absolute;
  top: -160px;
  right: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
  pointer-events: none;
}

/* 카드 상단 브랜드 행 */
.detail-brand-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.detail-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.version-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
}

.detail-project-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1.1;
}

.detail-project-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 카드 본문 블록 */
.content-block {
  margin-bottom: 40px;
}

.block-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.block-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  word-break: keep-all;
}

/* 엔지니어링 스펙 그리드 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 28px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.spec-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.12);
}

.spec-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.spec-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 8px;
}

.spec-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  word-break: keep-all;
}

/* 진행률 바 */
.progress-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.progress-pct {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--text-main);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease-in-out;
}

.vein-fill {
  background: linear-gradient(90deg, #a7db68, #5a8e28);
}

.link-fill {
  background: linear-gradient(90deg, #818cf8, #4f46e5);
}

.progress-phases {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}

.phase.done {
  color: #2b7a30;
  font-weight: 600;
}

.phase.current {
  color: var(--text-main);
  font-weight: 700;
}

.phase.pending {
  color: var(--text-subtle);
}

/* 기술 스택 칩 */
.tech-stack-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.stack-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   로드맵 섹션
   ========================================================================== */
.roadmap-section {
  padding: 20px 0 120px 0;
}

.roadmap-box {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 32px;
  padding: 56px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.roadmap-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  color: var(--orange-primary);
  margin-bottom: 8px;
}

.roadmap-sub {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.timeline-step {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 128, 32, 0.3);
}

.timeline-step.active-step {
  border: 2px solid #c7e6a2;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(199, 230, 162, 0.2);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  word-break: keep-all;
  margin-bottom: 18px;
}

.step-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.timeline-step.active-step .step-badge {
  background: rgba(199, 230, 162, 0.3);
  color: #385d17;
}

@media (max-width: 960px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-detail-card {
    padding: 36px 28px;
  }
  .detail-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .project-hero {
    padding: 120px 0 40px 0;
  }
}
