/* --- AILAB Cheez Branding Page --- */
:root {
  --black: #0a0a0a;
  --surface: #1a1a1a;
  --white: #ffffff;
  --accent: #f5d95c;
  --muted: #888;
  --radius: 12px;
  --font-heading: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--white);
  text-decoration: none;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-logo {
  height: 18px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.22s ease;
}

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

/* 상단 페이지 통로: 치즈 | 오늘운 | 팬업 */
.nav-gateways {
  align-items: center;
  gap: 0;
}

.nav-gateways .nav-item {
  padding: 0.4rem 0.75rem;
  color: var(--muted);
  position: relative;
}

.nav-gateways .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-gateways .nav-item:hover::after,
.nav-gateways .nav-item.is-active::after {
  transform: scaleX(1);
}

.nav-gateways .nav-item:hover,
.nav-gateways .nav-item.is-active {
  color: var(--white);
}

.nav-gateways .nav-item-b2b {
  margin-left: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

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

.nav-divider {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  user-select: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 217, 92, 0.08) 0%, transparent 50%),
    var(--black);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero-services-only .hero-content-services::before {
  content: "";
  position: absolute;
  inset: auto 8%;
  bottom: 8%;
  height: 140px;
  background:
    radial-gradient(ellipse 60% 120% at 50% 100%, rgba(245, 217, 92, 0.32), transparent 65%);
  filter: blur(26px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

/* 히어로 내 서비스 3종 — 프레임 없음, 동일 세로 비율 */
.hero-services-only .hero-content-services {
  max-width: none;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin-top: 0;
}

.hero-services-only .hero-services {
  gap: 4rem;
}

.hero-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  transition: opacity 0.2s ease-out;
  flex: 0 0 auto;
  animation: heroIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  position: relative;
}

.hero-service:nth-child(2) { animation-delay: 80ms; }
.hero-service:nth-child(3) { animation-delay: 160ms; }

.hero-service:hover {
  opacity: 0.98;
}

.hero-service::before {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 120%;
  height: 42px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(245, 217, 92, 0.18), transparent 70%);
  filter: blur(18px);
  opacity: 0.0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.25s ease-out;
}

.hero-service:hover::before {
  opacity: 1;
}

/* 세로 높이 기준 통일: 로고 영역 높이 동일 */
.hero-service-logo-wrap {
  display: flex;
  align-items: flex-end; /* 하단 정렬 */
  justify-content: center;
  height: 200px; /* 전체 캔버스 높이 */
  width: 100%;
  min-width: 80px;
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.25, 1), filter 0.4s ease-out;
}

.hero-service-logo {
  width: auto;
  max-width: 220px;
  max-height: 140px; /* 기본 높이 */
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.hero-service:hover .hero-service-logo-wrap,
.hero-service:focus-visible .hero-service-logo-wrap {
  transform: translateY(-1px) scale(1.005);
  filter: drop-shadow(0 0 4px rgba(245, 217, 92, 0.2));
}

.hero-service-cheez .hero-service-logo {
  max-height: 120px; /* 치즈 120px */
}

.hero-service-today .hero-service-logo {
  max-height: 53px; /* 오늘운 10% 키움 (48 → 53) */
}

.hero-service-fanup .hero-service-logo {
  max-height: 200px; /* 팬업 200px까지 사용 */
}

.hero-service-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-service:hover .hero-service-name,
.hero-service:focus-visible .hero-service-name {
  color: var(--accent);
}

.hero-service-detail {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.1rem;
  line-height: 1.4;
  max-height: 0;
  opacity: 0;
  transform: translateY(1.5px);
  transition: opacity 0.35s ease-out, max-height 0.35s ease-out, transform 0.35s ease-out;
  pointer-events: none;
}

.hero-service:hover .hero-service-detail,
.hero-service:focus-visible .hero-service-detail {
  opacity: 1;
  max-height: 3rem;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-service { animation: none; }
}

/* B2B 히어로 (텍스트 타이틀) */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition: background 0.22s ease, color 0.22s ease,
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: #d4b040;
  color: var(--black);
  box-shadow: 0 6px 24px rgba(245, 217, 92, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.06);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.hero-logo-fanup {
  max-height: 96px;
  max-width: 280px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

/* --- 메인 서비스 3종 (나란히) --- */
.section-services {
  padding: 4rem 2rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}

.service-card:hover {
  border-color: rgba(245, 217, 92, 0.4);
  transform: translateY(-4px);
}

.service-card-logo {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.service-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.section-desc {
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-size: 1rem;
}

/* --- Colors --- */
.section-colors {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 2rem auto;
  padding: 4rem 2rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.color-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.color-swatch {
  height: 120px;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-info {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.color-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.color-info code {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Typography --- */
.type-samples {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.type-row {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.type-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.type-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.type-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Logos --- */
.section-logos {
  padding: 5rem 2rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.logo-card {
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-card-dark {
  background: var(--surface);
}

.logo-card-light {
  background: var(--white);
  color: var(--black);
}

.logo-card img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.logo-img-small {
  max-height: 44px;
}

.logo-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.logo-card-light span {
  color: #666;
}

/* --- Usage --- */
.usage-list {
  margin: 0;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
}

.usage-list li {
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- B2B 카드 그리드 --- */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.b2b-card {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.28s ease,
              transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.28s ease;
}

.b2b-card:hover {
  border-color: rgba(245, 217, 92, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
              0 0 0 0 transparent;
}

.b2b-card-icon {
  display: block;
  margin-bottom: 1rem;
  width: 28px;
  height: 28px;
  color: var(--accent);
  line-height: 0;
}

.b2b-card-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.b2b-card-featured {
  border-color: rgba(245, 217, 92, 0.25);
  background: linear-gradient(160deg, rgba(245,217,92,0.07) 0%, var(--surface) 60%);
}

.b2b-card-featured:hover {
  border-color: rgba(245, 217, 92, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
              0 0 32px rgba(245, 217, 92, 0.1);
}

.b2b-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--white);
  line-height: 1.4;
}

.b2b-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.b2b-card-keyword {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
}

.b2b-card-tier {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.b2b-card-tier-accent {
  color: rgba(245,217,92,0.55);
}

/* --- API 목록 --- */
.api-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.api-item {
  padding: 1.5rem;
  background: var(--surface);
  transition: background 0.2s;
}

.api-item + .api-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.api-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.api-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.api-item-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.api-item-badge {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: var(--accent);
  color: var(--black);
  border-radius: 999px;
}

.api-item-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* --- CTA 섹션 --- */
.section-cta {
  padding: 4rem 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cta-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.cta-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.cta-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}

.cta-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- 섹션 내 테이블 --- */
.section table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.section table th {
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  vertical-align: top;
}

.section table tr:last-child td {
  border-bottom: none;
}

/* --- 인라인 코드 --- */
.usage-list code,
.type-body code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.45em;
  border-radius: 4px;
  color: var(--accent);
}

/* --- 서비스 페이지 로고 (히어로) --- */
.hero-logo-cheez {
  max-height: 96px;
  max-width: 280px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

.hero-logo-today {
  max-height: 96px;
  max-width: 280px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

/* --- Coming Soon 배지 --- */
.badge-coming-soon {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
  margin-top: 0.5rem;
}

/* --- 단계별 리스트 (Step List) --- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2.75rem;
  flex-shrink: 0;
  line-height: 1.1;
}

.step-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.step-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --- 태그 클라우드 (Sensor Tags 시각화) --- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag-item {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.tag-item-highlight {
  border-color: rgba(245, 217, 92, 0.45);
  color: var(--accent);
  background: rgba(245, 217, 92, 0.08);
}

/* --- 스펙 그리드 (Tier 비교 등) --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.spec-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-card-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.spec-card-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.spec-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* --- Responsive --- */

/* 768px — 태블릿 */
@media (max-width: 768px) {
  .site-header {
    padding: 0.875rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-gateways {
    flex-wrap: wrap;
    gap: 0;
  }

  .hero-tagline {
    font-size: 1rem;
    line-height: 1.75;
  }

  .api-section {
    padding: 2.25rem 0;
  }

  .sidebar-content {
    padding: 2rem 1.25rem 4rem;
  }
}

/* 640px — 모바일 */
@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .hero-logo {
    max-width: 260px;
  }

  .hero-services {
    gap: 2rem;
    margin-top: 2.5rem;
  }

  .hero-services-only .hero-services {
    gap: 2.5rem;
  }

  .hero-service-logo-wrap {
    height: 140px; /* 모바일용 전체 캔버스 */
    min-width: 70px;
  }

  .hero-service-logo {
    max-width: 180px;
    max-height: 110px; /* 모바일 기본 (치즈 기준) */
    height: auto;
  }

  .hero-service-cheez .hero-service-logo {
    max-height: 96px; /* 모바일 치즈 120px 비율에 맞춰 축소 */
  }

  .hero-service-today .hero-service-logo {
    max-height: 44px; /* 오늘운 10% 키움 (40 → 44) */
  }

  .hero-service-fanup .hero-service-logo {
    max-height: 140px; /* 모바일 팬업 */
  }

  .section {
    padding: 3rem 1.25rem;
  }

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

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

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 2rem 1.25rem;
  }

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

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

  .step-item {
    gap: 1.25rem;
  }

  .step-number {
    font-size: 1.2rem;
    min-width: 2.25rem;
  }

  .cta-box {
    padding: 3rem 1.25rem;
  }

  .section table {
    font-size: 0.8rem;
  }

  .section table th,
  .section table td {
    padding: 0.5rem 0.6rem;
  }

  /* 네비게이션 */
  .nav-gateways .nav-item {
    padding: 0.3rem 0.55rem;
  }

  /* 히어로 */
  .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-content {
    padding: 0 1.25rem;
  }

  /* 섹션 */
  .section-title {
    font-size: 1.45rem;
  }

  /* 테이블 가로 스크롤 */
  .section table,
  .tier-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100%;
  }

  /* 그리드 단일 컬럼 */
  .feature-modules-grid { grid-template-columns: 1fr; }
  .tier-overview-grid   { grid-template-columns: 1fr; }

  /* B2B API 사이드바 컨텐츠 패딩 */
  .sidebar-content {
    padding: 1.5rem 1rem 3rem;
  }

  /* DNM canvas 비율 여유 */
  .dnm-diagram-wrap {
    margin-top: 1.75rem;
  }
}

/* 480px — 소형 모바일 */
@media (max-width: 480px) {
  /* nav 구분자 숨김 — 공간 확보 */
  .nav-divider { display: none; }

  .nav-gateways {
    gap: 0;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .nav-gateways .nav-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
  }

  /* Cheez API 버튼 크기 축소 */
  .nav-gateways .nav-item-b2b {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    font-size: 0.78rem;
  }

  /* 히어로 */
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  /* B2B API 사이드바 링크 줄바꿈 허용 */
  .sidebar-link { white-space: normal; font-size: 0.8rem; }

  /* api-section 패딩 */
  .api-section {
    padding: 1.75rem 0;
  }
}

/* ===== 플랫폼 사이트 추가 컴포넌트 ===== */

/* --- Built-With 서비스 쇼케이스 --- */
.built-with-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.built-with-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--surface);
  color: var(--white);
  transition: background 0.22s ease, padding-left 0.22s ease;
}

.built-with-card:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2.5rem;
}

.built-with-card + .built-with-card {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.built-with-logo-wrap {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.built-with-logo {
  max-width: 80px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.built-with-logo-lg {
  max-height: 72px;
}

.built-with-info {
  flex: 1;
}

.built-with-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.built-with-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.api-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.api-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
}

.api-tag-accent {
  background: rgba(245, 217, 92, 0.1);
  border-color: rgba(245, 217, 92, 0.35);
  color: var(--accent);
}

.built-with-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- DNM Engine 섹션 --- */
.dnm-hub-wrap {
  margin: 2rem 0;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1.5rem 1.25rem;
}

.dnm-hub-svg {
  max-width: 580px;
  width: 100%;
  height: auto;
}

.dnm-hub-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.dnm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.dnm-feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dnm-feature-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(245, 217, 92, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.65rem;
}

.dnm-feature-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--white);
}

.dnm-feature-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.narrative-quote {
  margin: 2rem 0 0;
  padding: 1.1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(245, 217, 92, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* --- AI Feature Layer 모듈 카드 --- */
.feature-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-module-card {
  padding: 1.35rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease,
              transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.25s ease;
}

.feature-module-card:hover {
  border-color: rgba(245, 217, 92, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-module-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.6rem;
}

.feature-module-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}

.feature-module-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- 티어 요약 카드 (index용) --- */
.tier-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.tier-overview-card {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease,
              transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.25s ease;
}

.tier-overview-card:hover {
  border-color: rgba(245, 217, 92, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tier-overview-card.is-featured {
  border-color: rgba(245, 217, 92, 0.4);
  background: rgba(245, 217, 92, 0.05);
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tier-overview-card.is-featured .tier-badge {
  background: rgba(245, 217, 92, 0.2);
  color: var(--accent);
}

.tier-overview-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.tier-overview-example {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  display: block;
}

.tier-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-feature-list li {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.2rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}

.tier-feature-list li::before {
  content: "·";
  position: absolute;
  left: 0.3rem;
  color: var(--accent);
}

/* --- 티어 비교 테이블 (B2B 상세 페이지용) --- */
.tier-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 600px;
}

.tier-table th {
  padding: 1rem 1.1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  vertical-align: top;
}

.tier-table th.col-highlight {
  background: rgba(245, 217, 92, 0.08);
}

.tier-table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  vertical-align: top;
}

.tier-table td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}

.tier-table td.col-highlight {
  background: rgba(245, 217, 92, 0.03);
}

.tier-table tr:last-child td {
  border-bottom: none;
}

.tier-table .t-check { color: var(--accent); font-weight: 700; }
.tier-table .t-cross { color: rgba(255, 255, 255, 0.18); }
.tier-table .t-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.tier-table .row-example td {
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.tier-th-name { display: block; font-size: 0.95rem; }
.tier-th-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.1rem;
}
th.col-highlight .tier-th-sub { color: rgba(245, 217, 92, 0.7); }

/* --- 사이드바 레이아웃 (B2B 상세 페이지) --- */
.page-with-sidebar {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar-nav {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  align-self: flex-start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 3rem 0 3rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-section-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  padding: 0 0.75rem;
  margin-bottom: 0.4rem;
}

.sidebar-link {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  line-height: 1.3;
}

.sidebar-link:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255,255,255,0.2);
}

.sidebar-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
}

.sidebar-content {
  flex: 1;
  min-width: 0;
  padding: 3rem 3rem 6rem 3rem;
}

/* --- 모듈 섹션 (B2B 상세 페이지 내 각 모듈) --- */
.module-block {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.module-block:last-child {
  border-bottom: none;
}

.module-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.module-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.module-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.module-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.module-tier-badge {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  background: rgba(245, 217, 92, 0.12);
  border: 1px solid rgba(245, 217, 92, 0.3);
  border-radius: 4px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- 아키텍처 4레이어 카드 --- */
.arch-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.arch-layer-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(245, 217, 92, 0.4);
}

.arch-layer-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.arch-layer-sub {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 0.6rem;
}

.arch-layer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

/* --- 실행 흐름 (가로 스텝) --- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

.flow-step {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  position: relative;
}

.flow-step-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.flow-step-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.3rem;
}

.flow-step-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Scroll offset for sticky header */
.anchor-target {
  scroll-margin-top: 80px;
}

/* --- Responsive 추가 --- */
@media (max-width: 1000px) {
  .page-with-sidebar {
    flex-direction: column;
  }
  .sidebar-nav {
    width: 100%;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .sidebar-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0;
  }
  .sidebar-section-label { display: none; }
  .sidebar-link { white-space: nowrap; }
  .sidebar-content {
    padding: 2rem 1.5rem 4rem;
  }
  .arch-layer-grid {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .feature-modules-grid { grid-template-columns: 1fr 1fr; }
  .dnm-features-grid { grid-template-columns: 1fr; }
  .tier-overview-grid { grid-template-columns: 1fr 1fr; }
  .built-with-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .built-with-logo-wrap { width: auto; }
  .built-with-arrow { display: none; }
}

/* ===== cheez-api-b2b 추가 컴포넌트 ===== */

/* api-section 간격 */
.api-section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.api-section:last-child { border-bottom: none; }
.api-section .section-title { margin-top: 0; }

/* 인라인 코드 (api-section 내) */
.code-inline {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15em 0.5em;
  border-radius: 4px;
  color: var(--accent);
  white-space: nowrap;
}

/* module-badge */
.module-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(245, 217, 92, 0.12);
  border: 1px solid rgba(245, 217, 92, 0.3);
  border-radius: 4px;
  color: var(--accent);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* module-header (api-section 내) */
.module-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.module-header .section-title { margin: 0; }

/* tier-overview-badge */
.tier-overview-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.tier-overview-badge.tier-overview-badge-accent {
  background: rgba(245, 217, 92, 0.15);
  color: var(--accent);
}
.tier-overview-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.tier-overview-service {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.tier-overview-service strong { color: var(--white); }

/* tier-table 서비스 예시 행 */
.tier-table-row-service td {
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.82rem;
}
.tier-table-row-service td small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* sidebar CTA 링크 */
.sidebar-link-cta {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}
.sidebar-link-cta:hover {
  color: var(--accent);
  background: rgba(245, 217, 92, 0.08);
}

/* Architecture Overview Diagram */
.arch-overview-box {
  margin-top: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.arch-overview-row {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.arch-overview-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 0.35rem;
}
.arch-overview-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.arch-overview-chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}
.arch-overview-row-top {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.arch-overview-row-top .arch-overview-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.arch-overview-chip-client {
  font-weight: 600;
}
.arch-overview-row-feature {
  background: rgba(245, 217, 92, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.arch-overview-row-infra {
  background: rgba(255, 255, 255, 0.02);
}
.arch-overview-arrow {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.4rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--black);
}

/* ===== 티어 여정 레이아웃 (index 개선) ===== */
.tier-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}

.tier-journey-card {
  background: var(--surface);
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.tier-journey-card:hover {
  background: rgba(255,255,255,0.03);
}

.tier-journey-card.is-recommended {
  background: rgba(245,217,92,0.04);
}

.tier-journey-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.tier-journey-card.is-recommended .tier-journey-num {
  color: rgba(245,217,92,0.08);
}

.tier-journey-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.tier-journey-badge-default {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4);
}

.tier-journey-badge-accent {
  background: rgba(245,217,92,0.18);
  color: var(--accent);
}

.tier-journey-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.tier-journey-pitch {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tier-journey-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.tier-journey-features li {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  padding: 0.28rem 0 0.28rem 1.1rem;
  position: relative;
  line-height: 1.45;
}

.tier-journey-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.32rem;
}

.tier-journey-card.is-recommended .tier-journey-features li {
  color: rgba(255,255,255,0.8);
}

.tier-journey-service {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.tier-journey-service strong {
  color: rgba(255,255,255,0.6);
}

.tier-journey-card.is-recommended .tier-journey-service strong {
  color: var(--accent);
}

/* ===== 서비스 쇼케이스 그리드 (index 개선) ===== */
.service-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.service-showcase-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.28s ease,
              transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.28s ease;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.service-showcase-card:hover {
  border-color: rgba(245,217,92,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.service-showcase-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.service-showcase-logo {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.service-showcase-logo-cheez {
  max-height: 52px;
}

.service-showcase-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245,217,92,0.1);
  border: 1px solid rgba(245,217,92,0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.service-showcase-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.service-showcase-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}

.service-showcase-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

.service-showcase-card:hover .service-showcase-link {
  color: var(--accent);
}

/* Responsive — tier-journey & service-showcase */
@media (max-width: 900px) {
  .tier-journey { grid-template-columns: 1fr 1fr; }
  .service-showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tier-journey { grid-template-columns: 1fr; gap: 1px; }
  .tier-journey-num { font-size: 2.5rem; }
}

/* =====================================================
   DNM Engine Diagram
   ===================================================== */

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

.dnm-diagram-wrap {
  margin: 2.5rem auto 0;
  max-width: 680px;
  width: 100%;
}

.dnm-diagram {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Satellite lines */
.dnm-sat-line {
  stroke: #f5d95c;
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.45;
  animation: dnm-flow-out 2.4s linear infinite;
}

/* Satellite dots */
.dnm-sat {
  fill: #f5d95c;
  opacity: 0.75;
}

/* Stagger satellite pulse */
.dnm-orbit-group circle:nth-child(odd)  { animation: dnm-sat-pulse 3s ease-in-out infinite; }
.dnm-orbit-group circle:nth-child(even) { animation: dnm-sat-pulse 3s ease-in-out infinite 1.5s; }

/* Main horizontal dashed lines */
.dnm-main-line {
  stroke: #f5d95c;
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
  opacity: 0.5;
}
.dnm-line-left  { animation: dnm-flow-right 1.6s linear infinite; }
.dnm-line-right { animation: dnm-flow-right 1.6s linear infinite; }

/* Flow particles */
.dnm-particle {
  fill: #f5c84a;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px #f5d95c);
}

/* Outer pulse ring */
.dnm-pulse-ring {
  opacity: 0.2;
  animation: dnm-ring-pulse 3s ease-in-out infinite;
  transform-origin: 350px 230px;
}

/* DNM center glow */
.dnm-center-glow {
  animation: dnm-center-breathe 3s ease-in-out infinite;
  transform-origin: 350px 230px;
}

/* Satellite orbit slow rotation */
.dnm-orbit-group {
  animation: dnm-orbit 60s linear infinite;
  transform-origin: 350px 230px;
}

/* Caption */
.dnm-caption {
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Keyframes */
@keyframes dnm-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dnm-flow-out {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -20; }
}
@keyframes dnm-flow-right {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -28; }
}
@keyframes dnm-ring-pulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(1.06); }
}
@keyframes dnm-center-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.04); }
}
@keyframes dnm-sat-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .dnm-orbit-group,
  .dnm-sat-line,
  .dnm-main-line,
  .dnm-pulse-ring,
  .dnm-center-glow,
  .dnm-orbit-group circle { animation: none; }
}

/* =====================================================
   Animation System
   ===================================================== */

/* --- Keyframes --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientDrift {
  0%, 100% { opacity: 0.8; background-position: 50% 0%; }
  50%       { opacity: 1;   background-position: 50% 100%; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes accentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 217, 92, 0); }
  60%       { box-shadow: 0 0 20px 0 rgba(245, 217, 92, 0.18); }
}

@keyframes shimmerSlide {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Scroll Reveal Utilities --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variants */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Reduced-motion override */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero 입장 애니메이션 --- */
.hero-label {
  animation: fadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 50ms both;
}

.hero-title {
  animation: fadeUp 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 120ms both;
}

.hero-tagline {
  animation: fadeUp 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 220ms both;
}

.hero-actions {
  animation: fadeUp 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 350ms both;
}

/* About / 서비스 페이지 hero-logo */
.hero-logo,
.hero-logo-cheez,
.hero-logo-today,
.hero-logo-fanup {
  animation: fadeIn 0.8s ease 100ms both;
}

/* --- Hero 서비스 로고 플로팅 ---
   wrap은 hover transform 담당 → float은 img에만 적용해 충돌 방지 */
.hero-service-logo {
  animation: floatY 5s ease-in-out infinite;
}

.hero-service:nth-child(2) .hero-service-logo {
  animation-delay: -1.6s;
}

.hero-service:nth-child(3) .hero-service-logo {
  animation-delay: -3.2s;
}

/* Hover 중에는 float 멈춤 */
.hero-service:hover .hero-service-logo {
  animation-play-state: paused;
}

/* --- Hero bg 살아있는 그라디언트 --- */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 30% 80%, rgba(245, 217, 92, 0.04), transparent 60%);
  animation: gradientDrift 12s ease-in-out infinite alternate;
}

/* --- Header 입장 --- */
.site-header {
  animation: slideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* --- 아이콘 hover 마이크로인터랙션 --- */
.b2b-card-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.b2b-card:hover .b2b-card-icon {
  transform: scale(1.2);
}

/* --- Featured 카드 shimmer 효과 --- */
.b2b-card-featured {
  position: relative;
}

.b2b-card-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(245, 217, 92, 0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSlide 4s ease-in-out infinite;
  pointer-events: none;
}

/* --- Nav is-active underline 즉시 표시 --- */
.nav-gateways .nav-item.is-active::after {
  transform: scaleX(1);
  transition: none;
}

/* --- Reduced-motion: 모든 애니메이션 비활성화 --- */
@media (prefers-reduced-motion: reduce) {
  .hero-label,
  .hero-title,
  .hero-tagline,
  .hero-actions,
  .hero-logo,
  .hero-logo-cheez,
  .hero-logo-today,
  .hero-logo-fanup,
  .hero-service-logo,
  .hero-bg::after,
  .site-header,
  .b2b-card-featured::after {
    animation: none;
  }
}
