:root {
  color-scheme: light;
  --bg: #f7f7f5;            /* 따뜻한 미색(Warm Off-white) */
  --surface: #ffffff;       /* 순백색 카드/헤더 */
  --surface-muted: #f1f1ee;
  --text: #131313;          /* 차분한 차콜 블랙 */
  --muted: #747472;         /* 회색 톤 텍스트 */
  --line: #e2e2df;          /* 얇은 그리드 실선 */
  --primary: #131313;
  --primary-dark: #333333;
  --accent: #2e6ff2;        /* 포인트 블루 (제한적으로만 사용) */
  --accent-2: #10b981;
  --shadow: none;           /* 미니멀 감성을 위해 그림자 완전히 제거 */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 헤더 구성 */
.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: blur(20px);
}

.brand,
.site-nav,
.site-footer {
  gap: 24px;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* 공통 정렬 폭 */
.hero,
.section,
.page-heading,
.detail-layout,
.not-found {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* 시안의 광활하고 간결한 Hero 타이틀 영역 */
.hero {
  display: flex;
  min-height: 55svh;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.hero h1,
.page-heading h1,
.not-found h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(3.2rem, 9.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.detail-actions,
.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* 미니멀 버튼 스타일 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.button:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* 섹션 패딩 및 보더 정의 */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.flush-top {
  border-top: 1px solid var(--line);
  padding-top: 0;
}

.section-heading,
.page-heading {
  padding: 64px 0 40px;
}

.section-heading h2,
.page-heading h1 {
  margin: 0;
}

.section-heading h2 {
  max-width: 800px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.page-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* 그리드 레이아웃: 시안처럼 보더가 맞닿는 칼선 효과 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

/* 시안을 반영한 미니멀 카드 스타일 */
.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: none;
  border-radius: 0px; /* 직각 디자인 */
  background: var(--surface);
}

.product-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  display: block;
  transition: opacity 0.25s ease;
}

.product-card:hover .product-thumbnail {
  opacity: 0.88;
}

.product-card-body {
  padding: 28px;
  flex: 1;
}

.product-card-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.product-card-meta-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0 !important;
}

.product-card-meta-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 28px 28px;
  margin-top: auto; /* 내용 길이에 상관없이 버튼들을 카드 최하단에 고정 */
}

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;                       /* 예전 둥근 디자인 복원 */
  border: 1px solid rgba(46, 111, 242, 0.25); /* 은은한 블루 테두리 */
  background: rgba(46, 111, 242, 0.06);     /* 은은한 블루 배경 */
  color: #2e6ff2;                            /* 파란색 글씨 적용 */
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* 시안의 'OUR APPROACH' 2열 대형 레이아웃 */
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}

.approach-heading h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.approach-copy p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.approach-link {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.approach-link:hover {
  opacity: 0.7;
}

.contact-wrap {
  max-width: 800px;
}

.contact-wrap h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 상세페이지 구성 */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 96px;
}

.detail-aside {
  position: sticky;
  top: 120px;
  align-self: start;
}

.detail-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: 0px;
  object-fit: contain;
  background: var(--surface-muted);
  display: block;
}

.service-meta {
  margin-top: 24px;
}

.service-meta h1 {
  margin: 16px 0 0;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.markdown-body {
  border: 1px solid var(--line);
  border-radius: 0px;
  background: var(--surface);
  padding: clamp(32px, 6vw, 64px);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.2;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.markdown-body h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-transform: uppercase;
}

.markdown-body h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.markdown-body p,
.markdown-body li {
  color: var(--text);
  opacity: 0.85;
  font-size: 1.05rem;
  line-height: 1.7;
}

.markdown-body ul {
  padding-left: 20px;
}

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body code {
  border: 1px solid var(--line);
  border-radius: 0px;
  padding: 0.15em 0.4em;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.9em;
}

.not-found {
  display: grid;
  min-height: calc(100svh - 176px);
  align-content: center;
  justify-items: start;
  padding: 48px 0;
}

/* 시안의 수평 분산 정렬 푸터 */
.site-footer {
  min-height: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-links a:hover {
  border-color: var(--muted);
}

@media (max-width: 768px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    gap: 12px;
  }

  .site-header {
    position: static;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero h1,
  .page-heading h1,
  .not-found h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .approach-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-aside {
    position: static;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* 탭 스위처 및 회사 설명 디자인 */
.tab-navigation {
  display: flex;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.tab-trigger {
  flex: 1;
  min-height: 56px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-trigger:first-child {
  border-right: 1px solid var(--line);
}

.tab-trigger:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.tab-trigger.active {
  color: var(--text);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  font-weight: 800;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.about-company-layout {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.about-cell {
  background: var(--surface);
  padding: 48px;
}

.about-cell h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}

.about-cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
