/* ============================================================
   KREMA AI FORUM — 디자인 토큰 + 공용 컴포넌트
   원본: guidebook-web/DESIGN_SYSTEM.md ("하나 하이" 톤)
        chatbot/index.html :root (그대로 계승)
   리테마: 아래 4그룹(주조/포인트/그라데이션)만 교체하면 전체 반영
   ============================================================ */
:root {
  /* 하나 "하이" 틸/민트 + 코랄 포인트 — guidebook 디자인 시스템 */
  --navy:        #00423f;
  --navy-800:    #00564f;
  --navy-700:    #006f67;
  --navy-600:    #0a9b91;
  --point:       #00a99d;
  --point-700:   #00857c;
  --point-soft:  #e3f6f3;
  --gold:        #ff6b6b;
  --gold-soft:   #fff0ee;
  --bg:          #eef3f2;
  --surface:     #ffffff;
  --text:        #14201f;
  --text-soft:   #5a6b6a;
  --text-mute:   #69807d;
  --line:        #e2ebe9;
  --line-soft:   #eef4f3;
  --shadow-sm:   0 1px 3px rgba(0,66,63,.06), 0 1px 2px rgba(0,66,63,.04);
  --shadow:      0 4px 16px rgba(0,66,63,.08), 0 1px 3px rgba(0,66,63,.05);
  --shadow-lg:   0 18px 40px -12px rgba(0,66,63,.22);
  --radius:      16px;
  --radius-sm:   12px;
  --radius-lg:   22px;
  --grad-navy:   linear-gradient(135deg, #00423f 0%, #00736b 52%, #07a99d 100%);
  --grad-gold:   linear-gradient(135deg, #ff8f88 0%, #ff6b6b 100%);
}

/* ── 베이스 ─────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  -webkit-font-smoothing: antialiased; font-size: 16px;
  letter-spacing: -0.005em;
}
img { max-width: 100%; }
a { color: var(--point-700); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── 헤더 (sticky 블러) ─────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--navy); }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad-navy);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: -.5px;
}
.brand small { font-weight: 700; font-size: 11.5px; color: var(--text-mute); display: block; line-height: 1.2; }
.nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; align-items: center; }
.nav a { color: var(--text-soft); }
.nav a:hover, .nav a.active { color: var(--point-700); }
.header .btn { padding: 9px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--navy); }
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; gap: 14px;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
}

/* ── 버튼 (pill) ────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--point); color: #fff; font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s, background .18s;
}
.btn:hover { background: var(--point-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.btn--coral { background: var(--grad-gold); }
.btn--coral:hover { background: var(--gold); }
.btn--soft { background: var(--point-soft); color: var(--point-700); box-shadow: none; }
.btn--soft:hover { background: #d3efeb; color: var(--point-700); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: var(--shadow-sm) !important; }

/* ── 히어로 (틸 그라데이션 + 원형 데코) ── */
.hero {
  background: var(--grad-navy);
  color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.hero::before {
  content: ""; position: absolute; left: -120px; bottom: -180px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.hero .container { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3);
  font-size: 13px; font-weight: 700; padding: 6px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge b { color: #ffd9d6; }
.hero h1 { font-size: clamp(30px, 5.2vw, 50px); font-weight: 800; line-height: 1.22; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .accent { color: #8ef0e6; }
.hero__sub { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.86); max-width: 620px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.18); font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 10px; color: rgba(255,255,255,.92);
}
.meta-chip b { color: #8ef0e6; font-weight: 800; }

/* 사진 배경 히어로 — 흑백 사진이 반투명하게 비치는 틸 오버레이 (AID30+/chatbot 패턴) */
.hero--photo {
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(0,66,63,.86) 0%, rgba(0,105,97,.74) 52%, rgba(7,169,157,.64) 100%),
    var(--hero-img);
  background-size: cover; background-position: center 35%; background-repeat: no-repeat;
}

/* 서브페이지용 컴팩트 히어로 */
.hero--sub { padding: 58px 0 62px; }
.hero--sub h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.hero--sub .hero__sub { margin-bottom: 0; }

/* ── 섹션 공통 ──────────────────────── */
.section { padding: 74px 0; }
.section--alt { background: var(--surface); }
.sec-label { color: var(--point-700); font-weight: 800; font-size: 13.5px; letter-spacing: 1.5px; margin-bottom: 8px; text-transform: uppercase; }
.sec-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 14px; }
.sec-desc { color: var(--text-soft); font-size: 15.5px; max-width: 640px; margin-bottom: 36px; }

/* ── 카드 ───────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-gold); opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card__icon-img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 12px; display: block; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--point-soft);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 16px; color: var(--point-700);
}
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.card p { font-size: 14px; color: var(--text-soft); font-weight: 500; }

/* ── 뱃지 ───────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.badge--role { background: var(--grad-gold); color: #fff; }          /* 직책(임원) */
.badge--member { background: var(--point-soft); color: var(--point-700); } /* 정회원/납부완료 */
.badge--neutral { background: #eef2f1; color: #5f726f; }
.badge--pending { background: var(--gold-soft); color: #c2453f; }    /* 준비 중/미납 */

/* ── 표 (임원진 등) ─────────────────── */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left; padding: 13px 18px; background: var(--line-soft);
  font-size: 12.5px; font-weight: 800; color: var(--text-mute); letter-spacing: .06em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { font-weight: 700; }

/* ── 스텝(로드맵) ───────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm); position: relative;
}
.step__num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--grad-navy); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-soft); font-weight: 500; }

/* ── 빈 상태 (준비 중) ──────────────── */
.empty {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 56px 24px; text-align: center; color: var(--text-mute);
}
.empty__icon {
  width: 52px; height: 52px; border-radius: 999px; background: var(--gold-soft);
  display: grid; place-items: center; font-size: 24px; margin: 0 auto 16px;
}
.empty h3 { font-size: 16.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty p { font-size: 14px; font-weight: 500; }

/* ── 공지/안내 박스 ─────────────────── */
.notice {
  background: var(--point-soft); border: 1px solid #c9ebe6; border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 14px; color: var(--navy-700); font-weight: 600;
  display: flex; gap: 10px; align-items: flex-start;
}
.notice--coral { background: var(--gold-soft); border-color: #ffd9d5; color: #b0403a; }

/* ── CTA 밴드 ───────────────────────── */
.cta-band { background: var(--grad-navy); border-radius: var(--radius-lg); color: #fff; padding: 52px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-band h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 26px; }

/* ── 공지 바 (회장단 모집 등) ────────── */
.announce {
  background: var(--grad-gold); color: #fff; font-size: 13.5px; font-weight: 700;
  text-align: center; padding: 9px 16px;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { opacity: .9; }

/* ── 모달 팝업 ──────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,26,25,.55);
  display: none; align-items: center; justify-content: center; padding: 22px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 440px; width: 100%; overflow: hidden; position: relative;
  animation: modalIn .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head {
  background: var(--grad-navy); color: #fff; padding: 30px 28px 26px; position: relative; overflow: hidden;
}
.modal__head::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.modal__head .hero__badge { margin-bottom: 12px; }
.modal__head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; position: relative; z-index: 1; }
.modal__body { padding: 24px 28px 26px; }
.modal__body p { font-size: 14.5px; color: var(--text-soft); font-weight: 500; margin-bottom: 20px; }
.modal__actions { display: flex; flex-direction: column; gap: 10px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 16px; line-height: 1;
}
.modal__close:hover { background: rgba(255,255,255,.3); }
.modal__dismiss {
  background: none; border: 0; cursor: pointer; font-size: 12.5px; color: var(--text-mute);
  font-weight: 600; padding: 4px; font-family: inherit;
}
.modal__dismiss:hover { color: var(--text-soft); text-decoration: underline; }

/* ── 푸터 ───────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 44px 0 40px; margin-top: 74px; font-size: 13.5px; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #8ef0e6; }
.footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { font-weight: 800; font-size: 16px; color: #fff; margin-bottom: 8px; }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.footer__copy { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ── 소개 영상 ───────────────────────── */
.video-frame {
  display: block; width: 100%; max-width: 980px; margin: 0 auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #00201e;
}
