:root {
  --accent: #e53935;
  --muted: #e6e8ec;
  --shadow-strong: 0 18px 38px rgba(0, 0, 0, 0.45);
  --scroll-track: #0c0c0f;
  --scroll-thumb: #e53935;
  --scroll-thumb-strong: #ff5c55;
}

html {
  width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #0a0a0a;
}

body {
  width: 100vw;
  overflow-x: hidden;
  background-color: #0a0a0a;
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

::-webkit-scrollbar {
  width: 12px;
  background: var(--scroll-track);
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-left: 1px solid #141414;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scroll-thumb), #b92226);
  border-radius: 999px;
  border: 2px solid #0a0a0a;
  box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.45);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scroll-thumb-strong), #c8282c);
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 20px;
  z-index: 6;
}

.header__inner {
  max-width: 1440px;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo img {
  width: 250px;
  display: block;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 45px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero__nav a {
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__nav a.is-active {
  color: var(--accent);
}

.hero__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: calc(100% + 10px);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff7b74);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.hero__nav a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  gap: 6px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.24s ease, width 0.24s ease;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.46);
  border-color: rgba(255, 255, 255, 0.26);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 18;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.mobile-drawer__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 88vw;
  height: 100%;
  background: #0f0f13;
  border-left: 1px solid #1f1f27;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.55);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  pointer-events: auto;
  transform: translateX(100%);
  transition: transform 0.32s ease;
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer__logo {
  width: 180px;
  display: block;
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.drawer-close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-close:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.32);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  color: #f4f4f6;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #1e1e25;
  background: #141418;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.mobile-nav a.is-active {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(229, 57, 53, 0.28);
  color: #ffffff;
}

.mobile-nav a::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: rotate(45deg);
}

.mobile-nav a:hover {
  transform: translateX(-2px);
  border-color: #2a2a34;
  color: #ffffff;
}

.mobile-nav__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-family: 'afacad', 'pretendard', sans-serif;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-drawer__inner {
  transform: translateX(0);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(42deg);
  width: 90%;
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-42deg);
  width: 90%;
}

@media (max-width: 1200px) {
  header {
    padding-top: 18px;
  }

  .header__inner {
    width: min(1440px, calc(100% - 36px));
    gap: 16px;
  }

  .hero__nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .header__inner {
    width: min(1440px, calc(100% - 28px));
  }
}

@media (max-width: 540px) {
  .logo img{
    width: 150px;
  }
  header {
    padding-top: 16px;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 10px;
  }

  .mobile-drawer__inner {
    width: 320px;
    max-width: 92vw;
  }

  .mobile-drawer__inner {
    padding: 24px 22px 26px;
    gap: 22px;
  }

  .mobile-drawer__logo {
    width: 150px;
  }

  .mobile-nav {
    font-size: 16px;
  }

  .mobile-nav a {
    padding: 12px 14px;
  }
}
