/* =========================
   1. 기본 설정
========================= */

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

:root {
  --bg: #0b0b0b;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #101010;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --muted-soft: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: #2d2d2d;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}


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

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

ul,
ol {
  list-style: none;
}

/* 공통 컨테이너 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 이동시 헤더에 가리지 않게 */
#intro,
#start,
#tips,
#dictionary,
#system,
#obtain,
#update {
  scroll-margin-top: 100px;
}

/* =========================
   2. HEADER LAYOUT
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  height: 80px;
  position: relative;
}

/* 왼쪽 제목 */
.site-title {
  position: absolute;
  left: -300px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.site-title:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 중앙 로고 */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* 오른쪽 메뉴 */
.nav {
  position: absolute;
  right: -300px;
  top: 50%;
  transform: translateY(-50%);
}

.nav ul {
  display: flex;
  gap: 14px;
}

.nav a {
  padding: 10px 14px;
  border: 1px solid #2a2a2a;
  background: linear-gradient(180deg, #181818 0%, #101010 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: linear-gradient(180deg, #222222 0%, #141414 100%);
  border-color: #3a3a3a;
  color: #ffffff;
}

/* =========================
   3. 히어로 영역
========================= */
body {
  color: #ffffff;
  background: linear-gradient(
    to top,
    #918e8e 0%,
    #ffffff 100%
  );
}

.hero {
  padding-top: 80px;
   padding-bottom: 50px;
      color: #ffffff;
  background: linear-gradient(
    to top,

    #585858 100%
    );
}


.hero .container {
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  
}

.hero p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-buttons a {
  display: inline-block;
  min-width: 170px;
  padding: 14px 20px;
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.hero-buttons a:hover {
  background: #2e2e2e;
  color: #ffffff;
  border-color: #2e2e2e;
}

.hero-logo {
  width: 420px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* =========================
   4. 공통 섹션
========================= */

.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section p {
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
}

/* =========================
   5. 카드 레이아웃
========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: linear-gradient(180deg, #000000 0%, #101010 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #555555;
}

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

.card p {
  color: rgb(255, 255, 255);
  margin-bottom: 0;
}

.card a {
  display: inline-block;
  padding: 10px 14px;
  background: #ffffff;
  color: #111111;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.card a:hover {
  background: #dcdcdc;
}

/* =========================
   6. 정보 박스
========================= */

.info-box,
.guide-box,
.tip-box {
  background: linear-gradient(180deg, #181818 0%, #101010 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.info-box p,
.guide-box p,
.tip-box p {
  color: rgba(255, 255, 255, 0.78);
}

.info-box ul,
.guide-box ul,
.tip-box ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

/* =========================
   7. 큰 링크 버튼
========================= */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.big-link {
  display: block;
  background: linear-gradient(180deg, #181818 0%, #101010 100%);
  color: #ffffff;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.big-link p {
  color: rgba(255, 255, 255, 0.78);
}

.big-link:hover {
  background: linear-gradient(180deg, #222222 0%, #141414 100%);
  color: #ffffff;
  transform: translateY(-4px);
  border-color: #555555;
}

/* =========================
   8. 브레드크럼
========================= */

.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 700;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================
   9. 사이드 목차
========================= */

.page-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 40px 0 70px;
}

.side-toc {
  position: sticky;
  top: 110px;
  background: linear-gradient(180deg, #181818 0%, #101010 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.side-toc p {
  color: rgba(255, 255, 255, 0.78);
}

.side-toc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.side-toc a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* =========================
   10. 표
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: #111111;
  color: #ffffff;
}

th,
td {
  padding: 14px 12px;
  border: 1px solid #2d2d2d;
}

th {
  background: #1a1a1a;
  color: #ffffff;
}

/* =========================
   11. 강조 박스
========================= */

.notice,
.highlight {
  background: #151515;
  color: #ffffff;
  border: 1px solid #2d2d2d;
  padding: 18px 20px;
  border-radius: 14px;
}

.warning {
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  padding: 18px 20px;
  border-radius: 14px;
}

/* =========================
   12. 푸터
========================= */

.footer {
  background: #111111;
  color: #ffffff;
  padding: 28px 20px;
  margin-top: 40px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a:hover {
  color: #cccccc;
}

/* =========================
   13. 공지사항 슬라이더
========================= */

.notice-section {
  padding: 70px 0;
  border-top: 1px solid var(--border);
}

.notice-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.notice-track {
  overflow: hidden;
  border-radius: 24px;
}

.notice-slide {
  display: none;
}

.notice-slide.active {
  display: block;
}

.notice-slide img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #ffffff;
}

.notice-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.548);
  color: #000000;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notice-arrow:hover {
  background: #dcdcdc;
}

.notice-arrow.prev {
  left: 14px;
}

.notice-arrow.next {
  right: 14px;
}

.notice-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.notice-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
}

.notice-dots .dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

.notice-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
}

.notice-date {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-soft);
}

    /* =========================
      14. 반응형
    ========================= */

    @media (max-width: 1100px) {
      .site-title {
        left: 20px;
      }

      .nav {
        right: 20px;
      }
    }

    @media (max-width: 900px) {
      body {
        padding-top: 70px;
      }

      .header {
        height: 70px;
      }

      .nav-wrap {
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .site-title {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
        height: 70px;
        margin-left: 20px;
      }

      .nav {
        position: static;
        transform: none;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 70px;
        margin-right: 20px;
      }

      .nav ul {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .nav a {
        padding: 8px 10px;
        font-size: 0.88rem;
      }

      .hero {
        padding: 70px 20px 60px;
      }

      .hero h1 {
        font-size: 2rem;
      }

      .section {
        padding: 70px 0;
      }

      .card-grid,
      .menu-grid,
      .page-layout {
        grid-template-columns: 1fr;
      }

      .page-layout {
        gap: 20px;
      }

      .side-toc {
        position: static;
      }

      .footer .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
      }
    }
    /* =========================
      15. INTRO PAGE
      intro.html 전용
    ========================= */
    

    .intro-page {
   background: #9a9a9a;
  min-height: 100vh;
}

    /* intro 페이지 헤더 전용 */
    .intro-page .header {
      background: rgba(0, 0, 0, 0.6);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(6px);
    }
    

    .intro-page .site-title,
    .intro-page .nav a {
      color: #ffffff;
    }

    /* =========================
      16. INTRO HERO
    ========================= */
.intro-page .intro-hero {
  position: relative;
  width: 100%;
  min-height:90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}
    .intro-page .intro-hero-image {
      
   filter: brightness(1.15) contrast(1.4) saturate(1.2);
  position: absolute;
  right: -5%;
  bottom: 0;
  height: 110%;
  width: auto;
  object-fit: contain;
}

    .intro-page .intro-hero-overlay {
      position: absolute;
      inset: 0;
      background: rgba(99, 74, 74, 0.253);
    }

    .intro-page .intro-hero-text {
      position: absolute;
      left: 8%;
      bottom: 20%;
      z-index: 2;
      max-width: 600px;
    }

    .intro-page .intro-label {
      font-size: 0.9rem;
      letter-spacing: 0.15em;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 12px;
    }

    .intro-page .intro-hero-text h2 {
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      line-height: 1.1;
      margin-bottom: 14px;
    }

    .intro-page .intro-hero-text p {
      font-size: 1.1rem;
      line-height: 1.7;
      color: rgba(255, 230, 0, 0.986);
      margin-bottom: 0;
    }
.intro-page .intro-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, #000 40%, transparent);
  z-index: 1;
}
    /* =========================
      17. INTRO SHOWCASE
    ========================= */

 .intro-page .intro-showcase {
  padding: 120px 0;
  text-align: center;
  position: relative;
  z-index: 5;
}

    .intro-page .showcase-image-wrap {
      width: min(1100px, 92%);
      margin: 0 auto;
    }

  .intro-page .showcase-image {
  width: 80%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;

  position: relative;
  left: 40%;
  transform: translateX(-50%);
}

    .intro-page .showcase-text {
      width: min(700px, 90%);
      margin: 30px auto 0;
    }

    .intro-page .showcase-text h3 {
      font-size: 2rem;
      margin-bottom: 12px;
      color: #ffffff;
    }

    .intro-page .showcase-text p {
      font-size: 1rem;
      line-height: 1.8;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 0;
    }

    .intro-page .intro-showcase + .intro-showcase {
      margin-top: 40px;
    }

    /* =========================
      18. INTRO PAGE RESPONSIVE
    ========================= */

    @media (max-width: 900px) {
      .intro-page .intro-hero {
        height: 90vh;
      }

      .intro-page .intro-hero-text {
        left: 6%;
        right: 6%;
        bottom: 10%;
        max-width: none;
      }

      .intro-page .intro-showcase {
        padding: 80px 0;
      }

      .intro-page .showcase-text {
        margin-top: 20px;
      }

      .intro-page .showcase-text p {
        font-size: 0.95rem;
      }
    }
   /* =========================
   HOME PAGE 전용 (index)
========================= */

.home-page {
 background: #9a9a9a;
  min-height: 100vh;
}

/* 헤더 스타일 */
.home-page .header {
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

.home-page .site-title,
.home-page .nav a {
  color: #fff;
}

