@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  /* Layout */
  --hd-page-width: 1200px;
  --hd-header-height: 88px;
  --hd-nav-height: 60px;

  /* Typography */
  --hd-font-family-ko: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hd-font-family-en: "Poppins", "Pretendard", sans-serif;
  --hd-font-family-body: var(--hd-font-family-ko);
  --hd-font-family-heading: var(--hd-font-family-ko);
  --hd-font-family-label: var(--hd-font-family-en);
  --hd-font-size-caption: clamp(11px, 0.18vw + 10.4px, 13px);
  --hd-font-size-label: clamp(13px, 0.22vw + 12.2px, 15px);
  --hd-font-size-body: clamp(15px, 0.32vw + 13.8px, 18px);
  --hd-font-size-title: clamp(28px, 1.4vw + 22px, 42px);
  --hd-line-height-tight: 1.2;
  --hd-line-height-body: 1.7;
  --hd-letter-spacing-label: 0.04em;

  /* Core Colors */
  --hd-color-primary: #d4af37;
  --hd-color-secondary: #5d4037;
  --hd-color-tertiary: #f5f5dc;
  --hd-color-neutral: #1a0f0a;

  /* Surface Colors */
  --hd-color-bg: #221511;
  --hd-color-surface: #2d1c16;
  --hd-color-surface-low: #251913;
  --hd-color-surface-lowest: #160c07;
  --hd-color-surface-strong: #35221b;
  --hd-color-surface-soft: #443028;
  --hd-color-surface-muted: #5a4338;

  /* Text Colors */
  --hd-color-text-primary: #f5f5dc;
  --hd-color-text-secondary: #d7c8c0;
  --hd-color-text-muted: #baa89f;
  --hd-color-text-inverse: #1a0f0a;

  /* Border Colors */
  --hd-color-border: #5d4037;
  --hd-color-border-strong: #7a5a4d;
  --hd-color-border-soft: rgba(245, 245, 220, 0.12);

  /* Status / Utility */
  --hd-color-success: #a5ab8d;
  --hd-color-warning: #d4af37;
  --hd-color-danger: #f1b4aa;

  /* Spacing */
  --hd-space-2xs: 4px;
  --hd-space-xs: 8px;
  --hd-space-sm: 16px;
  --hd-space-md: 24px;
  --hd-space-lg: 40px;
  --hd-space-xl: 64px;
  --hd-space-2xl: 96px;

  /* Radius */
  --hd-radius-xs: 8px;
  --hd-radius-sm: 12px;
  --hd-radius-md: 18px;
  --hd-radius-lg: 24px;
  --hd-radius-pill: 999px;

  /* Shadows */
  --hd-shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.16);
  --hd-shadow-md: 0 18px 40px rgba(0, 0, 0, 0.2);

  /* Component Tokens */
  --hd-button-height: 44px;
  --hd-input-height: 48px;
  --hd-placeholder-min-height: 140px;
}

html {
  scroll-behavior: smooth;
}

body.hd-theme {
  margin: 0;
  background-color: var(--hd-color-bg);
  color: var(--hd-color-text-primary);
  font-family: var(--hd-font-family-body);
  font-size: var(--hd-font-size-body);
  line-height: var(--hd-line-height-body);
  word-break: keep-all;
}

body.hd-theme h1,
body.hd-theme h2,
body.hd-theme h3,
body.hd-theme h4,
body.hd-theme h5,
body.hd-theme h6 {
  color: var(--hd-color-text-primary);
  font-family: var(--hd-font-family-heading);
  line-height: var(--hd-line-height-tight);
}

body.hd-theme a {
  color: var(--hd-color-primary);
}

body.hd-theme input,
body.hd-theme button,
body.hd-theme textarea,
body.hd-theme select {
  font: inherit;
}

.hd-font-ko {
  font-family: var(--hd-font-family-ko);
}

.hd-font-en,
.hd-latin {
  font-family: var(--hd-font-family-en);
}

.hd-site-header,
.hd-site-nav,
.hd-site-content,
.hd-site-footer {
  width: 100%;
}

.hd-site-header__inner,
.hd-site-nav__inner,
.hd-page-layout__inner,
.hd-site-footer__inner,
.hd-section__inner {
  width: min(var(--hd-page-width), calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.hd-site-header__inner,
.hd-site-nav__inner,
.hd-site-footer__inner {
  box-sizing: border-box;
}

.hd-site-header__inner {
  min-height: var(--hd-header-height);
}

.hd-site-nav--desktop,
.hd-site-nav--mobile {
  box-sizing: border-box;
}

.hd-site-nav__inner {
  min-height: var(--hd-nav-height);
}

body.hd-front-menu-open {
  overflow: hidden;
}

.hd-front-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(34, 19, 13, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.admin-bar .hd-front-topbar {
  top: 32px;
}

.hd-front-topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 24px;
  width: min(1400px, calc(100% - 64px));
  min-height: 108px;
  margin: 0 auto;
}

.hd-front-topbar__toggle,
.hd-front-mobile-nav {
  display: none;
}

.hd-front-mobile-nav[hidden] {
  display: none !important;
}

body.hd-theme a.hd-front-topbar__brand,
body.hd-theme a.hd-front-topbar__brand:visited {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--hd-color-text-primary);
  font-family: var(--hd-font-family-ko);
  font-size: clamp(24px, 1vw + 18px, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.hd-front-topbar__brand-logo {
  display: block;
  width: auto;
  height: clamp(34px, 2.8vw, 52px);
  object-fit: contain;
}

.hd-front-topbar__nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-front-topbar__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 2.1vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hd-theme .hd-front-topbar__menu a,
body.hd-theme .hd-front-topbar__menu a:visited {
  position: relative;
  color: rgba(245, 245, 220, 0.76);
  font-family: var(--hd-font-family-en);
  font-size: clamp(15px, 0.35vw + 13.6px, 20px);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

body.hd-theme .hd-front-topbar__menu a:hover,
body.hd-theme .hd-front-topbar__menu a:focus-visible,
body.hd-theme .hd-front-topbar__menu .current-menu-item > a,
body.hd-theme .hd-front-topbar__menu .current-menu-ancestor > a,
body.hd-theme .hd-front-topbar__menu .current_page_item > a,
body.hd-theme .hd-front-topbar__menu .current_page_ancestor > a {
  color: var(--hd-color-primary);
}

.hd-front-topbar__menu .current-menu-item > a::after,
.hd-front-topbar__menu .current-menu-ancestor > a::after,
.hd-front-topbar__menu .current_page_item > a::after,
.hd-front-topbar__menu .current_page_ancestor > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 1px;
  background: currentColor;
}

body.hd-theme a.hd-front-topbar__cta,
body.hd-theme a.hd-front-topbar__cta:visited {
  grid-area: cta;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--hd-color-primary);
  color: #2b180d;
  font-family: var(--hd-font-family-ko);
  font-size: clamp(15px, 0.24vw + 14px, 18px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    background-color 160ms ease;
}

.hd-front-topbar__cta:hover,
.hd-front-topbar__cta:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.hd-page-layout {
  padding-top: var(--hd-space-lg);
  padding-bottom: var(--hd-space-xl);
}

.hd-section {
  padding-top: var(--hd-space-lg);
  padding-bottom: var(--hd-space-lg);
  border-bottom: 1px solid var(--hd-color-border-soft);
}

.hd-section:first-child {
  padding-top: 0;
}

.hd-section:last-child {
  border-bottom: 0;
}

.hd-section__header {
  margin-bottom: var(--hd-space-md);
}

.hd-section__eyebrow,
.hd-placeholder__label,
.hd-ui-label {
  color: var(--hd-color-primary);
  font-family: var(--hd-font-family-label);
  font-size: var(--hd-font-size-caption);
  font-weight: 600;
  letter-spacing: var(--hd-letter-spacing-label);
  line-height: 1.4;
  text-transform: uppercase;
}

.hd-section__title {
  margin: 0 0 var(--hd-space-sm);
  font-size: var(--hd-font-size-title);
  font-weight: 700;
}

.hd-section__text,
.hd-placeholder__text,
.hd-placeholder__label {
  margin: 0;
}

.hd-section__text {
  color: var(--hd-color-text-secondary);
}

.hd-placeholder {
  min-height: var(--hd-placeholder-min-height);
  padding: var(--hd-space-md);
  border: 1px dashed var(--hd-color-border-strong);
  border-radius: var(--hd-radius-md);
  background-color: var(--hd-color-surface);
}

.hd-placeholder__label {
  margin-bottom: var(--hd-space-xs);
}

.hd-placeholder__text {
  color: var(--hd-color-text-muted);
}

.hd-ui-card {
  border: 1px solid var(--hd-color-border);
  border-radius: var(--hd-radius-md);
  background-color: var(--hd-color-surface);
  box-shadow: var(--hd-shadow-sm);
}

.hd-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hd-button-height);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--hd-radius-xs);
  font-family: var(--hd-font-family-label);
  font-size: var(--hd-font-size-label);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.hd-ui-button--primary {
  background-color: var(--hd-color-primary);
  color: var(--hd-color-text-inverse);
}

.hd-ui-button--secondary {
  background-color: var(--hd-color-secondary);
  color: var(--hd-color-text-primary);
}

.hd-ui-button--outlined {
  border-color: var(--hd-color-border-strong);
  background-color: transparent;
  color: var(--hd-color-text-primary);
}

.hd-ui-button--inverted {
  background-color: var(--hd-color-tertiary);
  color: var(--hd-color-text-inverse);
}

.hd-ui-input {
  width: 100%;
  min-height: var(--hd-input-height);
  padding: 0 14px;
  border: 1px solid var(--hd-color-border);
  border-radius: var(--hd-radius-xs);
  background-color: var(--hd-color-surface-strong);
  color: var(--hd-color-text-primary);
}

.hd-ui-input::placeholder {
  color: var(--hd-color-text-muted);
}

.hd-site-footer {
  position: relative;
  padding: var(--hd-space-xl) 0 var(--hd-space-lg);
  border-top: 1px solid var(--hd-color-border-soft);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(53, 34, 27, 0.94), rgba(22, 12, 7, 0.98));
  color: var(--hd-color-text-primary);
  overflow: hidden;
}

.hd-site-footer::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 18px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(245, 245, 220, 0.03);
  filter: blur(6px);
  pointer-events: none;
}

.hd-footer {
  display: grid;
  gap: var(--hd-space-lg);
}

.hd-footer__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: var(--hd-space-lg);
  align-items: stretch;
  padding-bottom: var(--hd-space-lg);
  border-bottom: 1px solid var(--hd-color-border-soft);
}

.hd-footer__brand {
  display: grid;
  gap: var(--hd-space-sm);
  align-content: start;
}

.hd-footer__eyebrow,
.hd-footer__panel-label {
  margin: 0;
  color: var(--hd-color-primary);
  font-family: var(--hd-font-family-label);
  font-size: var(--hd-font-size-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hd-footer__title,
.hd-footer__panel-title,
.hd-footer__column-title {
  margin: 0;
  color: var(--hd-color-text-primary);
}

.hd-footer__title {
  font-size: clamp(28px, 1.8vw + 20px, 44px);
  line-height: 1.08;
}

.hd-footer__description,
.hd-footer__tagline,
.hd-footer__steps,
.hd-footer__copyright {
  margin: 0;
  color: var(--hd-color-text-secondary);
}

.hd-footer__description {
  max-width: 58ch;
}

.hd-footer__tagline {
  color: var(--hd-color-text-muted);
}

.hd-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--hd-space-xs);
}

body.hd-theme .hd-footer__actions a,
body.hd-theme .hd-footer__actions a:visited,
body.hd-theme .hd-footer__list a,
body.hd-theme .hd-footer__list a:visited {
  text-decoration: none;
}

.hd-footer__panel {
  display: grid;
  gap: var(--hd-space-sm);
  padding: clamp(20px, 2vw, 30px);
  background: linear-gradient(180deg, rgba(68, 48, 40, 0.92), rgba(37, 25, 19, 0.92));
  border-color: rgba(212, 175, 55, 0.3);
}

.hd-footer__panel-title {
  font-size: clamp(18px, 0.6vw + 16px, 24px);
}

.hd-footer__steps {
  padding-left: 1.35em;
}

.hd-footer__steps li + li {
  margin-top: 10px;
}

.hd-footer__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hd-space-lg);
  justify-items: center;
}

.hd-footer__column {
  min-width: 0;
  max-width: 960px;
  text-align: center;
}

.hd-footer__column-title {
  margin-bottom: var(--hd-space-sm);
  font-size: clamp(16px, 0.4vw + 15px, 20px);
  font-weight: 600;
}

.hd-footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.hd-theme .hd-footer__list a {
  color: var(--hd-color-text-secondary);
}

body.hd-theme .hd-footer__list a:hover,
body.hd-theme .hd-footer__list a:focus-visible {
  color: var(--hd-color-primary);
}

.hd-footer__bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--hd-space-md);
  padding-top: var(--hd-space-xs);
}

@media (max-width: 860px) {
  body.admin-bar .hd-front-topbar {
    top: 46px;
  }

  .hd-front-topbar__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "toggle toggle";
    gap: 14px 20px;
    width: calc(100% - 24px);
    min-height: auto;
    padding: 18px 0 14px;
  }

  .hd-front-topbar__nav {
    display: none;
  }

  body.hd-theme a.hd-front-topbar__cta,
  body.hd-theme a.hd-front-topbar__cta:visited {
    min-height: 42px;
    padding: 0 18px;
    font-size: 15px;
  }

  body.hd-theme a.hd-front-topbar__brand,
  body.hd-theme a.hd-front-topbar__brand:visited {
    font-size: clamp(24px, 4vw, 32px);
  }

  .hd-front-topbar__brand-logo {
    height: 34px;
  }

  .hd-front-topbar__toggle {
    grid-area: toggle;
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(245, 245, 220, 0.08);
    border-radius: 14px;
    background: rgba(39, 22, 15, 0.86);
    color: var(--hd-color-text-primary);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
  }

  .hd-front-topbar__toggle-line {
    position: absolute;
    width: 22px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .hd-front-topbar__toggle-line--top {
    transform: translateY(-6px);
  }

  .hd-front-topbar__toggle-line--bottom {
    transform: translateY(6px);
  }

  .hd-front-topbar.is-menu-open .hd-front-topbar__toggle-line--top {
    transform: rotate(45deg);
  }

  .hd-front-topbar.is-menu-open .hd-front-topbar__toggle-line--middle {
    opacity: 0;
  }

  .hd-front-topbar.is-menu-open .hd-front-topbar__toggle-line--bottom {
    transform: rotate(-45deg);
  }

  .hd-front-mobile-nav {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 55;
    background: rgba(14, 8, 5, 0.72);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .hd-front-mobile-nav__inner {
    height: 100%;
    padding: 18px 12px 28px;
    transform: translateY(16px);
    transition: transform 260ms ease;
  }

  .hd-front-topbar.is-menu-open .hd-front-mobile-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .hd-front-topbar.is-menu-open .hd-front-mobile-nav__inner {
    transform: translateY(0);
  }

  .hd-front-mobile-nav__menu {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.hd-theme .hd-front-mobile-nav__menu a,
  body.hd-theme .hd-front-mobile-nav__menu a:visited {
    display: block;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(38, 22, 15, 0.94);
    color: var(--hd-color-text-primary);
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  .hd-site-header__inner,
  .hd-site-nav__inner,
  .hd-page-layout__inner,
  .hd-site-footer__inner,
  .hd-section__inner {
    width: calc(100% - 24px);
  }

  .hd-page-layout {
    padding-top: var(--hd-space-md);
    padding-bottom: var(--hd-space-lg);
  }

  .hd-section {
    padding-top: var(--hd-space-md);
    padding-bottom: var(--hd-space-md);
  }

  .hd-site-footer {
    padding-top: var(--hd-space-lg);
    padding-bottom: var(--hd-space-md);
  }

  .hd-footer {
    gap: var(--hd-space-md);
  }

  .hd-footer__hero,
  .hd-footer__links {
    grid-template-columns: 1fr;
    gap: var(--hd-space-md);
  }

  .hd-footer__hero {
    padding-bottom: var(--hd-space-md);
  }

  .hd-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}
