/* AIBIX lab — Brand Identity 기반 스타일시트
   배경 #0b0b0c / 포인트 라임그린 #8CC63F / 텍스트 #f3f4f6
   폰트: Plus Jakarta Sans (영문) + Noto Sans KR (한글)
   그라디언트, 임의 색상 사용 금지 — 라임그린 + 무채색만 사용 */

:root {
  color-scheme: dark; /* 폼 컨트롤(검색 입력·셀렉트 등)을 다크 기준으로 렌더링 */
  /* ---- AIBIX 디자인 토큰 (BI 가이드 §3.2 고정값) ---- */
  --bg:        #0b0b0c;   /* 페이지 배경 */
  --surface-1: #121214;   /* 카드/패널 */
  --surface-2: #1A1A1D;   /* 한 단계 올림 */
  --line:      #27272a;   /* 헤어라인 */
  --gray-1:    #B3B3B3;   /* 밝은 회색 */
  --gray-2:    #666666;   /* 중간 회색 */
  --gray-3:    #333333;   /* 어두운 회색 */

  --text:   #f3f4f6;
  --text-2: #B3B3B3;
  --text-3: #666666;

  --lime: #8CC63F; /* 유일 액센트 — 희소하게, 발광 금지 */

  --wrap: 1200px;
  --r: 4px;          /* 플랫·정밀 — 큰 라운드 금지 */
  --r-pill: 999px;   /* 태그/뱃지 한정 */

  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- 기존 변수명(레거시 셀렉터 호환용) — 새 토큰에 매핑 ---- */
  --bg-elevated: var(--surface-2);
  --bg-card: var(--surface-1);
  --border: var(--line);
  --text-muted: var(--text-2);
  --text-dim: var(--text-3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 한국어 줄바꿈을 어절(단어) 단위로 — 단어 중간에서 끊기지 않게. 매우 긴 토큰(URL 등)만 예외적으로 분해 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 측정값(mono) — 순위·점수·증감·날짜 전용 */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg); /* 글래스모피즘/backdrop-blur 금지(§3.3.6) — 불투명 배경 + 헤어라인만 */
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 22px;
  width: auto;
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-text .lime {
  color: var(--lime);
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

/* 7항목 내비(홈·지수 랭킹·리서치·뉴스룸·어워드·서비스·회사 소개) 대응 — 좁은 데스크톱에서 간격만 축소 */
@media (max-width: 980px) {
  .main-nav ul {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.86rem;
  }
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--lime);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}

/* 데이터퍼스트 히어로(§3.6/§3.7) — 배경 사진 의존 제거, #0b0b0c + 옅은(rgba .03) 20px 데이터 그리드 */
.hero.hero-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* 좌측정렬 텍스트 + 우측 0/1 리드아웃 라이브 패널용 그리드(Phase B 마크업에서 사용) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.hero h1 .lime {
  color: var(--lime);
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--lime);
  color: #0b0b0c;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- 0/1 인덱스 리드아웃 (§3.5 시그니처) ----------
   로고 문법(0=데이터 노드, 1=인덱스 기둥)에서 파생. 4개 모델(GPT/GEM/CLA/PPX) 점수를
   얇은 막대(기둥) + 끝단 원(노드)로 표현. 색은 라임+회색만 — 리드(최고점) 행만 라임.
   막대의 최종 길이는 정적으로 HTML(--pct)에 박혀 있고, JS는 scaleX(0)→(1) 캘리브레이션만 수행(§3.8). */
.hero-readout-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  width: 100%;
}

.hero-readout-card .hr-title {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 16px;
}

.hero-readout-card .hr-title .hr-rank {
  color: var(--lime);
  font-weight: 700;
}

.readout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.readout-row {
  display: grid;
  grid-template-columns: 40px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.readout-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-1);
}

.readout-track {
  position: relative;
  height: 4px;
  background: var(--surface-2);
}

.readout-bar {
  position: relative;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--gray-2);
  transform: scaleX(1);
  transform-origin: left;
  opacity: 1;
}

/* JS가 있을 때만 숨겼다가 캘리브레이션(실패-표시: JS 없으면 막대가 그대로 보임) */
.readout.will-calibrate .readout-bar {
  transform: scaleX(0);
  opacity: 0.45;
}

/* 인덱스 노드(0) — 막대(1) 끝단의 데이터 포인트 */
.readout-bar::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: inherit;
  transform: translateY(-50%);
}

.readout-row.is-lead .readout-bar {
  background: var(--lime);
}

.readout-score {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: right;
}

.readout-row.is-lead .readout-score {
  color: var(--lime);
  font-weight: 700;
}

/* 스크롤 진입 캘리브레이션 대상 상태(js/main.js가 부여) — transform/opacity만, 글로우 없음 */
.readout.is-calibrated .readout-bar {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scaleX(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .readout-bar {
    transform: scaleX(1);
    opacity: 1;
  }

  .readout.is-calibrated .readout-bar {
    transition: none;
  }
}

/* 카드용 미니 버전(카테고리 카드 등 좁은 공간) */
.readout-mini .readout-row {
  grid-template-columns: 28px 1fr 34px;
  gap: 6px;
}

.readout-mini .readout-track {
  height: 3px;
}

.readout-mini .readout-label {
  font-size: 0.6rem;
}

.readout-mini .readout-score {
  font-size: 0.68rem;
}

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

/* rankings.html — 27개 카테고리 정적 섹션. JS는 선택된 카테고리만 보이게 숨김 처리만 한다(규칙 1: no-JS면 전부 노출). */
.rank-section.is-hidden {
  display: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head .sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-head .link-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lime);
  white-space: nowrap;
}

/* ---------- Category cards (index) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color 0.15s ease;
}

.category-card:hover {
  border-color: var(--lime);
}

.category-card .cat-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.category-card .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r);
  background: var(--lime);
  color: #0b0b0c;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 8px;
}

.category-card .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.category-card .score {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.category-card .score b {
  color: var(--lime);
  font-size: 1rem;
  font-family: var(--font-mono);
}

/* 카테고리 카드 내 미니 0/1 리드아웃 슬롯(Phase B 마크업용) */
.category-card .readout-mini {
  margin-top: 14px;
}

/* ---------- News list ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.news-item .date {
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
  min-width: 90px;
}

.news-item .title {
  font-weight: 700;
  margin-bottom: 4px;
}

.news-item .summary {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Methodology summary (index) ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .method-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.method-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.method-step .num {
  color: var(--lime);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.method-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.method-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---------- Trust points (methodology reliability cards) ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ---------- Product / service cards (index, services page) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: var(--lime);
}

.product-card .thumb {
  height: 140px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
}

.product-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card .tag {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.product-card .cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lime);
}

/* ---------- Rankings page ---------- */
.brand-search {
  position: relative;
  margin: 0 auto 28px;
  max-width: 640px;
}

.brand-search .search-icon {
  position: absolute;
  left: 22px;
  top: 27px;
  transform: translateY(-50%);
  display: flex;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.15s ease;
}

.brand-search:focus-within .search-icon {
  color: var(--text-2);
}

.brand-search input {
  width: 100%;
  height: 54px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 26px 0 56px;
  font-size: 1.02rem;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.brand-search input::placeholder {
  color: var(--text-2);
  opacity: 1;
}

.brand-search input:hover {
  border-color: var(--gray-3);
  background: var(--bg-elevated);
}

.brand-search input:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--bg-elevated);
}

.brand-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  max-height: 320px;
  overflow-y: auto;
  /* 그림자 대신 헤어라인만 — BI §3.1 플랫·무광 준수 */
}

.brand-search-results li {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand-search-results li:hover,
.brand-search-results li.active {
  background: var(--bg-card);
}

.brand-search-results .bs-brand {
  font-weight: 700;
}

.brand-search-results .bs-brand mark {
  background: transparent;
  color: var(--lime);
}

.brand-search-results .bs-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.brand-search-results .bs-empty {
  padding: 10px 12px;
  color: var(--text-muted);
  cursor: default;
}

.rank-table tr.row-highlight td {
  background: rgba(140, 198, 63, 0.12);
}

/* ---------- 홈 히어로 브랜드 검색 폼 (rankings.html .brand-search와 톤 일치, JS 없이도 GET 제출로 동작) ---------- */
.hero .wrap {
  position: relative;
}

.hero-search-form {
  position: absolute;
  top: 0;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  margin-top: 0;
}

@media (max-width: 960px) {
  .hero-search-form {
    position: static;
    width: 100%;
    max-width: 480px;
    margin-top: 20px;
  }
}

.hero-search-form input[type="search"]::placeholder {
  color: var(--text-2);
  opacity: 1;
}

.hero-search-form .search-icon {
  position: absolute;
  left: 20px;
  display: flex;
  color: var(--text-3);
  pointer-events: none;
}

.hero-search-form input[type="search"] {
  flex: 1;
  height: 48px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 20px 0 48px;
  font-size: 0.92rem;
  font-family: inherit;
}

.hero-search-form input[type="search"]:hover {
  border-color: var(--gray-3);
}

.hero-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--lime);
}

.hero-search-form .btn {
  flex-shrink: 0;
  padding: 0 22px;
  height: 48px;
}

.category-select-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.category-select-wrap select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  min-width: 260px;
}

.category-select-wrap select:focus {
  outline: none;
  border-color: var(--lime);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-tab:hover {
  border-color: var(--lime);
  color: var(--text);
}

.category-tab.active {
  background: var(--lime);
  color: #0b0b0c;
  border-color: var(--lime);
  font-weight: 700;
}

.rank-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
}

table.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.rank-table th {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

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

.rank-table td.rank-cell {
  font-weight: 800;
  font-size: 1.1rem;
  width: 60px;
}

.rank-table tr:first-child td.rank-cell {
  color: var(--lime);
}

.rank-table td.brand-cell {
  font-weight: 700;
}

.rank-table td.score-cell {
  font-weight: 700;
  color: var(--lime);
}

.badge-new {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: 2px 10px;
}

/* 히어로 신뢰 라인 — CTA 아래에 학회 MOU 검증 협력을 한 문장으로 (Statista 패턴) */
.hero-trust {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
}
.hero-actions .hero-trust {
  margin: 0;
  text-align: left;
}
.hero-trust b {
  color: var(--text);
  font-weight: 700;
}
.trust-sub {
  color: var(--text-3);
  font-size: 0.84rem;
}
.trust-sub a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-sub a:hover { color: var(--lime); }

/* 홈 카테고리 카드 순환(4개씩) — main.js initCategoryCarousel() */
.category-card.is-off { display: none; }
.category-card.card-fade { animation: card-fade-in 0.35s ease-out; }
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .category-card.card-fade { animation: none; }
}

/* 측정 구분 배지 — 정기 측정 / 스냅샷 (운영구조: 고정 20 + 스팟 10) */
.measure-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- Methodology page ---------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}

.flow-step .stage {
  color: var(--lime);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.flow-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.stat-box .num {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 800;
}

.stat-box .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.75;
}

.prose ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.use-case-list {
  margin: 0 0 12px;
}

.use-case-item {
  margin-bottom: 16px;
}

.use-case-list dt {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.use-case-list dd {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.75;
}

.prose ul li {
  margin-bottom: 6px;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.ceo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.ceo-card .role {
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ceo-card .ceo-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.ceo-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ceo-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 14px;
  position: relative;
}

.ceo-card ul li::before {
  content: '·';
  color: var(--lime);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.greeting h3 {
  font-size: 1.05rem;
  color: var(--lime);
  margin: 24px 0 8px;
}

.greeting h3:first-child {
  margin-top: 0;
}

.greeting p {
  color: var(--text-muted);
  margin-bottom: 12px;
  white-space: pre-line;
  line-height: 1.75;
}

.greeting .quote {
  border-left: 3px solid var(--lime);
  padding: 12px 20px;
  color: var(--text);
  font-weight: 600;
  margin: 20px 0;
  background: var(--bg-elevated);
  border-radius: 0 10px 10px 0;
}

.signature {
  margin-top: 24px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-box {
  margin-top: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.contact-box .item .k {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.contact-box .item .v {
  font-weight: 700;
}

.contact-box .item .v a:hover {
  color: var(--lime);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 320px;
}

.footer-info {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer-info a:hover {
  color: var(--lime);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

.footer-disclaimer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 18px;
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 16px 24px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 56px 0 48px;
  }

  section {
    padding: 44px 0;
  }

  .contact-box {
    flex-direction: column;
    gap: 16px;
  }

  .rank-table th,
  .rank-table td {
    padding: 10px 12px;
    font-size: .85rem;
  }
}

/* ---------- Research / News / Awards / Contact (신규 페이지 공용) ---------- */
.def-block {
  background: var(--bg-elevated);
  border-left: 3px solid var(--lime);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
  color: var(--text);
}

.def-block strong {
  color: var(--lime);
}

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

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card.is-soon {
  opacity: 0.75;
}

.info-card .tag {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- 리서치 허브 카드 유형 태그(무채색 그레이 램프, 라임 미사용) ---------- */
.info-card .tag.tag--outline {
  color: var(--gray-1);
  display: inline-block;
  border: 1px solid var(--gray-1);
  border-radius: var(--r);
  padding: 2px 10px;
}

.info-card .tag.tag--mono {
  color: var(--text-2);
  font-family: var(--font-mono);
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 10px;
}

.info-card .tag.tag--dot {
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-card .tag.tag--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-1);
  flex-shrink: 0;
}

.info-card .tag.tag--solid {
  color: var(--text);
  display: inline-block;
  background: var(--gray-3);
  border-radius: var(--r);
  padding: 2px 10px;
}

.info-card h3 {
  font-size: 1.05rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.75;
}

.info-card .cta {
  color: var(--lime);
  font-weight: 600;
  font-size: 0.9rem;
}

.info-card .cta[aria-disabled="true"] {
  color: var(--text-dim);
  cursor: default;
}

.brand-tease {
  display: inline-block;
  filter: blur(5px);
  user-select: none;
  opacity: .85;
}

.press-placeholder {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.press-placeholder p { line-height: 1.75; }
.press-placeholder p + p { margin-top: 10px; }

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

.award-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}

.award-badge .mark {
  display: inline-block;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.award-badge .cat {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.award-badge .brand {
  font-size: 1.2rem;
  font-weight: 800;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card .num {
  color: var(--lime);
  font-weight: 800;
  font-size: 0.85rem;
}

.contact-card h3 {
  font-size: 1.1rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.75;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin-top: 32px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
}

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

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

.contact-form .hint {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ---------- Breadcrumb / Related research ---------- */
.breadcrumb{border-bottom:1px solid var(--line);font-size:.8rem}
.breadcrumb .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:12px;padding-bottom:12px}
.breadcrumb a{color:var(--text-2)}
.breadcrumb a:hover{color:var(--lime)}
.breadcrumb span[aria-hidden]{color:var(--text-3)}
.breadcrumb .current{color:var(--text)}

.related-links{display:flex;flex-direction:column;gap:10px}
.related-links a{color:var(--text);border:1px solid var(--line);border-radius:var(--r);padding:12px 16px}
.related-links a:hover{border-color:var(--lime)}

/* ---------- Award badges (인증 뱃지 다운로드/임베드) ---------- */
.badge-card{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0}
.badge-img{width:100%;max-width:300px;height:auto;display:block}
.badge-dl{font-family:var(--font-mono);font-size:.76rem;letter-spacing:.02em;color:var(--text-2);border:1px solid var(--line);border-radius:var(--r);padding:7px 14px;transition:border-color .15s ease,color .15s ease}
.badge-dl:hover{border-color:var(--lime);color:var(--lime)}
.badge-guide{margin:0 0 22px;padding-left:20px;color:var(--text-2);display:flex;flex-direction:column;gap:8px}
.badge-guide li{list-style:decimal}
.badge-guide strong{color:var(--text)}
.badge-guide code{font-family:var(--font-mono);font-size:.85em;color:var(--lime)}
.embed-box{border:1px solid var(--line);border-radius:var(--r);background:var(--surface-1);overflow:hidden}
.embed-head{font-size:.8rem;color:var(--text-2);padding:10px 16px;border-bottom:1px solid var(--line)}
.embed-code{font-family:var(--font-mono);font-size:.8rem;color:var(--text);padding:16px;margin:0;overflow-x:auto;white-space:pre;line-height:1.6}
.badge-note{margin-top:16px;color:var(--text-3);font-size:.9rem}
.badge-note a{color:var(--lime);font-weight:600}

/* ---------- 등급 배지 (AI Champion~Laggard) — BI: 라임+무채색만, 위계로 구분 ---------- */
.tier-badge{display:inline-flex;align-items:center;font-family:var(--font-mono);font-size:.7rem;font-weight:700;letter-spacing:.02em;padding:3px 8px;border-radius:var(--r);border:1px solid transparent;white-space:nowrap;line-height:1.2}
.tier-champion{background:var(--lime);color:#0b0b0c}
.tier-leader{border-color:var(--lime);color:var(--lime)}
.tier-challenger{background:var(--surface-2);color:var(--text)}
.tier-follower{border-color:var(--line);color:var(--text-2)}
.tier-laggard{color:var(--text-3);border-color:var(--line)}

/* ---------- 리포트 목차 예시 ---------- */
.report-toc{display:flex;flex-direction:column;gap:0;max-width:760px}
.report-toc li{list-style:none;position:relative;padding:14px 16px 14px 52px;border-bottom:1px solid var(--line);color:var(--text-2);font-size:.95rem}
.report-toc li::before{counter-increment:toc;content:counter(toc,decimal-leading-zero);position:absolute;left:16px;top:14px;font-family:var(--font-mono);font-size:.85rem;color:var(--lime);font-weight:700}
.report-toc{counter-reset:toc}
.report-toc strong{color:var(--text);font-weight:700}

/* 서비스 카드 예시(주요 항목) */
.svc-ex-cap{margin-top:14px;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.svc-ex{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.svc-ex li{list-style:none;position:relative;padding-left:14px;font-size:.85rem;color:var(--text-2)}
.svc-ex li::before{content:'';position:absolute;left:0;top:7px;width:5px;height:5px;background:var(--gray-2)}

/* 등급별 월계관 범례 캡션 */
.tier-cap{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.85rem;color:var(--text-2);text-align:center}

/* 등급별 브랜드 분류 */
.tier-brands{display:flex;flex-direction:column;gap:14px}
.tier-row{border:1px solid var(--line);border-radius:var(--r);background:var(--surface-1);padding:16px 18px}
.tier-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
.tier-row-meta{font-family:var(--font-mono);font-size:.8rem;color:var(--text-2)}
.tier-chips{display:flex;flex-wrap:wrap;gap:8px}
.brand-chip{display:inline-flex;align-items:baseline;gap:6px;border:1px solid var(--line);border-radius:var(--r);padding:6px 10px;font-size:.85rem;color:var(--text)}
.brand-chip b{font-weight:700}
.brand-chip em{font-style:normal;font-size:.72rem;color:var(--text-3)}
.brand-chip-more{color:var(--text-2);border-style:dashed}
.tier-empty{font-size:.85rem;color:var(--text-3)}

/* ---------- 공지 팝업 (기본 꺼짐 — index.html의 #notice-modal 주석 해제 시 동작) ---------- */
.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.notice-overlay[hidden] { display: none; }
.notice-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 28px 22px;
}
.notice-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 10px;
}
.notice-title {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.4;
}
.notice-body {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 12px;
}
.notice-divider {
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.notice-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin: 0 0 18px;
}
.notice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.notice-dismiss {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 8px 4px;
}
.notice-dismiss:hover { color: var(--text-2); }
.notice-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.notice-x:hover { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .notice-card { animation: notice-in 0.18s ease-out; }
  @keyframes notice-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.faq-item p { margin-top: 12px; line-height: 1.75; color: var(--text-2); }
