@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@keyframes rotate_clockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 아이콘에 애니메이션 적용 */
.top-home-btn img {
  width: 50px; /* 아이콘 크기 조절 */
  height: 50px;
  
  /* 애니메이션 설정 */
  animation: rotate_clockwise 6s linear infinite;
  
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8d8d99;
  --card-bg: #0e0e10;
  --card-border: rgba(255, 255, 255, 0.05);
  --radius-lg: 20px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard:Medium", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

.page-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 180px 20px;
  position: relative;
}

.top-home-btn {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: none;
}

.top-home-btn img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero {
  text-align: center;
  margin-bottom: 100px;
}

.hero h1 {
  margin: 0;
  font-family: "Paperozi", sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: 0.96px;
  line-height: normal;
  white-space: nowrap;
}

.hero p {
  margin: 24px 0 0;
  font-family: "Paperozi", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
}

.cards-grid {
  display: grid;
  width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 380px);
  gap: 20px;
}

.card-link {
  display: block;
}

.card {
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-link:hover .card,
.card-link:focus-visible .card {
  border-color: var(--card-border);
}

.card-character {
  --hover-bg: #01cf80;
  --icon-default-bg: rgba(1, 207, 128, 0.1);
  --icon-default-border: rgba(1, 207, 128, 0.2);
}

.card-book {
  --hover-bg: #ff740b;
  --icon-default-bg: rgba(255, 116, 11, 0.1);
  --icon-default-border: rgba(255, 116, 11, 0.2);
}

.card-portfolio {
  --hover-bg: #428dff;
  --icon-default-bg: rgba(66, 141, 255, 0.1);
  --icon-default-border: rgba(66, 141, 255, 0.2);
}

.card-webui {
  --hover-bg: #b35cff;
  --icon-default-bg: rgba(179, 92, 255, 0.1);
  --icon-default-border: rgba(179, 92, 255, 0.2);
}

.card-mybrand {
  --hover-bg: #FFB900;
  --icon-default-bg: rgba(255, 185, 0, 0.1);
  --icon-default-border: rgba(255, 185, 0, 0.2);
}

.card-cardnews {
  --hover-bg: #41D7CA;
  --icon-default-bg: rgba(65, 215, 202, 0.1);
  --icon-default-border: rgba(65, 215, 202, 0.2);
}

.card-link:hover .card,
.card-link:focus-visible .card {
  background: var(--hover-bg);
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--icon-default-border);
  background: var(--icon-default-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.card-link:hover .card-icon-wrap,
.card-link:focus-visible .card-icon-wrap {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.card-icon-hover {
  position: absolute;
  inset: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-link:hover .card-icon-hover,
.card-link:focus-visible .card-icon-hover {
  opacity: 1;
}

.card-link:hover .card-icon-default,
.card-link:focus-visible .card-icon-default {
  opacity: 0;
}

.card-title {
  margin: 0;
  padding-bottom: 16px;
  font-family: "Paperozi", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
}

.card-desc {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #8d8d99;
  white-space: normal;}

.card-link:hover .card-desc,
.card-link:focus-visible .card-desc {
  color: rgba(255, 255, 255, 0.8);
}

.subpage-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #2a2d3d;
  background: #11131b;
  color: #d8dbe7;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-btn:hover {
  background: #181b28;
  transform: translateY(-2px);
}

.sub-content {
  background: #0b0b0f;
  border: 1px solid #1b1c24;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
}

.sub-content h1 {
  margin: 0 0 14px;
  font-family: "Paperozi", sans-serif;
  font-weight: 600;
  font-size: 32px;
}

.sub-content p {
  margin: 0;
  line-height: 1.7;
  color: #8d8d99;
}

.sub-hero {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.sub-hero h1 {
  margin: 0;
  padding-bottom: 24px;
  font-family: "Paperozi", sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: 0.96px;
  line-height: normal;
  color: #ffffff;
}

.sub-hero p {
  margin: 0;
  font-family: "Paperozi", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #8d8d99;
}

.subpage-actions {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.subpage-btn {
  flex: 1 0 0;
  padding: 16px 20px;
  border-radius: 6px;
  border: 0;
  text-align: center;
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.35px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.subpage-btn:hover,
.subpage-btn:focus-visible {
  opacity: 0.92;
}

.subpage-btn--outline {
  border: 1px solid #000000;
  background: #ffffff;
  color: #0e0e10;
}

.subpage-btn--outline:hover,
.subpage-btn--outline:focus-visible {
  background: #f5f5f5;
}

.subpage-btn--solid {
  background: #000000;
  color: #ffffff;
}

.subpage-btn--solid:hover,
.subpage-btn--solid:focus-visible {
  background: #0f0f0f;
}

@media (max-width: 1279px) and (min-width: 800px) {
  .page-shell {
    max-width: 800px;
    padding-top: 150px;
    padding-bottom: 100px;
  }

  .cards-grid {
    width: 612px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .page-shell {
    max-width: 375px;
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .top-home-btn {
    top: 20px;
  }

  .hero {
    margin-bottom: 60px;
  }

  .hero h1 {
    white-space: normal;
  }

  .cards-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

  .subpage-header {
    margin-bottom: 40px;
  }

  .sub-hero h1 {
    white-space: normal;
    font-size: 40px;
  }

  .subpage-actions {
    max-width: 327px;
  }
}
